mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-22 09:22:24 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
38 lines
1.2 KiB
C#
Executable file
38 lines
1.2 KiB
C#
Executable file
using FSO.Common.Serialization;
|
|
using Mina.Core.Buffer;
|
|
using FSO.Server.Protocol.Electron.Model;
|
|
|
|
namespace FSO.Server.Protocol.Electron.Packets
|
|
{
|
|
public class FindLotResponse : AbstractElectronPacket
|
|
{
|
|
public FindLotResponseStatus Status;
|
|
public uint LotId;
|
|
public string LotServerTicket;
|
|
public string Address;
|
|
public string User;
|
|
|
|
public override void Deserialize(IoBuffer input, ISerializationContext context)
|
|
{
|
|
Status = input.GetEnum<FindLotResponseStatus>();
|
|
LotId = input.GetUInt32();
|
|
LotServerTicket = input.GetPascalVLCString();
|
|
Address = input.GetPascalVLCString();
|
|
User = input.GetPascalVLCString();
|
|
}
|
|
|
|
public override ElectronPacketType GetPacketType()
|
|
{
|
|
return ElectronPacketType.FindLotResponse;
|
|
}
|
|
|
|
public override void Serialize(IoBuffer output, ISerializationContext context)
|
|
{
|
|
output.PutEnum(Status);
|
|
output.PutUInt32(LotId);
|
|
output.PutPascalVLCString(LotServerTicket);
|
|
output.PutPascalVLCString(Address);
|
|
output.PutPascalVLCString(User);
|
|
}
|
|
}
|
|
}
|