- 移除未使用的 SocketHandler_Tomee.go、ai.go、effect_1.go 文件 - 更新 player 包名引用,替换原 service 包 - 调整 TomeeHeader 和相关处理逻辑至 player 包 - 更新各控制器中的 Player 引用为 player 包中的类型 - 移除冗余的 GetPlayer 方法,使用新逻辑
23 lines
632 B
Go
23 lines
632 B
Go
package friend
|
|
|
|
import "blazing/logic/service/player"
|
|
|
|
//基地查看好友列表
|
|
type SeeOnlineInboundInfo struct {
|
|
Head player.TomeeHeader `cmd:"2157" struc:"[0]pad"`
|
|
|
|
UserIdsLen uint32 `json:"userIdsLen" struc:"sizeof=UserIds"`
|
|
UserIds []uint32 `json:"userIds" `
|
|
}
|
|
|
|
type OnlineInfo struct {
|
|
UserId uint32 `json:"userId" `
|
|
ServerId uint32 `json:"serverId" `
|
|
MapType uint32 `json:"mapType" `
|
|
MapId uint32 `json:"mapId" `
|
|
}
|
|
type SeeOnlineOutboundInfo struct {
|
|
FriendsLen uint32 `json:"friendsLen" struc:"sizeof=Friends"`
|
|
Friends []OnlineInfo `json:"friends" fieldDescription:"好友在线列表" `
|
|
}
|