- 删除了 controller 包中多个与地图相关的 Go 文件 - 移除了未使用的 MapIn、MapHot、MapOut 和 MapList 函数 - 在 space 包中添加了对玩家地图的特殊处理逻辑
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package controller
|
|
|
|
import (
|
|
"blazing/common/data/entity"
|
|
"blazing/common/socket/errorcode"
|
|
"blazing/logic/service/room"
|
|
)
|
|
|
|
// 获取基地物品
|
|
func (h Controller) OnFitmentUsering(data *room.FitmentUseringInboundInfo, c *entity.Player) (result *room.FitmentUseringOutboundInfo, err errorcode.ErrorCode) {
|
|
|
|
result = &room.FitmentUseringOutboundInfo{UserId: c.GetUserID(), RoomId: data.TargetUserID}
|
|
result.Fitments = make([]room.FitmentShowInfo, 0)
|
|
result.Fitments = append(result.Fitments, room.FitmentShowInfo{Id: 500001, Status: 1, X: 1, Y: 1, Dir: 1})
|
|
|
|
return
|
|
}
|
|
|
|
// 获取基地展示精灵
|
|
func (h Controller) OnGetRoomPetShowInfo(data *room.PetRoomListInboundInfo, c *entity.Player) (result *room.PetRoomListOutboundInfo, err errorcode.ErrorCode) {
|
|
result = &room.PetRoomListOutboundInfo{}
|
|
result.Pets = make([]room.PetShowInfo, 0)
|
|
return
|
|
}
|
|
|
|
// 获取自己房间的家具
|
|
func (h Controller) OnGetFitmentAll(data *room.FitmentAllInboundEmpty, c *entity.Player) (result *room.FitmentAllOutboundInfo, err errorcode.ErrorCode) {
|
|
result = &room.FitmentAllOutboundInfo{}
|
|
result.Fitments = make([]room.FitmentShowInfo, 0)
|
|
result.Fitments = append(result.Fitments, room.FitmentShowInfo{Id: 500001, Status: 1, X: 1, Y: 1, Dir: 1})
|
|
return
|
|
}
|