Documentation ¶
Index ¶
- Constants
- Variables
- type CustomStruct
- type User
- func (e *User) EnterZoneReq(zonename string) error
- func (e *User) EnterZoneReqProcesser(bs *msg.RecvStream) error
- func (e *User) GetZoneListReq() error
- func (e *User) GetZoneListReqProcesser(bs *msg.RecvStream) error
- func (e *User) HelloReq(uid uint64, token string, testmap map[int32]string, testarray []uint16, ...) error
- func (e *User) HelloReqProcesser(bs *msg.RecvStream) error
- func (e *User) HelloResp(uid uint64, token string, testmap map[int32]string, testarray []uint16, ...) error
- func (e *User) LoadData() error
- func (e *User) LoginFailed(errcode uint16) error
- func (e *User) LoginReq(uid uint64, token string) error
- func (e *User) LoginReqProcesser(bs *msg.RecvStream) error
- func (e *User) LoginSuccess() error
- func (e *User) Logout() error
- func (e *User) LogoutProcesser(bs *msg.RecvStream) error
- func (e *User) Marshal(bs *msg.SendStream) error
- func (e *User) OnEnterZoneFailed(errcode uint16) error
- func (e *User) OnEnterZoneSuccess() error
- func (e *User) OnGetZoneListFailed(errcode uint16) error
- func (e *User) OnInit() error
- func (e *User) OnRelogin() error
- func (e *User) OnZoneList(zonelist []string) error
- func (e *User) TestStReq(starr []*CustomStruct, stmap map[int32]*CustomStruct, ...) error
- func (e *User) TestStReqProcesser(bs *msg.RecvStream) error
- func (e *User) TestStResp(starr []*CustomStruct, stmap map[int32]*CustomStruct, ...) 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 CustomStruct ¶
func (*CustomStruct) Marshal ¶
func (st *CustomStruct) Marshal(bs *msg.SendStream) error
func (*CustomStruct) Unmarshal ¶
func (st *CustomStruct) Unmarshal(bs *msg.RecvStream) error
type User ¶
sample
func (*User) EnterZoneReq ¶
func (*User) EnterZoneReqProcesser ¶
func (e *User) EnterZoneReqProcesser(bs *msg.RecvStream) error
func (*User) GetZoneListReq ¶
func (*User) GetZoneListReqProcesser ¶
func (e *User) GetZoneListReqProcesser(bs *msg.RecvStream) error
func (*User) HelloReqProcesser ¶
func (e *User) HelloReqProcesser(bs *msg.RecvStream) error
func (*User) LoginFailed ¶
func (*User) LoginReqProcesser ¶
func (e *User) LoginReqProcesser(bs *msg.RecvStream) error
func (*User) LoginSuccess ¶
func (*User) LogoutProcesser ¶
func (e *User) LogoutProcesser(bs *msg.RecvStream) error
func (*User) OnEnterZoneFailed ¶
func (*User) OnEnterZoneSuccess ¶
func (*User) OnGetZoneListFailed ¶
func (*User) OnZoneList ¶
func (*User) TestStReq ¶
func (e *User) TestStReq(starr []*CustomStruct, stmap map[int32]*CustomStruct, stmaparr map[int32][]*CustomStruct) error
func (*User) TestStReqProcesser ¶
func (e *User) TestStReqProcesser(bs *msg.RecvStream) error
func (*User) TestStResp ¶
func (e *User) TestStResp(starr []*CustomStruct, stmap map[int32]*CustomStruct, stmaparr map[int32][]*CustomStruct) error
Click to show internal directories.
Click to hide internal directories.