28 lines
766 B
Go
28 lines
766 B
Go
package maps
|
|
|
|
import "blazing/common/socket/handler"
|
|
|
|
// MapHotInfo 表示地图热度信息
|
|
type MapHotInfo struct {
|
|
MapID uint64 `json:"mapId"` // 地图ID
|
|
Count uint64 `json:"count"` // 地图里的人数
|
|
}
|
|
type MapHotInboundInfo struct {
|
|
Head handler.TomeeHeader `cmd:"1004" struc:"[0]pad"` //玩家登录
|
|
}
|
|
|
|
func (m *MapHotInboundInfo) Def()[]byte {
|
|
|
|
|
|
return m.Head.Pack(MapHotOutboundInfo{
|
|
|
|
HotInfos: make([]MapHotInfo, 0),
|
|
}) //返回传参
|
|
}
|
|
|
|
// MapHotOutboundInfo 表示地图热度的出站消息
|
|
type MapHotOutboundInfo struct {
|
|
HotInfosLen uint32 `json:"hotInfosLen" struc:"sizeof=HotInfos"` // 热度信息列表长度
|
|
HotInfos []MapHotInfo `json:"hotInfos"` // 热度信息列表
|
|
}
|