mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
拆分战斗服务器
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
package cmd
|
||||
|
||||
import pb "google.golang.org/protobuf/proto"
|
||||
|
||||
const (
|
||||
NormalMsg = iota
|
||||
UserRegNotify
|
||||
UserLoginNotify
|
||||
UserOfflineNotify
|
||||
ClientRttNotify
|
||||
ClientTimeNotify
|
||||
)
|
||||
|
||||
type NetMsg struct {
|
||||
UserId uint32 `msgpack:"UserId"`
|
||||
EventId uint16 `msgpack:"EventId"`
|
||||
CmdId uint16 `msgpack:"CmdId"`
|
||||
ClientSeq uint32 `msgpack:"ClientSeq"`
|
||||
PayloadMessage pb.Message `msgpack:"-"`
|
||||
PayloadMessageData []byte `msgpack:"PayloadMessageData"`
|
||||
ClientRtt uint32 `msgpack:"ClientRtt"`
|
||||
ClientTime uint32 `msgpack:"ClientTime"`
|
||||
}
|
||||
Reference in New Issue
Block a user