- 更新 Player 结构体,添加 Nick 字段 - 修改 ErrorCode 类型从 uint32 改为 int32 - 优化 SocketHandler 处理逻辑 - 重构 Controller 中的 Login 和地图相关方法 - 更新地图服务中的 MapIn 和 MapOut 方法 - 调整空间服务中的 Hot 和 Walk 方法
21 lines
354 B
Go
21 lines
354 B
Go
package controller
|
|
|
|
import (
|
|
"blazing/common/data/entity"
|
|
"blazing/common/socket/errorcode"
|
|
"blazing/logic/service/maphot"
|
|
"blazing/logic/service/space"
|
|
)
|
|
|
|
func (h Controller) MapHot(data *maphot.InInfo, c *entity.Player) (result *maphot.OutInfo, err errorcode.ErrorCode) {
|
|
|
|
result = &maphot.OutInfo{
|
|
|
|
HotInfos: space.GetMapHot(),
|
|
}
|
|
|
|
|
|
|
|
return
|
|
}
|