entity

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

type CustomStruct struct {
	Uid  uint64
	Desc string
	Data []byte
}

func (*CustomStruct) Marshal

func (st *CustomStruct) Marshal(bs *msg.SendStream) error

func (*CustomStruct) Unmarshal

func (st *CustomStruct) Unmarshal(bs *msg.RecvStream) error

type User

type User struct {
	*entity.Entity
}

sample

func (*User) EnterZoneReq

func (e *User) EnterZoneReq(zonename string) error

func (*User) EnterZoneReqProcesser

func (e *User) EnterZoneReqProcesser(bs *msg.RecvStream) error

func (*User) GetZoneListReq

func (e *User) GetZoneListReq() error

func (*User) GetZoneListReqProcesser

func (e *User) GetZoneListReqProcesser(bs *msg.RecvStream) error

func (*User) HelloReq

func (e *User) HelloReq(uid uint64, token string, testmap map[int32]string, testarray []uint16, teststruct *CustomStruct) error

func (*User) HelloReqProcesser

func (e *User) HelloReqProcesser(bs *msg.RecvStream) error

func (*User) HelloResp

func (e *User) HelloResp(uid uint64, token string, testmap map[int32]string, testarray []uint16, teststruct *CustomStruct) error

func (*User) LoadData

func (e *User) LoadData() error

func (*User) LoginFailed

func (e *User) LoginFailed(errcode uint16) error

func (*User) LoginReq

func (e *User) LoginReq(uid uint64, token string) error

func (*User) LoginReqProcesser

func (e *User) LoginReqProcesser(bs *msg.RecvStream) error

func (*User) LoginSuccess

func (e *User) LoginSuccess() error

func (*User) Logout

func (e *User) Logout() error

func (*User) LogoutProcesser

func (e *User) LogoutProcesser(bs *msg.RecvStream) error

func (*User) Marshal

func (e *User) Marshal(bs *msg.SendStream) error

序列号可见数据

func (*User) OnEnterZoneFailed

func (e *User) OnEnterZoneFailed(errcode uint16) error

func (*User) OnEnterZoneSuccess

func (e *User) OnEnterZoneSuccess() error

func (*User) OnGetZoneListFailed

func (e *User) OnGetZoneListFailed(errcode uint16) error

func (*User) OnInit

func (e *User) OnInit() error

func (*User) OnRelogin

func (e *User) OnRelogin() error

func (*User) OnZoneList

func (e *User) OnZoneList(zonelist []string) error

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

func (*User) Unmarshal

func (e *User) Unmarshal(bs *msg.RecvStream) error

反序列化数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL