56 lines
1.3 KiB
Go
56 lines
1.3 KiB
Go
package eq2net
|
|
|
|
// Protocol opcodes for UDP packet types
|
|
const (
|
|
OPSessionRequest uint8 = 0x01
|
|
OPSessionResponse uint8 = 0x02
|
|
OPCombined uint8 = 0x03
|
|
OPSessionDisconnect uint8 = 0x05
|
|
OPKeepAlive uint8 = 0x06
|
|
OPServerKeyRequest uint8 = 0x07
|
|
OPSessionStatResponse uint8 = 0x08
|
|
OPPacket uint8 = 0x09
|
|
OPFragment uint8 = 0x0d
|
|
OPOutOfOrderAck uint8 = 0x11
|
|
OPAck uint8 = 0x15
|
|
OPAppCombined uint8 = 0x19
|
|
OPOutOfSession uint8 = 0x1d
|
|
)
|
|
|
|
// Application opcodes
|
|
type EmuOpcode uint16
|
|
|
|
const (
|
|
OPUnknown EmuOpcode = iota
|
|
OPLoginReplyMsg
|
|
OPLoginByNumRequestMsg
|
|
OPWSLoginRequestMsg
|
|
OPESInitMsg
|
|
OPESReadyForClientsMsg
|
|
OPCreateZoneInstanceMsg
|
|
OPZoneInstanceCreateReplyMsg
|
|
OPZoneInstanceDestroyedMsg
|
|
OPExpectClientAsCharacterRequest
|
|
OPExpectClientAsCharacterReplyMs
|
|
OPZoneInfoMsg
|
|
OPCreateCharacterRequestMsg
|
|
OPDoneLoadingZoneResourcesMsg
|
|
OPDoneSendingInitialEntitiesMsg
|
|
OPDoneLoadingEntityResourcesMsg
|
|
OPDoneLoadingUIResourcesMsg
|
|
OPPredictionUpdateMsg
|
|
OPRemoteCmdMsg
|
|
OPSetRemoteCmdsMsg
|
|
OPGameWorldTimeMsg
|
|
OPMOTDMsg
|
|
OPZoneMOTDMsg
|
|
OPGuildRecruitingMemberInfo
|
|
OPGuildRecruiting
|
|
OPGuildRecruitingDetails
|
|
OPGuildRecruitingImage
|
|
OPAvatarCreatedMsg
|
|
OPAvatarDestroyedMsg
|
|
OPRequestCampMsg
|
|
OPMapRequest
|
|
OPCampStartedMsg
|
|
) |