Removed MagicOnion Added LiteNetLib Created client and server abstractions Fixed serialization bugs
15 lines
475 B
C#
15 lines
475 B
C#
namespace LiteNetLib.Layers
|
|
{
|
|
public abstract class PacketLayerBase
|
|
{
|
|
public readonly int ExtraPacketSizeForLayer;
|
|
|
|
protected PacketLayerBase(int extraPacketSizeForLayer)
|
|
{
|
|
ExtraPacketSizeForLayer = extraPacketSizeForLayer;
|
|
}
|
|
|
|
public abstract void ProcessInboundPacket(ref byte[] data, ref int length);
|
|
public abstract void ProcessOutBoundPacket(ref byte[] data, ref int offset, ref int length);
|
|
}
|
|
}
|