mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-07 15:10: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
40
server/FSO.Server.Protocol/Gluon/Packets/MatchmakerNotify.cs
Executable file
40
server/FSO.Server.Protocol/Gluon/Packets/MatchmakerNotify.cs
Executable file
|
@ -0,0 +1,40 @@
|
|||
using FSO.Common.Serialization;
|
||||
using Mina.Core.Buffer;
|
||||
|
||||
namespace FSO.Server.Protocol.Gluon.Packets
|
||||
{
|
||||
/// <summary>
|
||||
/// Lot -> City server messages used to notify the matchmaker about some change to lot state.
|
||||
/// (currently only when an avatar leaves a lot. this frees up a space for the matchmaker to shove someone else in)
|
||||
/// </summary>
|
||||
public class MatchmakerNotify : AbstractGluonPacket
|
||||
{
|
||||
public MatchmakerNotifyType Mode;
|
||||
public uint LotID;
|
||||
public uint AvatarID;
|
||||
|
||||
public override void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
Mode = input.GetEnum<MatchmakerNotifyType>();
|
||||
LotID = input.GetUInt32();
|
||||
AvatarID = input.GetUInt32();
|
||||
}
|
||||
|
||||
public override GluonPacketType GetPacketType()
|
||||
{
|
||||
return GluonPacketType.MatchmakerNotify;
|
||||
}
|
||||
|
||||
public override void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
output.PutEnum(Mode);
|
||||
output.PutUInt32(LotID);
|
||||
output.PutUInt32(AvatarID);
|
||||
}
|
||||
}
|
||||
|
||||
public enum MatchmakerNotifyType : byte
|
||||
{
|
||||
RemoveAvatar = 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue