mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-06 06:30:27 -04:00
Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
This commit is contained in:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
19
server/FSO.Server.Protocol/Electron/AbstractElectronPacket.cs
Executable file
19
server/FSO.Server.Protocol/Electron/AbstractElectronPacket.cs
Executable file
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue