Documentation ¶
Index ¶
- Constants
- Variables
- func NewAgent(conn net.Conn)
- type Action
- type Agent
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)
- func (m *C2S) GetEnterGameNotify() *EnterGameNotify
- func (m *C2S) GetGetDataReq() *GetDataReq
- func (m *C2S) GetGetDataRes() *GetDataRes
- func (m *C2S) GetGetOpenidReq() *GetOpenidReq
- func (m *C2S) GetGetOpenidRes() *GetOpenidRes
- func (m *C2S) GetHead() *C2SHead
- func (m *C2S) GetHeartBeatReq() *HeartBeatReq
- func (m *C2S) GetHeartBeatRes() *HeartBeatRes
- func (m *C2S) GetInputNotify() *InputNotify
- func (m *C2S) GetInputReq() *InputReq
- func (m *C2S) GetInputRes() *InputRes
- func (m *C2S) GetJoinRoomReq() *JoinRoomReq
- func (m *C2S) GetJoinRoomRes() *JoinRoomRes
- func (m *C2S) GetPlayerJoinNotify() *PlayerJoinNotify
- func (m *C2S) GetPlayerLeaveNotify() *PlayerLeaveNotify
- func (m *C2S) GetReadyReq() *ReadyReq
- func (m *C2S) GetReadyRes() *ReadyRes
- func (m *C2S) GetResult() *C2SRes
- func (m *C2S) GetStartGameNotify() *StartGameNotify
- func (*C2S) ProtoMessage()
- func (m *C2S) Reset()
- func (m *C2S) String() string
- func (m *C2S) XXX_DiscardUnknown()
- func (m *C2S) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *C2S) XXX_Merge(src proto.Message)
- func (m *C2S) XXX_Size() int
- func (m *C2S) XXX_Unmarshal(b []byte) error
- type C2SHead
- func (*C2SHead) Descriptor() ([]byte, []int)
- func (m *C2SHead) GetCmd() C2Scmd
- func (m *C2SHead) GetSeq() uint32
- func (m *C2SHead) GetType() C2Stype
- func (*C2SHead) ProtoMessage()
- func (m *C2SHead) Reset()
- func (m *C2SHead) String() string
- func (m *C2SHead) XXX_DiscardUnknown()
- func (m *C2SHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *C2SHead) XXX_Merge(src proto.Message)
- func (m *C2SHead) XXX_Size() int
- func (m *C2SHead) XXX_Unmarshal(b []byte) error
- type C2SPlayer
- func (*C2SPlayer) Descriptor() ([]byte, []int)
- func (m *C2SPlayer) GetAvatarUrl() string
- func (m *C2SPlayer) GetGold() uint32
- func (m *C2SPlayer) GetNickname() string
- func (m *C2SPlayer) GetUserid() uint64
- func (*C2SPlayer) ProtoMessage()
- func (m *C2SPlayer) Reset()
- func (m *C2SPlayer) String() string
- func (m *C2SPlayer) XXX_DiscardUnknown()
- func (m *C2SPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *C2SPlayer) XXX_Merge(src proto.Message)
- func (m *C2SPlayer) XXX_Size() int
- func (m *C2SPlayer) XXX_Unmarshal(b []byte) error
- type C2SRes
- func (*C2SRes) Descriptor() ([]byte, []int)
- func (m *C2SRes) GetErrCode() int32
- func (m *C2SRes) GetRes() int32
- func (*C2SRes) ProtoMessage()
- func (m *C2SRes) Reset()
- func (m *C2SRes) String() string
- func (m *C2SRes) XXX_DiscardUnknown()
- func (m *C2SRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *C2SRes) XXX_Merge(src proto.Message)
- func (m *C2SRes) XXX_Size() int
- func (m *C2SRes) XXX_Unmarshal(b []byte) error
- type C2Scmd
- type C2Stype
- type EnterGameNotify
- func (*EnterGameNotify) Descriptor() ([]byte, []int)
- func (m *EnterGameNotify) GetRoomid() uint32
- func (*EnterGameNotify) ProtoMessage()
- func (m *EnterGameNotify) Reset()
- func (m *EnterGameNotify) String() string
- func (m *EnterGameNotify) XXX_DiscardUnknown()
- func (m *EnterGameNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnterGameNotify) XXX_Merge(src proto.Message)
- func (m *EnterGameNotify) XXX_Size() int
- func (m *EnterGameNotify) XXX_Unmarshal(b []byte) error
- type GetDataReq
- func (*GetDataReq) Descriptor() ([]byte, []int)
- func (m *GetDataReq) GetOpenid() string
- func (*GetDataReq) ProtoMessage()
- func (m *GetDataReq) Reset()
- func (m *GetDataReq) String() string
- func (m *GetDataReq) XXX_DiscardUnknown()
- func (m *GetDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDataReq) XXX_Merge(src proto.Message)
- func (m *GetDataReq) XXX_Size() int
- func (m *GetDataReq) XXX_Unmarshal(b []byte) error
- type GetDataRes
- func (*GetDataRes) Descriptor() ([]byte, []int)
- func (m *GetDataRes) GetPlayer() *C2SPlayer
- func (*GetDataRes) ProtoMessage()
- func (m *GetDataRes) Reset()
- func (m *GetDataRes) String() string
- func (m *GetDataRes) XXX_DiscardUnknown()
- func (m *GetDataRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDataRes) XXX_Merge(src proto.Message)
- func (m *GetDataRes) XXX_Size() int
- func (m *GetDataRes) XXX_Unmarshal(b []byte) error
- type GetOpenidReq
- func (*GetOpenidReq) Descriptor() ([]byte, []int)
- func (m *GetOpenidReq) GetCode() string
- func (*GetOpenidReq) ProtoMessage()
- func (m *GetOpenidReq) Reset()
- func (m *GetOpenidReq) String() string
- func (m *GetOpenidReq) XXX_DiscardUnknown()
- func (m *GetOpenidReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetOpenidReq) XXX_Merge(src proto.Message)
- func (m *GetOpenidReq) XXX_Size() int
- func (m *GetOpenidReq) XXX_Unmarshal(b []byte) error
- type GetOpenidRes
- func (*GetOpenidRes) Descriptor() ([]byte, []int)
- func (m *GetOpenidRes) GetOpenid() string
- func (*GetOpenidRes) ProtoMessage()
- func (m *GetOpenidRes) Reset()
- func (m *GetOpenidRes) String() string
- func (m *GetOpenidRes) XXX_DiscardUnknown()
- func (m *GetOpenidRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetOpenidRes) XXX_Merge(src proto.Message)
- func (m *GetOpenidRes) XXX_Size() int
- func (m *GetOpenidRes) XXX_Unmarshal(b []byte) error
- type HeartBeatReq
- func (*HeartBeatReq) Descriptor() ([]byte, []int)
- func (*HeartBeatReq) ProtoMessage()
- func (m *HeartBeatReq) Reset()
- func (m *HeartBeatReq) String() string
- func (m *HeartBeatReq) XXX_DiscardUnknown()
- func (m *HeartBeatReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeartBeatReq) XXX_Merge(src proto.Message)
- func (m *HeartBeatReq) XXX_Size() int
- func (m *HeartBeatReq) XXX_Unmarshal(b []byte) error
- type HeartBeatRes
- func (*HeartBeatRes) Descriptor() ([]byte, []int)
- func (*HeartBeatRes) ProtoMessage()
- func (m *HeartBeatRes) Reset()
- func (m *HeartBeatRes) String() string
- func (m *HeartBeatRes) XXX_DiscardUnknown()
- func (m *HeartBeatRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeartBeatRes) XXX_Merge(src proto.Message)
- func (m *HeartBeatRes) XXX_Size() int
- func (m *HeartBeatRes) XXX_Unmarshal(b []byte) error
- type InputData
- func (*InputData) Descriptor() ([]byte, []int)
- func (m *InputData) GetAction() Action
- func (m *InputData) GetPlayerid() uint32
- func (m *InputData) GetX() int32
- func (m *InputData) GetY() int32
- func (*InputData) ProtoMessage()
- func (m *InputData) Reset()
- func (m *InputData) String() string
- func (m *InputData) XXX_DiscardUnknown()
- func (m *InputData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InputData) XXX_Merge(src proto.Message)
- func (m *InputData) XXX_Size() int
- func (m *InputData) XXX_Unmarshal(b []byte) error
- type InputNotify
- func (*InputNotify) Descriptor() ([]byte, []int)
- func (m *InputNotify) GetInputList() []*InputData
- func (m *InputNotify) GetStep() int32
- func (*InputNotify) ProtoMessage()
- func (m *InputNotify) Reset()
- func (m *InputNotify) String() string
- func (m *InputNotify) XXX_DiscardUnknown()
- func (m *InputNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InputNotify) XXX_Merge(src proto.Message)
- func (m *InputNotify) XXX_Size() int
- func (m *InputNotify) XXX_Unmarshal(b []byte) error
- type InputReq
- func (*InputReq) Descriptor() ([]byte, []int)
- func (m *InputReq) GetInput() *InputData
- func (m *InputReq) GetRoomid() uint32
- func (*InputReq) ProtoMessage()
- func (m *InputReq) Reset()
- func (m *InputReq) String() string
- func (m *InputReq) XXX_DiscardUnknown()
- func (m *InputReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InputReq) XXX_Merge(src proto.Message)
- func (m *InputReq) XXX_Size() int
- func (m *InputReq) XXX_Unmarshal(b []byte) error
- type InputRes
- func (*InputRes) Descriptor() ([]byte, []int)
- func (*InputRes) ProtoMessage()
- func (m *InputRes) Reset()
- func (m *InputRes) String() string
- func (m *InputRes) XXX_DiscardUnknown()
- func (m *InputRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InputRes) XXX_Merge(src proto.Message)
- func (m *InputRes) XXX_Size() int
- func (m *InputRes) XXX_Unmarshal(b []byte) error
- type JoinRoomReq
- func (*JoinRoomReq) Descriptor() ([]byte, []int)
- func (*JoinRoomReq) ProtoMessage()
- func (m *JoinRoomReq) Reset()
- func (m *JoinRoomReq) String() string
- func (m *JoinRoomReq) XXX_DiscardUnknown()
- func (m *JoinRoomReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JoinRoomReq) XXX_Merge(src proto.Message)
- func (m *JoinRoomReq) XXX_Size() int
- func (m *JoinRoomReq) XXX_Unmarshal(b []byte) error
- type JoinRoomRes
- func (*JoinRoomRes) Descriptor() ([]byte, []int)
- func (m *JoinRoomRes) GetPlayerid() uint32
- func (m *JoinRoomRes) GetRoomid() uint32
- func (m *JoinRoomRes) GetSeed() uint32
- func (*JoinRoomRes) ProtoMessage()
- func (m *JoinRoomRes) Reset()
- func (m *JoinRoomRes) String() string
- func (m *JoinRoomRes) XXX_DiscardUnknown()
- func (m *JoinRoomRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JoinRoomRes) XXX_Merge(src proto.Message)
- func (m *JoinRoomRes) XXX_Size() int
- func (m *JoinRoomRes) XXX_Unmarshal(b []byte) error
- type PlayerJoinNotify
- func (*PlayerJoinNotify) Descriptor() ([]byte, []int)
- func (m *PlayerJoinNotify) GetAvatarUrl() string
- func (m *PlayerJoinNotify) GetNickname() string
- func (m *PlayerJoinNotify) GetPlayerid() uint32
- func (m *PlayerJoinNotify) GetType() Playertype
- func (*PlayerJoinNotify) ProtoMessage()
- func (m *PlayerJoinNotify) Reset()
- func (m *PlayerJoinNotify) String() string
- func (m *PlayerJoinNotify) XXX_DiscardUnknown()
- func (m *PlayerJoinNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlayerJoinNotify) XXX_Merge(src proto.Message)
- func (m *PlayerJoinNotify) XXX_Size() int
- func (m *PlayerJoinNotify) XXX_Unmarshal(b []byte) error
- type PlayerLeaveNotify
- func (*PlayerLeaveNotify) Descriptor() ([]byte, []int)
- func (m *PlayerLeaveNotify) GetPlayerid() uint32
- func (*PlayerLeaveNotify) ProtoMessage()
- func (m *PlayerLeaveNotify) Reset()
- func (m *PlayerLeaveNotify) String() string
- func (m *PlayerLeaveNotify) XXX_DiscardUnknown()
- func (m *PlayerLeaveNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlayerLeaveNotify) XXX_Merge(src proto.Message)
- func (m *PlayerLeaveNotify) XXX_Size() int
- func (m *PlayerLeaveNotify) XXX_Unmarshal(b []byte) error
- type Playertype
- type ReadyReq
- func (*ReadyReq) Descriptor() ([]byte, []int)
- func (m *ReadyReq) GetRoomid() uint32
- func (*ReadyReq) ProtoMessage()
- func (m *ReadyReq) Reset()
- func (m *ReadyReq) String() string
- func (m *ReadyReq) XXX_DiscardUnknown()
- func (m *ReadyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadyReq) XXX_Merge(src proto.Message)
- func (m *ReadyReq) XXX_Size() int
- func (m *ReadyReq) XXX_Unmarshal(b []byte) error
- type ReadyRes
- func (*ReadyRes) Descriptor() ([]byte, []int)
- func (m *ReadyRes) GetRoomid() uint32
- func (*ReadyRes) ProtoMessage()
- func (m *ReadyRes) Reset()
- func (m *ReadyRes) String() string
- func (m *ReadyRes) XXX_DiscardUnknown()
- func (m *ReadyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadyRes) XXX_Merge(src proto.Message)
- func (m *ReadyRes) XXX_Size() int
- func (m *ReadyRes) XXX_Unmarshal(b []byte) error
- type StartGameNotify
- func (*StartGameNotify) Descriptor() ([]byte, []int)
- func (m *StartGameNotify) GetTime() uint64
- func (*StartGameNotify) ProtoMessage()
- func (m *StartGameNotify) Reset()
- func (m *StartGameNotify) String() string
- func (m *StartGameNotify) XXX_DiscardUnknown()
- func (m *StartGameNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StartGameNotify) XXX_Merge(src proto.Message)
- func (m *StartGameNotify) XXX_Size() int
- func (m *StartGameNotify) XXX_Unmarshal(b []byte) error
- type Task
Constants ¶
View Source
const ( NEW uint8 = iota + 1 MSG CLOSE )
Variables ¶
View Source
var Action_name = map[int32]string{
0: "IDLE",
1: "MOVE",
}
View Source
var Action_value = map[string]int32{
"IDLE": 0,
"MOVE": 1,
}
View Source
var C2Scmd_name = map[int32]string{
0: "CMD_GOOD_GAME",
10001: "CMD_LOGIN_GET_OPENID_REQ",
10002: "CMD_LOGIN_GET_OPENID_RES",
10003: "CMD_LOGIN_GET_DATA_REQ",
10004: "CMD_LOGIN_GET_DATA_RES",
10005: "CMD_LOGIN_HEARTBEAT_REQ",
10006: "CMD_LOGIN_HEARTBEAT_RES",
20001: "CMD_GAME_JOINROOM_REQ",
20002: "CMD_GAME_JOINROOM_RES",
20003: "CMD_GAME_PLAYERJOIN_NOTIFY",
20004: "CMD_GAME_PLAYERJOIN_NOTIFY_PLACEHOLDER",
20005: "CMD_GAME_PLAYERLEAVE_NOTIFY",
20006: "CMD_GAME_PLAYERLEAVE_NOTIFY_PLACEHOLDER",
20007: "CMD_GAME_ENTERGAME_NOTIFY",
20008: "CMD_GAME_ENTERGAME_NOTIFY_PLACEHOLDER",
20009: "CMD_GAME_INPUT_NOTIFY",
20010: "CMD_GAME_INPUT_NOTIFY_PLACEHOLDER",
20011: "CMD_GAME_READY_REQ",
20012: "CMD_GAME_READY_RES",
20013: "CMD_GAME_STARTGAME_NOTIFY",
20014: "CMD_GAME_STARTGAME_NOTIFY_PLACEHOLDER",
20015: "CMD_GAME_INPUT_REQ",
20016: "CMD_GAME_INPUT_RES",
}
View Source
var C2Scmd_value = map[string]int32{
"CMD_GOOD_GAME": 0,
"CMD_LOGIN_GET_OPENID_REQ": 10001,
"CMD_LOGIN_GET_OPENID_RES": 10002,
"CMD_LOGIN_GET_DATA_REQ": 10003,
"CMD_LOGIN_GET_DATA_RES": 10004,
"CMD_LOGIN_HEARTBEAT_REQ": 10005,
"CMD_LOGIN_HEARTBEAT_RES": 10006,
"CMD_GAME_JOINROOM_REQ": 20001,
"CMD_GAME_JOINROOM_RES": 20002,
"CMD_GAME_PLAYERJOIN_NOTIFY": 20003,
"CMD_GAME_PLAYERJOIN_NOTIFY_PLACEHOLDER": 20004,
"CMD_GAME_PLAYERLEAVE_NOTIFY": 20005,
"CMD_GAME_PLAYERLEAVE_NOTIFY_PLACEHOLDER": 20006,
"CMD_GAME_ENTERGAME_NOTIFY": 20007,
"CMD_GAME_ENTERGAME_NOTIFY_PLACEHOLDER": 20008,
"CMD_GAME_INPUT_NOTIFY": 20009,
"CMD_GAME_INPUT_NOTIFY_PLACEHOLDER": 20010,
"CMD_GAME_READY_REQ": 20011,
"CMD_GAME_READY_RES": 20012,
"CMD_GAME_STARTGAME_NOTIFY": 20013,
"CMD_GAME_STARTGAME_NOTIFY_PLACEHOLDER": 20014,
"CMD_GAME_INPUT_REQ": 20015,
"CMD_GAME_INPUT_RES": 20016,
}
View Source
var C2Stype_name = map[int32]string{
0: "TYPE_MAIN",
1: "TYPE_ROOM",
}
View Source
var C2Stype_value = map[string]int32{
"TYPE_MAIN": 0,
"TYPE_ROOM": 1,
}
View Source
var MainReqQueue chan *Task
View Source
var MainResQueue chan struct{}
View Source
var Playertype_name = map[int32]string{
0: "MAN",
1: "FAKE",
}
View Source
var Playertype_value = map[string]int32{
"MAN": 0,
"FAKE": 1,
}
View Source
var TimerQueue chan func()
Functions ¶
Types ¶
type C2S ¶
type C2S struct { // head Head *C2SHead `protobuf:"bytes,1,req,name=Head" json:"Head,omitempty"` Result *C2SRes `protobuf:"bytes,2,opt,name=Result" json:"Result,omitempty"` GetOpenidReq *GetOpenidReq `protobuf:"bytes,3,opt,name=GetOpenidReq" json:"GetOpenidReq,omitempty"` GetOpenidRes *GetOpenidRes `protobuf:"bytes,4,opt,name=GetOpenidRes" json:"GetOpenidRes,omitempty"` GetDataReq *GetDataReq `protobuf:"bytes,5,opt,name=GetDataReq" json:"GetDataReq,omitempty"` GetDataRes *GetDataRes `protobuf:"bytes,6,opt,name=GetDataRes" json:"GetDataRes,omitempty"` HeartBeatReq *HeartBeatReq `protobuf:"bytes,7,opt,name=HeartBeatReq" json:"HeartBeatReq,omitempty"` HeartBeatRes *HeartBeatRes `protobuf:"bytes,8,opt,name=HeartBeatRes" json:"HeartBeatRes,omitempty"` JoinRoomReq *JoinRoomReq `protobuf:"bytes,9,opt,name=JoinRoomReq" json:"JoinRoomReq,omitempty"` JoinRoomRes *JoinRoomRes `protobuf:"bytes,10,opt,name=JoinRoomRes" json:"JoinRoomRes,omitempty"` PlayerJoinNotify *PlayerJoinNotify `protobuf:"bytes,11,opt,name=PlayerJoinNotify" json:"PlayerJoinNotify,omitempty"` PlayerLeaveNotify *PlayerLeaveNotify `protobuf:"bytes,12,opt,name=PlayerLeaveNotify" json:"PlayerLeaveNotify,omitempty"` EnterGameNotify *EnterGameNotify `protobuf:"bytes,13,opt,name=EnterGameNotify" json:"EnterGameNotify,omitempty"` InputNotify *InputNotify `protobuf:"bytes,14,opt,name=InputNotify" json:"InputNotify,omitempty"` ReadyReq *ReadyReq `protobuf:"bytes,15,opt,name=ReadyReq" json:"ReadyReq,omitempty"` ReadyRes *ReadyRes `protobuf:"bytes,16,opt,name=ReadyRes" json:"ReadyRes,omitempty"` StartGameNotify *StartGameNotify `protobuf:"bytes,17,opt,name=StartGameNotify" json:"StartGameNotify,omitempty"` InputReq *InputReq `protobuf:"bytes,18,opt,name=InputReq" json:"InputReq,omitempty"` InputRes *InputRes `protobuf:"bytes,19,opt,name=InputRes" json:"InputRes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
协议
func (*C2S) Descriptor ¶
func (*C2S) GetEnterGameNotify ¶
func (m *C2S) GetEnterGameNotify() *EnterGameNotify
func (*C2S) GetGetDataReq ¶
func (m *C2S) GetGetDataReq() *GetDataReq
func (*C2S) GetGetDataRes ¶
func (m *C2S) GetGetDataRes() *GetDataRes
func (*C2S) GetGetOpenidReq ¶
func (m *C2S) GetGetOpenidReq() *GetOpenidReq
func (*C2S) GetGetOpenidRes ¶
func (m *C2S) GetGetOpenidRes() *GetOpenidRes
func (*C2S) GetHeartBeatReq ¶
func (m *C2S) GetHeartBeatReq() *HeartBeatReq
func (*C2S) GetHeartBeatRes ¶
func (m *C2S) GetHeartBeatRes() *HeartBeatRes
func (*C2S) GetInputNotify ¶
func (m *C2S) GetInputNotify() *InputNotify
func (*C2S) GetInputReq ¶
func (*C2S) GetInputRes ¶
func (*C2S) GetJoinRoomReq ¶
func (m *C2S) GetJoinRoomReq() *JoinRoomReq
func (*C2S) GetJoinRoomRes ¶
func (m *C2S) GetJoinRoomRes() *JoinRoomRes
func (*C2S) GetPlayerJoinNotify ¶
func (m *C2S) GetPlayerJoinNotify() *PlayerJoinNotify
func (*C2S) GetPlayerLeaveNotify ¶
func (m *C2S) GetPlayerLeaveNotify() *PlayerLeaveNotify
func (*C2S) GetReadyReq ¶
func (*C2S) GetReadyRes ¶
func (*C2S) GetStartGameNotify ¶
func (m *C2S) GetStartGameNotify() *StartGameNotify
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) XXX_DiscardUnknown ¶
func (m *C2S) XXX_DiscardUnknown()
func (*C2S) XXX_Unmarshal ¶
type C2SHead ¶
type C2SHead struct { Type *C2Stype `protobuf:"varint,1,req,name=Type,enum=msg.C2Stype" json:"Type,omitempty"` Cmd *C2Scmd `protobuf:"varint,2,req,name=Cmd,enum=msg.C2Scmd" json:"Cmd,omitempty"` Seq *uint32 `protobuf:"varint,3,opt,name=Seq" json:"Seq,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
协议头
func (*C2SHead) Descriptor ¶
func (*C2SHead) ProtoMessage ¶
func (*C2SHead) ProtoMessage()
func (*C2SHead) XXX_DiscardUnknown ¶
func (m *C2SHead) XXX_DiscardUnknown()
func (*C2SHead) XXX_Marshal ¶
func (*C2SHead) XXX_Unmarshal ¶
type C2SPlayer ¶
type C2SPlayer struct { Userid *uint64 `protobuf:"varint,1,opt,name=Userid" json:"Userid,omitempty"` Nickname *string `protobuf:"bytes,2,opt,name=Nickname" json:"Nickname,omitempty"` AvatarUrl *string `protobuf:"bytes,3,opt,name=AvatarUrl" json:"AvatarUrl,omitempty"` Gold *uint32 `protobuf:"varint,4,opt,name=Gold" json:"Gold,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*C2SPlayer) Descriptor ¶
func (*C2SPlayer) GetAvatarUrl ¶
func (*C2SPlayer) GetNickname ¶
func (*C2SPlayer) ProtoMessage ¶
func (*C2SPlayer) ProtoMessage()
func (*C2SPlayer) XXX_DiscardUnknown ¶
func (m *C2SPlayer) XXX_DiscardUnknown()
func (*C2SPlayer) XXX_Marshal ¶
func (*C2SPlayer) XXX_Unmarshal ¶
type C2SRes ¶
type C2SRes struct { Res *int32 `protobuf:"varint,1,opt,name=Res" json:"Res,omitempty"` ErrCode *int32 `protobuf:"varint,2,opt,name=ErrCode" json:"ErrCode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*C2SRes) Descriptor ¶
func (*C2SRes) GetErrCode ¶
func (*C2SRes) ProtoMessage ¶
func (*C2SRes) ProtoMessage()
func (*C2SRes) XXX_DiscardUnknown ¶
func (m *C2SRes) XXX_DiscardUnknown()
func (*C2SRes) XXX_Marshal ¶
func (*C2SRes) XXX_Unmarshal ¶
type C2Scmd ¶
type C2Scmd int32
const ( C2Scmd_CMD_GOOD_GAME C2Scmd = 0 //10001 - 20000 C2Scmd_CMD_LOGIN_GET_OPENID_REQ C2Scmd = 10001 C2Scmd_CMD_LOGIN_GET_OPENID_RES C2Scmd = 10002 C2Scmd_CMD_LOGIN_GET_DATA_REQ C2Scmd = 10003 C2Scmd_CMD_LOGIN_GET_DATA_RES C2Scmd = 10004 C2Scmd_CMD_LOGIN_HEARTBEAT_REQ C2Scmd = 10005 C2Scmd_CMD_LOGIN_HEARTBEAT_RES C2Scmd = 10006 //20001 - 30000 C2Scmd_CMD_GAME_JOINROOM_REQ C2Scmd = 20001 C2Scmd_CMD_GAME_JOINROOM_RES C2Scmd = 20002 C2Scmd_CMD_GAME_PLAYERJOIN_NOTIFY C2Scmd = 20003 C2Scmd_CMD_GAME_PLAYERJOIN_NOTIFY_PLACEHOLDER C2Scmd = 20004 C2Scmd_CMD_GAME_PLAYERLEAVE_NOTIFY C2Scmd = 20005 C2Scmd_CMD_GAME_PLAYERLEAVE_NOTIFY_PLACEHOLDER C2Scmd = 20006 C2Scmd_CMD_GAME_ENTERGAME_NOTIFY C2Scmd = 20007 C2Scmd_CMD_GAME_ENTERGAME_NOTIFY_PLACEHOLDER C2Scmd = 20008 C2Scmd_CMD_GAME_INPUT_NOTIFY C2Scmd = 20009 C2Scmd_CMD_GAME_INPUT_NOTIFY_PLACEHOLDER C2Scmd = 20010 C2Scmd_CMD_GAME_READY_REQ C2Scmd = 20011 C2Scmd_CMD_GAME_READY_RES C2Scmd = 20012 C2Scmd_CMD_GAME_STARTGAME_NOTIFY C2Scmd = 20013 C2Scmd_CMD_GAME_STARTGAME_NOTIFY_PLACEHOLDER C2Scmd = 20014 C2Scmd_CMD_GAME_INPUT_REQ C2Scmd = 20015 C2Scmd_CMD_GAME_INPUT_RES C2Scmd = 20016 )
func (C2Scmd) EnumDescriptor ¶
func (*C2Scmd) UnmarshalJSON ¶
type EnterGameNotify ¶
type EnterGameNotify struct { Roomid *uint32 `protobuf:"varint,1,req,name=Roomid" json:"Roomid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_ENTERGAME_NOTIFY
func (*EnterGameNotify) Descriptor ¶
func (*EnterGameNotify) Descriptor() ([]byte, []int)
func (*EnterGameNotify) GetRoomid ¶
func (m *EnterGameNotify) GetRoomid() uint32
func (*EnterGameNotify) ProtoMessage ¶
func (*EnterGameNotify) ProtoMessage()
func (*EnterGameNotify) Reset ¶
func (m *EnterGameNotify) Reset()
func (*EnterGameNotify) String ¶
func (m *EnterGameNotify) String() string
func (*EnterGameNotify) XXX_DiscardUnknown ¶
func (m *EnterGameNotify) XXX_DiscardUnknown()
func (*EnterGameNotify) XXX_Marshal ¶
func (m *EnterGameNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnterGameNotify) XXX_Merge ¶
func (m *EnterGameNotify) XXX_Merge(src proto.Message)
func (*EnterGameNotify) XXX_Size ¶
func (m *EnterGameNotify) XXX_Size() int
func (*EnterGameNotify) XXX_Unmarshal ¶
func (m *EnterGameNotify) XXX_Unmarshal(b []byte) error
type GetDataReq ¶
type GetDataReq struct { Openid *string `protobuf:"bytes,1,opt,name=Openid" json:"Openid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_GET_DATA_REQ
func (*GetDataReq) Descriptor ¶
func (*GetDataReq) Descriptor() ([]byte, []int)
func (*GetDataReq) GetOpenid ¶
func (m *GetDataReq) GetOpenid() string
func (*GetDataReq) ProtoMessage ¶
func (*GetDataReq) ProtoMessage()
func (*GetDataReq) Reset ¶
func (m *GetDataReq) Reset()
func (*GetDataReq) String ¶
func (m *GetDataReq) String() string
func (*GetDataReq) XXX_DiscardUnknown ¶
func (m *GetDataReq) XXX_DiscardUnknown()
func (*GetDataReq) XXX_Marshal ¶
func (m *GetDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDataReq) XXX_Merge ¶
func (m *GetDataReq) XXX_Merge(src proto.Message)
func (*GetDataReq) XXX_Size ¶
func (m *GetDataReq) XXX_Size() int
func (*GetDataReq) XXX_Unmarshal ¶
func (m *GetDataReq) XXX_Unmarshal(b []byte) error
type GetDataRes ¶
type GetDataRes struct { Player *C2SPlayer `protobuf:"bytes,1,opt,name=Player" json:"Player,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_GET_DATA_RES
func (*GetDataRes) Descriptor ¶
func (*GetDataRes) Descriptor() ([]byte, []int)
func (*GetDataRes) GetPlayer ¶
func (m *GetDataRes) GetPlayer() *C2SPlayer
func (*GetDataRes) ProtoMessage ¶
func (*GetDataRes) ProtoMessage()
func (*GetDataRes) Reset ¶
func (m *GetDataRes) Reset()
func (*GetDataRes) String ¶
func (m *GetDataRes) String() string
func (*GetDataRes) XXX_DiscardUnknown ¶
func (m *GetDataRes) XXX_DiscardUnknown()
func (*GetDataRes) XXX_Marshal ¶
func (m *GetDataRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDataRes) XXX_Merge ¶
func (m *GetDataRes) XXX_Merge(src proto.Message)
func (*GetDataRes) XXX_Size ¶
func (m *GetDataRes) XXX_Size() int
func (*GetDataRes) XXX_Unmarshal ¶
func (m *GetDataRes) XXX_Unmarshal(b []byte) error
type GetOpenidReq ¶
type GetOpenidReq struct { Code *string `protobuf:"bytes,1,opt,name=Code" json:"Code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_GET_OPENID_REQ
func (*GetOpenidReq) Descriptor ¶
func (*GetOpenidReq) Descriptor() ([]byte, []int)
func (*GetOpenidReq) GetCode ¶
func (m *GetOpenidReq) GetCode() string
func (*GetOpenidReq) ProtoMessage ¶
func (*GetOpenidReq) ProtoMessage()
func (*GetOpenidReq) Reset ¶
func (m *GetOpenidReq) Reset()
func (*GetOpenidReq) String ¶
func (m *GetOpenidReq) String() string
func (*GetOpenidReq) XXX_DiscardUnknown ¶
func (m *GetOpenidReq) XXX_DiscardUnknown()
func (*GetOpenidReq) XXX_Marshal ¶
func (m *GetOpenidReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetOpenidReq) XXX_Merge ¶
func (m *GetOpenidReq) XXX_Merge(src proto.Message)
func (*GetOpenidReq) XXX_Size ¶
func (m *GetOpenidReq) XXX_Size() int
func (*GetOpenidReq) XXX_Unmarshal ¶
func (m *GetOpenidReq) XXX_Unmarshal(b []byte) error
type GetOpenidRes ¶
type GetOpenidRes struct { Openid *string `protobuf:"bytes,1,opt,name=Openid" json:"Openid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_GET_OPENID_RES
func (*GetOpenidRes) Descriptor ¶
func (*GetOpenidRes) Descriptor() ([]byte, []int)
func (*GetOpenidRes) GetOpenid ¶
func (m *GetOpenidRes) GetOpenid() string
func (*GetOpenidRes) ProtoMessage ¶
func (*GetOpenidRes) ProtoMessage()
func (*GetOpenidRes) Reset ¶
func (m *GetOpenidRes) Reset()
func (*GetOpenidRes) String ¶
func (m *GetOpenidRes) String() string
func (*GetOpenidRes) XXX_DiscardUnknown ¶
func (m *GetOpenidRes) XXX_DiscardUnknown()
func (*GetOpenidRes) XXX_Marshal ¶
func (m *GetOpenidRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetOpenidRes) XXX_Merge ¶
func (m *GetOpenidRes) XXX_Merge(src proto.Message)
func (*GetOpenidRes) XXX_Size ¶
func (m *GetOpenidRes) XXX_Size() int
func (*GetOpenidRes) XXX_Unmarshal ¶
func (m *GetOpenidRes) XXX_Unmarshal(b []byte) error
type HeartBeatReq ¶
type HeartBeatReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_HEARTBEAT_REQ
func (*HeartBeatReq) Descriptor ¶
func (*HeartBeatReq) Descriptor() ([]byte, []int)
func (*HeartBeatReq) ProtoMessage ¶
func (*HeartBeatReq) ProtoMessage()
func (*HeartBeatReq) Reset ¶
func (m *HeartBeatReq) Reset()
func (*HeartBeatReq) String ¶
func (m *HeartBeatReq) String() string
func (*HeartBeatReq) XXX_DiscardUnknown ¶
func (m *HeartBeatReq) XXX_DiscardUnknown()
func (*HeartBeatReq) XXX_Marshal ¶
func (m *HeartBeatReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeartBeatReq) XXX_Merge ¶
func (m *HeartBeatReq) XXX_Merge(src proto.Message)
func (*HeartBeatReq) XXX_Size ¶
func (m *HeartBeatReq) XXX_Size() int
func (*HeartBeatReq) XXX_Unmarshal ¶
func (m *HeartBeatReq) XXX_Unmarshal(b []byte) error
type HeartBeatRes ¶
type HeartBeatRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_LOGIN_HEARTBEAT_RES
func (*HeartBeatRes) Descriptor ¶
func (*HeartBeatRes) Descriptor() ([]byte, []int)
func (*HeartBeatRes) ProtoMessage ¶
func (*HeartBeatRes) ProtoMessage()
func (*HeartBeatRes) Reset ¶
func (m *HeartBeatRes) Reset()
func (*HeartBeatRes) String ¶
func (m *HeartBeatRes) String() string
func (*HeartBeatRes) XXX_DiscardUnknown ¶
func (m *HeartBeatRes) XXX_DiscardUnknown()
func (*HeartBeatRes) XXX_Marshal ¶
func (m *HeartBeatRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeartBeatRes) XXX_Merge ¶
func (m *HeartBeatRes) XXX_Merge(src proto.Message)
func (*HeartBeatRes) XXX_Size ¶
func (m *HeartBeatRes) XXX_Size() int
func (*HeartBeatRes) XXX_Unmarshal ¶
func (m *HeartBeatRes) XXX_Unmarshal(b []byte) error
type InputData ¶
type InputData struct { Playerid *uint32 `protobuf:"varint,1,opt,name=Playerid" json:"Playerid,omitempty"` Action *Action `protobuf:"varint,2,opt,name=Action,enum=msg.Action" json:"Action,omitempty"` X *int32 `protobuf:"varint,3,opt,name=X" json:"X,omitempty"` Y *int32 `protobuf:"varint,4,opt,name=Y" json:"Y,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InputData) Descriptor ¶
func (*InputData) GetPlayerid ¶
func (*InputData) ProtoMessage ¶
func (*InputData) ProtoMessage()
func (*InputData) XXX_DiscardUnknown ¶
func (m *InputData) XXX_DiscardUnknown()
func (*InputData) XXX_Marshal ¶
func (*InputData) XXX_Unmarshal ¶
type InputNotify ¶
type InputNotify struct { Step *int32 `protobuf:"varint,1,req,name=Step" json:"Step,omitempty"` InputList []*InputData `protobuf:"bytes,2,rep,name=InputList" json:"InputList,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_INPUT_NOTIFY
func (*InputNotify) Descriptor ¶
func (*InputNotify) Descriptor() ([]byte, []int)
func (*InputNotify) GetInputList ¶
func (m *InputNotify) GetInputList() []*InputData
func (*InputNotify) GetStep ¶
func (m *InputNotify) GetStep() int32
func (*InputNotify) ProtoMessage ¶
func (*InputNotify) ProtoMessage()
func (*InputNotify) Reset ¶
func (m *InputNotify) Reset()
func (*InputNotify) String ¶
func (m *InputNotify) String() string
func (*InputNotify) XXX_DiscardUnknown ¶
func (m *InputNotify) XXX_DiscardUnknown()
func (*InputNotify) XXX_Marshal ¶
func (m *InputNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InputNotify) XXX_Merge ¶
func (m *InputNotify) XXX_Merge(src proto.Message)
func (*InputNotify) XXX_Size ¶
func (m *InputNotify) XXX_Size() int
func (*InputNotify) XXX_Unmarshal ¶
func (m *InputNotify) XXX_Unmarshal(b []byte) error
type InputReq ¶
type InputReq struct { Roomid *uint32 `protobuf:"varint,1,req,name=Roomid" json:"Roomid,omitempty"` Input *InputData `protobuf:"bytes,2,req,name=Input" json:"Input,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_INPUT_REQ
func (*InputReq) Descriptor ¶
func (*InputReq) ProtoMessage ¶
func (*InputReq) ProtoMessage()
func (*InputReq) XXX_DiscardUnknown ¶
func (m *InputReq) XXX_DiscardUnknown()
func (*InputReq) XXX_Marshal ¶
func (*InputReq) XXX_Unmarshal ¶
type InputRes ¶
type InputRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_INPUT_RES
func (*InputRes) Descriptor ¶
func (*InputRes) ProtoMessage ¶
func (*InputRes) ProtoMessage()
func (*InputRes) XXX_DiscardUnknown ¶
func (m *InputRes) XXX_DiscardUnknown()
func (*InputRes) XXX_Marshal ¶
func (*InputRes) XXX_Unmarshal ¶
type JoinRoomReq ¶
type JoinRoomReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_JOINROOM_REQ
func (*JoinRoomReq) Descriptor ¶
func (*JoinRoomReq) Descriptor() ([]byte, []int)
func (*JoinRoomReq) ProtoMessage ¶
func (*JoinRoomReq) ProtoMessage()
func (*JoinRoomReq) Reset ¶
func (m *JoinRoomReq) Reset()
func (*JoinRoomReq) String ¶
func (m *JoinRoomReq) String() string
func (*JoinRoomReq) XXX_DiscardUnknown ¶
func (m *JoinRoomReq) XXX_DiscardUnknown()
func (*JoinRoomReq) XXX_Marshal ¶
func (m *JoinRoomReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JoinRoomReq) XXX_Merge ¶
func (m *JoinRoomReq) XXX_Merge(src proto.Message)
func (*JoinRoomReq) XXX_Size ¶
func (m *JoinRoomReq) XXX_Size() int
func (*JoinRoomReq) XXX_Unmarshal ¶
func (m *JoinRoomReq) XXX_Unmarshal(b []byte) error
type JoinRoomRes ¶
type JoinRoomRes struct { Roomid *uint32 `protobuf:"varint,1,req,name=Roomid" json:"Roomid,omitempty"` Playerid *uint32 `protobuf:"varint,2,req,name=Playerid" json:"Playerid,omitempty"` Seed *uint32 `protobuf:"varint,3,req,name=Seed" json:"Seed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_JOINROOM_RES
func (*JoinRoomRes) Descriptor ¶
func (*JoinRoomRes) Descriptor() ([]byte, []int)
func (*JoinRoomRes) GetPlayerid ¶
func (m *JoinRoomRes) GetPlayerid() uint32
func (*JoinRoomRes) GetRoomid ¶
func (m *JoinRoomRes) GetRoomid() uint32
func (*JoinRoomRes) GetSeed ¶
func (m *JoinRoomRes) GetSeed() uint32
func (*JoinRoomRes) ProtoMessage ¶
func (*JoinRoomRes) ProtoMessage()
func (*JoinRoomRes) Reset ¶
func (m *JoinRoomRes) Reset()
func (*JoinRoomRes) String ¶
func (m *JoinRoomRes) String() string
func (*JoinRoomRes) XXX_DiscardUnknown ¶
func (m *JoinRoomRes) XXX_DiscardUnknown()
func (*JoinRoomRes) XXX_Marshal ¶
func (m *JoinRoomRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JoinRoomRes) XXX_Merge ¶
func (m *JoinRoomRes) XXX_Merge(src proto.Message)
func (*JoinRoomRes) XXX_Size ¶
func (m *JoinRoomRes) XXX_Size() int
func (*JoinRoomRes) XXX_Unmarshal ¶
func (m *JoinRoomRes) XXX_Unmarshal(b []byte) error
type PlayerJoinNotify ¶
type PlayerJoinNotify struct { Playerid *uint32 `protobuf:"varint,1,req,name=Playerid" json:"Playerid,omitempty"` Type *Playertype `protobuf:"varint,2,req,name=Type,enum=msg.Playertype" json:"Type,omitempty"` Nickname *string `protobuf:"bytes,3,req,name=Nickname" json:"Nickname,omitempty"` AvatarUrl *string `protobuf:"bytes,4,req,name=AvatarUrl" json:"AvatarUrl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_PLAYERJOIN_NOTIFY
func (*PlayerJoinNotify) Descriptor ¶
func (*PlayerJoinNotify) Descriptor() ([]byte, []int)
func (*PlayerJoinNotify) GetAvatarUrl ¶
func (m *PlayerJoinNotify) GetAvatarUrl() string
func (*PlayerJoinNotify) GetNickname ¶
func (m *PlayerJoinNotify) GetNickname() string
func (*PlayerJoinNotify) GetPlayerid ¶
func (m *PlayerJoinNotify) GetPlayerid() uint32
func (*PlayerJoinNotify) GetType ¶
func (m *PlayerJoinNotify) GetType() Playertype
func (*PlayerJoinNotify) ProtoMessage ¶
func (*PlayerJoinNotify) ProtoMessage()
func (*PlayerJoinNotify) Reset ¶
func (m *PlayerJoinNotify) Reset()
func (*PlayerJoinNotify) String ¶
func (m *PlayerJoinNotify) String() string
func (*PlayerJoinNotify) XXX_DiscardUnknown ¶
func (m *PlayerJoinNotify) XXX_DiscardUnknown()
func (*PlayerJoinNotify) XXX_Marshal ¶
func (m *PlayerJoinNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlayerJoinNotify) XXX_Merge ¶
func (m *PlayerJoinNotify) XXX_Merge(src proto.Message)
func (*PlayerJoinNotify) XXX_Size ¶
func (m *PlayerJoinNotify) XXX_Size() int
func (*PlayerJoinNotify) XXX_Unmarshal ¶
func (m *PlayerJoinNotify) XXX_Unmarshal(b []byte) error
type PlayerLeaveNotify ¶
type PlayerLeaveNotify struct { Playerid *uint32 `protobuf:"varint,1,opt,name=Playerid" json:"Playerid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_PLAYERLEAVE_NOTIFY
func (*PlayerLeaveNotify) Descriptor ¶
func (*PlayerLeaveNotify) Descriptor() ([]byte, []int)
func (*PlayerLeaveNotify) GetPlayerid ¶
func (m *PlayerLeaveNotify) GetPlayerid() uint32
func (*PlayerLeaveNotify) ProtoMessage ¶
func (*PlayerLeaveNotify) ProtoMessage()
func (*PlayerLeaveNotify) Reset ¶
func (m *PlayerLeaveNotify) Reset()
func (*PlayerLeaveNotify) String ¶
func (m *PlayerLeaveNotify) String() string
func (*PlayerLeaveNotify) XXX_DiscardUnknown ¶
func (m *PlayerLeaveNotify) XXX_DiscardUnknown()
func (*PlayerLeaveNotify) XXX_Marshal ¶
func (m *PlayerLeaveNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlayerLeaveNotify) XXX_Merge ¶
func (m *PlayerLeaveNotify) XXX_Merge(src proto.Message)
func (*PlayerLeaveNotify) XXX_Size ¶
func (m *PlayerLeaveNotify) XXX_Size() int
func (*PlayerLeaveNotify) XXX_Unmarshal ¶
func (m *PlayerLeaveNotify) XXX_Unmarshal(b []byte) error
type Playertype ¶
type Playertype int32
const ( Playertype_MAN Playertype = 0 Playertype_FAKE Playertype = 1 )
func (Playertype) Enum ¶
func (x Playertype) Enum() *Playertype
func (Playertype) EnumDescriptor ¶
func (Playertype) EnumDescriptor() ([]byte, []int)
func (Playertype) String ¶
func (x Playertype) String() string
func (*Playertype) UnmarshalJSON ¶
func (x *Playertype) UnmarshalJSON(data []byte) error
type ReadyReq ¶
type ReadyReq struct { Roomid *uint32 `protobuf:"varint,1,req,name=Roomid" json:"Roomid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_READY_REQ
func (*ReadyReq) Descriptor ¶
func (*ReadyReq) ProtoMessage ¶
func (*ReadyReq) ProtoMessage()
func (*ReadyReq) XXX_DiscardUnknown ¶
func (m *ReadyReq) XXX_DiscardUnknown()
func (*ReadyReq) XXX_Marshal ¶
func (*ReadyReq) XXX_Unmarshal ¶
type ReadyRes ¶
type ReadyRes struct { Roomid *uint32 `protobuf:"varint,1,req,name=Roomid" json:"Roomid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_READY_RES
func (*ReadyRes) Descriptor ¶
func (*ReadyRes) ProtoMessage ¶
func (*ReadyRes) ProtoMessage()
func (*ReadyRes) XXX_DiscardUnknown ¶
func (m *ReadyRes) XXX_DiscardUnknown()
func (*ReadyRes) XXX_Marshal ¶
func (*ReadyRes) XXX_Unmarshal ¶
type StartGameNotify ¶
type StartGameNotify struct { Time *uint64 `protobuf:"varint,1,opt,name=Time" json:"Time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CMD_GAME_STARTGAME_NOTIFY
func (*StartGameNotify) Descriptor ¶
func (*StartGameNotify) Descriptor() ([]byte, []int)
func (*StartGameNotify) GetTime ¶
func (m *StartGameNotify) GetTime() uint64
func (*StartGameNotify) ProtoMessage ¶
func (*StartGameNotify) ProtoMessage()
func (*StartGameNotify) Reset ¶
func (m *StartGameNotify) Reset()
func (*StartGameNotify) String ¶
func (m *StartGameNotify) String() string
func (*StartGameNotify) XXX_DiscardUnknown ¶
func (m *StartGameNotify) XXX_DiscardUnknown()
func (*StartGameNotify) XXX_Marshal ¶
func (m *StartGameNotify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StartGameNotify) XXX_Merge ¶
func (m *StartGameNotify) XXX_Merge(src proto.Message)
func (*StartGameNotify) XXX_Size ¶
func (m *StartGameNotify) XXX_Size() int
func (*StartGameNotify) XXX_Unmarshal ¶
func (m *StartGameNotify) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.