Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IConnection ¶
type IMatchSystem ¶
type IMessageHandle ¶
type IRequest ¶
type IRequest interface {
GetMessage() []byte
GetSid() uint32
GetSession() ISession
GetRoom() IRoom
}
判断此时玩家在对局里还是在大厅里
type IRoom ¶
type IRoom interface {
Start()
Delete()
Broadcast(data []byte)
ChangeRoomState(newState int)
ChangePlayersRoomId()
// GetState() IRoomState
GetCurrentState() IRoomState
GetPlayerIndex(session ISession) int
SetSelectData(selectArr []int)
GetSelectData() []int
GetRoomPlayerCount() int
GetRoomId() uint32
}
type IRoomState ¶
type ISingletonItem ¶
type ISingletonItem interface {
Init()
}
type IWorkerPool ¶
type IWorkerPool interface {
DoMessageHandler(request IRequest) //处理该信息
Start() //启动工作池
AddToTaskQueue(request IRequest) //将消息添加到 某个工作池队列
}
判断此时玩家在对局里还是在大厅里
Click to show internal directories.
Click to hide internal directories.