OfflineCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const OfflineCmd uint16 = 902
OfflineVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const OfflineVer uint8 = 1
OnlineCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const OnlineCmd uint16 = 900
OnlineVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const OnlineVer uint8 = 1
RoomDumpCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const RoomDumpCmd uint16 = 904
RoomDumpVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const RoomDumpVer uint8 = 1
TakenCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const TakenCmd uint16 = 901
TakenVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const TakenVer uint8 = 1
TerminateCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const TerminateCmd uint16 = 903
TerminateVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const TerminateVer uint8 = 1
UserDumpCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const UserDumpCmd uint16 = 905
UserDumpVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const UserDumpVer uint8 = 1
Offline represents the command protocol data structure.
type Offline struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewOffline() *Offline
NewOffline creates a new instance of Offline struct.
func (proto *Offline) GetCmd() uint16
func (proto *Offline) GetVer() uint8
func (proto *Offline) Pack() []byte
Pack encodes Offline struct to a byte array to be delivered over the command.
func (proto *Offline) String() string
func (proto *Offline) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Offline struct.
Online represents the command protocol data structure.
type Online struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewOnline() *Online
NewOnline creates a new instance of Online struct.
func (proto *Online) GetCmd() uint16
func (proto *Online) GetVer() uint8
func (proto *Online) Pack() []byte
Pack encodes Online struct to a byte array to be delivered over the command.
func (proto *Online) String() string
func (proto *Online) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Online struct.
RoomDump represents the command protocol data structure.
type RoomDump struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewRoomDump() *RoomDump
NewRoomDump creates a new instance of RoomDump struct.
func (proto *RoomDump) GetCmd() uint16
func (proto *RoomDump) GetVer() uint8
func (proto *RoomDump) Pack() []byte
Pack encodes RoomDump struct to a byte array to be delivered over the command.
func (proto *RoomDump) String() string
func (proto *RoomDump) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to RoomDump struct.
Taken represents the command protocol data structure.
type Taken struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewTaken() *Taken
NewTaken creates a new instance of Taken struct.
func (proto *Taken) GetCmd() uint16
func (proto *Taken) GetVer() uint8
func (proto *Taken) Pack() []byte
Pack encodes Taken struct to a byte array to be delivered over the command.
func (proto *Taken) String() string
func (proto *Taken) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Taken struct.
Terminate represents the command protocol data structure.
type Terminate struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewTerminate() *Terminate
NewTerminate creates a new instance of Terminate struct.
func (proto *Terminate) GetCmd() uint16
func (proto *Terminate) GetVer() uint8
func (proto *Terminate) Pack() []byte
Pack encodes Terminate struct to a byte array to be delivered over the command.
func (proto *Terminate) String() string
func (proto *Terminate) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Terminate struct.
UserDump represents the command protocol data structure.
type UserDump struct { // Command version of the protocol Ver uint8 // Command ID of the protocol Cmd uint16 }
func NewUserDump() *UserDump
NewUserDump creates a new instance of UserDump struct.
func (proto *UserDump) GetCmd() uint16
func (proto *UserDump) GetVer() uint8
func (proto *UserDump) Pack() []byte
Pack encodes UserDump struct to a byte array to be delivered over the command.
func (proto *UserDump) String() string
func (proto *UserDump) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to UserDump struct.