mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-24 02:09:14 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
29 lines
842 B
C#
Executable file
29 lines
842 B
C#
Executable file
using FSO.Common.Serialization;
|
|
using FSO.Server.Protocol.Electron.Model;
|
|
using Mina.Core.Buffer;
|
|
|
|
namespace FSO.Server.Protocol.Electron.Packets
|
|
{
|
|
public class ChangeRoommateResponse : AbstractElectronPacket
|
|
{
|
|
public ChangeRoommateResponseStatus Type;
|
|
public uint Extra;
|
|
|
|
public override void Deserialize(IoBuffer input, ISerializationContext context)
|
|
{
|
|
Type = input.GetEnum<ChangeRoommateResponseStatus>();
|
|
Extra = input.GetUInt32();
|
|
}
|
|
|
|
public override ElectronPacketType GetPacketType()
|
|
{
|
|
return ElectronPacketType.ChangeRoommateResponse;
|
|
}
|
|
|
|
public override void Serialize(IoBuffer output, ISerializationContext context)
|
|
{
|
|
output.PutEnum(Type);
|
|
output.PutUInt32(Extra);
|
|
}
|
|
}
|
|
}
|