Documentation ¶
Index ¶
- Constants
- Variables
- type User
- func (e *User) CreateRoom(name string) error
- func (e *User) LoadData() error
- func (e *User) Marshal(bs *msg.SendStream) error
- func (e *User) OnCreateRoomFailed(name string, errcode uint16) error
- func (e *User) OnCreateRoomFailedProcesser(bs *msg.RecvStream) error
- func (e *User) OnCreateRoomSuccess(name string) error
- func (e *User) OnCreateRoomSuccessProcesser(bs *msg.RecvStream) error
- func (e *User) OnInit() error
- func (e *User) Unmarshal(bs *msg.RecvStream) error
Constants ¶
View Source
const CreateAvatarReqMethodId uint16 = 1000
entity .TitledEntityName method id start
View Source
const CreateRoomMethodId uint16 = 1020
View Source
const EnterGameReqMethodId uint16 = 1002
View Source
const EnterZoneReqMethodId uint16 = 1012
View Source
const GetAvatarListReqMethodId uint16 = 1001
View Source
const GetZoneListReqMethodId uint16 = 1011
View Source
const HelloLobbyReqMethodId uint16 = 1027
View Source
const HelloLobbyRespMethodId uint16 = 1028
View Source
const HelloReqMethodId uint16 = 1024
View Source
const HelloRespMethodId uint16 = 1026
View Source
const LoginFailedMethodId uint16 = 1014
View Source
const LoginReqMethodId uint16 = 1009
View Source
const LoginSuccessMethodId uint16 = 1013
View Source
const LogoutMethodId uint16 = 1010
View Source
const OnAvatarListMethodId uint16 = 1005
View Source
const OnCreateAvatarFailedMethodId uint16 = 1004
View Source
const OnCreateAvatarSuccessMethodId uint16 = 1003
View Source
const OnCreateRoomFailedMethodId uint16 = 1022
View Source
const OnCreateRoomSuccessMethodId uint16 = 1021
View Source
const OnEnterGameFailedMethodId uint16 = 1008
View Source
const OnEnterGameSuccessMethodId uint16 = 1007
View Source
const OnEnterZoneFailedMethodId uint16 = 1018
View Source
const OnEnterZoneSuccessMethodId uint16 = 1017
View Source
const OnGetAvatarListFailedMethodId uint16 = 1006
View Source
const OnGetZoneListFailedMethodId uint16 = 1019
View Source
const OnReloginMethodId uint16 = 1015
View Source
const OnZoneListMethodId uint16 = 1016
View Source
const TestStReqMethodId uint16 = 1023
View Source
const TestStRespMethodId uint16 = 1025
View Source
const UserTypeId uint16 = 1
Variables ¶
View Source
var Mgr *manager
Functions ¶
This section is empty.
Types ¶
type User ¶
sample
func (*User) CreateRoom ¶
func (*User) OnCreateRoomFailed ¶
func (*User) OnCreateRoomFailedProcesser ¶
func (e *User) OnCreateRoomFailedProcesser(bs *msg.RecvStream) error
func (*User) OnCreateRoomSuccess ¶
func (*User) OnCreateRoomSuccessProcesser ¶
func (e *User) OnCreateRoomSuccessProcesser(bs *msg.RecvStream) error
Click to show internal directories.
Click to hide internal directories.