Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetPool ¶
func SetPoolGetter ¶
func SetPoolGetter(pg PoolGetter)
Types ¶
type Battle ¶
type Battle struct { Close context.CancelFunc //NOTE: // contains filtered or unexported fields }
Battle 战役,包含一组战斗
type Fight ¶
type Fight struct { *list.Element Close context.CancelFunc //NOTE: // contains filtered or unexported fields }
Fight 战斗
type Handler ¶
type Handler struct { k8s.IgnoreGet //NOTE: 忽略Get 方法处理 k8s.IgnorePost //NOTE: 忽略Post 方法处理 Close context.CancelFunc //NOTE: // contains filtered or unexported fields }
Handler 处理k8s 请求
type IDecode ¶
type IDecode uint64
IDecode 操作单位id 解码
func EncodeFightID ¶
EncodeFightID 设置 fightID 并返回新的id
func EncodeRoleID ¶
EncodeRoleID 设置 roleID 并返回新的id
func EncodeTeamID ¶
EncodeTeamID 设置 teadID 并返回新的id
func EncodeWarType ¶
EncodeWarType 设置 War_Type,返回新的id
type PoolGetter ¶
func (PoolGetter) Get ¶
func (pg PoolGetter) Get() *pool.Pool
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
Team 队伍
func (*Team) PostMatched ¶
PostMatched 发送匹配完成消息,因为匹配消息需要对不同玩家发送一个唯一的id,所以需要单独处理,无法直接使用通用的post方法
type WSHandler ¶
type WSHandler struct {
// contains filtered or unexported fields
}
WSHandler 处理k8s 请求
type War ¶
type War struct { Close context.CancelFunc //NOTE: 关闭此War中所有 // contains filtered or unexported fields }
War 战争,根据War_Type 保存各种Battle
Click to show internal directories.
Click to hide internal directories.