Skip to content

Cmd_CheckInLobbyAck

GigaToni edited this page May 4, 2017 · 2 revisions

Server -> Client = Cmd_CheckInLobbyAck (42)

  • Result of the operation
    • 0 = no error
    • 1 = error
  • Permission flags
    • Administrator = 0x8000
    • PowerUser = 0x4000
    • RemoteClientUser = 0x2000
    • Developer = 0x1000
    • User = 0x0

This is the answer packet to Cmd_CheckInLobby (41)

Raw packet data sent by server

000000: 2A 00 00 00 00 00 00 80 00 00  * · · · · · · · · · 

Pseudo struct

typedef struct
{
    int Result;
    int Permission;
};

Pseudo C# Class

public class CheckInLobbyAckPacket
{
    public int Result = 1;
    public int Permission = 0;
    
    public void Send(ushort packetId, Client client)
    {
        var ack = new Packet(packetId);
        ack.Writer.Write(Result);
        ack.Writer.Write(Permission);
        client.Send(ack);
    }
}
Clone this wiki locally