mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-12 09:12:25 -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
95
server/FSO.Server.Protocol/Voltron/Packets/FindPlayerResponsePDU.cs
Executable file
95
server/FSO.Server.Protocol/Voltron/Packets/FindPlayerResponsePDU.cs
Executable file
|
@ -0,0 +1,95 @@
|
|||
using Mina.Core.Buffer;
|
||||
using FSO.Common.Serialization;
|
||||
|
||||
namespace FSO.Server.Protocol.Voltron.Packets
|
||||
{
|
||||
public class FindPlayerResponsePDU : AbstractVoltronPacket
|
||||
{
|
||||
public uint StatusCode;
|
||||
public string ReasonText;
|
||||
|
||||
public int AvatarID;
|
||||
public int RoomID;
|
||||
public int StageID;
|
||||
|
||||
public override void Deserialize(IoBuffer input, ISerializationContext context)
|
||||
{
|
||||
StatusCode = input.GetUInt32();
|
||||
ReasonText = input.GetPascalString();
|
||||
|
||||
//Room Info
|
||||
}
|
||||
|
||||
public override VoltronPacketType GetPacketType()
|
||||
{
|
||||
return VoltronPacketType.FindPlayerResponsePDU;
|
||||
}
|
||||
|
||||
public override void Serialize(IoBuffer output, ISerializationContext context)
|
||||
{
|
||||
//var result = Allocate(8);
|
||||
//result.AutoExpand = true;
|
||||
|
||||
output.PutUInt32(StatusCode);
|
||||
output.PutPascalString(ReasonText);
|
||||
|
||||
|
||||
//Room Info
|
||||
output.PutPascalString("A 16318812");
|
||||
output.PutPascalString("1");
|
||||
output.Put((byte)0);
|
||||
|
||||
//Owner
|
||||
output.PutPascalString("A 65538");
|
||||
output.PutPascalString("1");
|
||||
|
||||
//Stage id
|
||||
output.PutPascalString("A 16318812");
|
||||
output.PutPascalString("1");
|
||||
|
||||
//Currnet ocupancy
|
||||
output.PutUInt32(10);
|
||||
|
||||
//Max occupancy
|
||||
output.PutUInt32(50);
|
||||
|
||||
//pswd required
|
||||
output.Put((byte)0);
|
||||
|
||||
//room type
|
||||
output.Put((byte)1);
|
||||
|
||||
//Group
|
||||
output.PutPascalString("1");
|
||||
|
||||
//Admin list
|
||||
output.PutUInt16(0);
|
||||
|
||||
//m_EnabledFlag
|
||||
output.Put(0);
|
||||
|
||||
//m_AdmitList
|
||||
output.PutUInt16(0);
|
||||
|
||||
//m_EnabledFlag
|
||||
output.Put(0);
|
||||
|
||||
//m_DenyList
|
||||
output.PutUInt16(0);
|
||||
|
||||
//m_EnabledFlag
|
||||
output.Put(0);
|
||||
|
||||
output.PutUInt32(0);
|
||||
output.PutUInt32(0);
|
||||
output.PutUInt32(0);
|
||||
|
||||
//player info
|
||||
output.PutPascalString("A "+AvatarID.ToString());
|
||||
output.PutPascalString("");
|
||||
output.Put(0);
|
||||
output.Put(0);
|
||||
//return result;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue