server-master/srcs/WingsAPI.Game/Maps/Event/JoinMapEvent.cs
2026-02-10 18:21:30 +01:00

42 lines
No EOL
832 B
C#

// WingsEmu
//
// Developed by NosWings Team
using System;
using WingsEmu.Game._packetHandling;
namespace WingsEmu.Game.Maps.Event;
public class JoinMapEvent : PlayerEvent
{
public JoinMapEvent(int joinedMap, short? x = null, short? y = null)
{
JoinedMapId = joinedMap;
X = x;
Y = y;
}
public JoinMapEvent(Guid joinedMap, short? x = null, short? y = null)
{
JoinedMapGuid = joinedMap;
X = x;
Y = y;
}
public JoinMapEvent(IMapInstance joinedMap, short? x = null, short? y = null)
{
JoinedMapInstance = joinedMap;
X = x;
Y = y;
}
public int JoinedMapId { get; }
public Guid JoinedMapGuid { get; }
public IMapInstance JoinedMapInstance { get; }
public short? X { get; }
public short? Y { get; }
}