53 lines
1.1 KiB
Go
53 lines
1.1 KiB
Go
|
package main
|
||
|
|
||
|
type Packet struct {
|
||
|
PLength uint16
|
||
|
PType uint8
|
||
|
}
|
||
|
|
||
|
type PacketAdminJoin struct {
|
||
|
Packet
|
||
|
Password string
|
||
|
AppName string
|
||
|
AppVersion string
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
AdminPacketAdminJoin uint8 = 0
|
||
|
AdminPacketAdminQuit
|
||
|
AdminPacketAdminUpdateFrequency
|
||
|
AdminPacketAdminPoll
|
||
|
AdminPacketAdminChat
|
||
|
AdminPacketAdminRCon
|
||
|
AdminPacketAdminGamescript
|
||
|
AdminPacketAdminPing
|
||
|
AdminPacketServerFull = 100
|
||
|
AdminPacketServerBanned
|
||
|
AdminPacketServerError
|
||
|
AdminPacketServerProtocol
|
||
|
AdminPacketServerWelcome
|
||
|
AdminPacketServerNewgame
|
||
|
AdminPacketServerShutdown
|
||
|
AdminPacketServerDate
|
||
|
AdminPacketServerClientJoin
|
||
|
AdminPacketServerClientInfo
|
||
|
AdminPacketServerClientUpdate
|
||
|
AdminPacketServerClientQuit
|
||
|
AdminPacketServerClientError
|
||
|
AdminPacketServerCompanyNew
|
||
|
AdminPacketServerCompanyInfo
|
||
|
AdminPacketServerCompanyUpdate
|
||
|
AdminPacketServerCompanyRemove
|
||
|
AdminPacketServerCompanyEconomy
|
||
|
AdminPacketServerCompanyStats
|
||
|
AdminPacketServerChat
|
||
|
AdminPacketServerRCon
|
||
|
AdminPacketServerConsole
|
||
|
AdminPacketServerCmdNames
|
||
|
AdminPacketServerCmdLogging
|
||
|
AdminPacketServerGamescript
|
||
|
AdminPacketServerRConEnd
|
||
|
AdminPacketServerPong
|
||
|
InvalidAdminPacket = 0xFF
|
||
|
)
|