mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-20 16:51:21 +00:00
30 lines
453 B
C#
30 lines
453 B
C#
|
namespace FSO.Server.Common
|
|||
|
{
|
|||
|
public interface IPacketLogger
|
|||
|
{
|
|||
|
void OnPacket(Packet packet);
|
|||
|
}
|
|||
|
|
|||
|
public class Packet
|
|||
|
{
|
|||
|
public PacketType Type;
|
|||
|
public uint SubType;
|
|||
|
|
|||
|
public byte[] Data;
|
|||
|
public PacketDirection Direction;
|
|||
|
}
|
|||
|
|
|||
|
public enum PacketType
|
|||
|
{
|
|||
|
ARIES,
|
|||
|
VOLTRON,
|
|||
|
ELECTRON
|
|||
|
}
|
|||
|
|
|||
|
public enum PacketDirection
|
|||
|
{
|
|||
|
OUTPUT,
|
|||
|
INPUT
|
|||
|
}
|
|||
|
}
|