Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMatchSystem ¶
type IMessageHandle ¶
type IRoom ¶
type IRoom interface { Init() 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 IServer ¶
type IServer interface { Start() Stop() Serve() GetRoom(roomId uint32) IRoom AddRoom(roomId uint32, room IRoom) RemoveRoom(roomId uint32) GetSession(sid uint32) ISession AddSession(conn *kcp.UDPSession) RemoveSession(sid uint32) HandleMessage(request IRequest) SendMessageToClient(sid uint32, data []byte) GetMatchSystem() IMatchSystem GetAllPlayer() map[uint32]ISession }
type ISingletonItem ¶
type ISingletonItem interface {
Init()
}
type IWorkerPool ¶
type IWorkerPool interface { Init() DoMessageHandler(request IRequest) //处理该信息 StartWorkerPool() //启动工作池 AddToTaskQueue(request IRequest) //将消息添加到 某个工作池队列 }
判断此时玩家在对局里还是在大厅里
Click to show internal directories.
Click to hide internal directories.