44 lines
No EOL
1 KiB
C#
44 lines
No EOL
1 KiB
C#
// WingsEmu
|
|
//
|
|
// Developed by NosWings Team
|
|
|
|
using WingsEmu.Packets.Enums;
|
|
|
|
namespace WingsEmu.Game.Networking;
|
|
|
|
public class BroadcastPacket
|
|
{
|
|
#region Instantiation
|
|
|
|
public BroadcastPacket(IClientSession session, string packet, ReceiverType receiver,
|
|
string someonesCharacterName = "", long someonesCharacterId = -1, int xCoordinate = 0, int yCoordinate = 0)
|
|
{
|
|
Sender = session;
|
|
Packet = packet;
|
|
Receiver = receiver;
|
|
SomeonesCharacterName = someonesCharacterName;
|
|
SomeonesCharacterId = someonesCharacterId;
|
|
XCoordinate = xCoordinate;
|
|
YCoordinate = yCoordinate;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public string Packet { get; set; }
|
|
|
|
public ReceiverType Receiver { get; set; }
|
|
|
|
public IClientSession Sender { get; set; }
|
|
|
|
public long SomeonesCharacterId { get; set; }
|
|
|
|
public string SomeonesCharacterName { get; set; }
|
|
|
|
public int XCoordinate { get; set; }
|
|
|
|
public int YCoordinate { get; set; }
|
|
|
|
#endregion
|
|
} |