mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-16 23:31:20 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
19 lines
620 B
C#
Executable file
19 lines
620 B
C#
Executable file
using Mina.Core.Buffer;
|
|
using FSO.Common.Serialization;
|
|
|
|
namespace FSO.Server.Protocol.Electron
|
|
{
|
|
public abstract class AbstractElectronPacket : IElectronPacket
|
|
{
|
|
public static IoBuffer Allocate(int size)
|
|
{
|
|
IoBuffer buffer = IoBuffer.Allocate(size);
|
|
buffer.Order = ByteOrder.BigEndian;
|
|
return buffer;
|
|
}
|
|
|
|
public abstract ElectronPacketType GetPacketType();
|
|
public abstract void Deserialize(IoBuffer input, ISerializationContext context);
|
|
public abstract void Serialize(IoBuffer output, ISerializationContext context);
|
|
}
|
|
}
|