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: 4 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 User

type User struct {
	*entity.Entity
}

sample

func (*User) CreateRoom

func (e *User) CreateRoom(name string) error

func (*User) LoadData

func (e *User) LoadData() error

func (*User) Marshal

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

序列号可见数据

func (*User) OnCreateRoomFailed

func (e *User) OnCreateRoomFailed(name string, errcode uint16) error

func (*User) OnCreateRoomFailedProcesser

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

func (*User) OnCreateRoomSuccess

func (e *User) OnCreateRoomSuccess(name string) error

func (*User) OnCreateRoomSuccessProcesser

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

func (*User) OnInit

func (e *User) OnInit() 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