2025-08-20 22:34:45 +08:00
|
|
|
|
package room
|
|
|
|
|
|
|
2025-12-13 22:51:39 +08:00
|
|
|
|
import (
|
|
|
|
|
|
"blazing/logic/service/common"
|
2025-12-13 23:25:04 +08:00
|
|
|
|
"blazing/logic/service/pet"
|
2026-01-19 18:51:56 +08:00
|
|
|
|
"blazing/modules/player/model"
|
2025-12-13 22:51:39 +08:00
|
|
|
|
)
|
2025-08-20 22:34:45 +08:00
|
|
|
|
|
2025-08-26 23:22:10 +00:00
|
|
|
|
// FitmentUseringInboundInfo FitmentUseringInboundInfo类,实现InboundMessage接口
|
2025-08-20 22:34:45 +08:00
|
|
|
|
type FitmentUseringInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"10006" struc:"skip"` //玩家登录
|
2025-08-20 22:34:45 +08:00
|
|
|
|
// 需要获取基地信息的目标玩家账号ID
|
|
|
|
|
|
TargetUserID uint32 `json:"targetUserId"`
|
|
|
|
|
|
}
|
2025-12-13 22:51:39 +08:00
|
|
|
|
type SET_FITMENT struct {
|
2025-12-13 23:25:04 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"10008" struc:"skip"` //玩家登录
|
2025-12-13 22:51:39 +08:00
|
|
|
|
// RoomID 房间ID
|
|
|
|
|
|
// 特殊规则:怀旧服官服固定为1,新服与用户ID(userid)相同
|
|
|
|
|
|
RoomID uint32 `json:"roomID"`
|
|
|
|
|
|
|
|
|
|
|
|
FitmentsLen uint32 `json:"fitmentsLen" struc:"sizeof=Fitments"`
|
|
|
|
|
|
// UsedList 已摆放家具列表
|
|
|
|
|
|
// 包含家具ID、坐标,且内嵌房间小屋ID;其中小屋的坐标(PosX/PosY)固定为0
|
|
|
|
|
|
Fitments []model.FitmentShowInfo `json:"usedList"`
|
|
|
|
|
|
}
|
2025-08-20 22:34:45 +08:00
|
|
|
|
|
2025-08-26 23:22:10 +00:00
|
|
|
|
// FitmentUseringOutboundInfo FitmentUseringOutboundInfo,实现OutboundMessage接口
|
2025-08-20 22:34:45 +08:00
|
|
|
|
type FitmentUseringOutboundInfo struct {
|
|
|
|
|
|
// 玩家账号ID
|
|
|
|
|
|
UserId uint32 ` json:"userId"`
|
|
|
|
|
|
// 进入基地所有者的userid
|
|
|
|
|
|
RoomId uint32 `codec:"auto" json:"roomId"`
|
|
|
|
|
|
FitmentsLen uint32 `json:"fitmentsLen" struc:"sizeof=Fitments"`
|
|
|
|
|
|
// 基地摆放物品的数组, 就算没有摆放物品, 也必带一个小屋的参数
|
2025-12-13 22:51:39 +08:00
|
|
|
|
Fitments []model.FitmentShowInfo `codec:"auto" json:"fitments"`
|
2025-08-20 22:34:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// PetShowInfo 宠物展示信息
|
2025-12-13 23:25:04 +08:00
|
|
|
|
|
2025-08-20 22:34:45 +08:00
|
|
|
|
type PetRoomListOutboundInfo struct {
|
2025-12-13 23:25:04 +08:00
|
|
|
|
PetsLen uint32 `json:"petsLen" struc:"sizeof=Pets"`
|
|
|
|
|
|
Pets []pet.PetShortInfo `json:"pets"`
|
2025-08-20 22:34:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type PetRoomListInboundInfo struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"2324" struc:"skip"` //玩家登录
|
2025-08-20 22:34:45 +08:00
|
|
|
|
// 需要获取基地信息的目标玩家账号ID
|
|
|
|
|
|
TargetUserID uint32 `json:"targetUserId"`
|
|
|
|
|
|
}
|
|
|
|
|
|
type FitmentAllInboundEmpty struct {
|
2025-11-24 11:56:20 +08:00
|
|
|
|
Head common.TomeeHeader `cmd:"10007" struc:"skip"`
|
2025-08-20 22:34:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
type FitmentAllOutboundInfo struct {
|
|
|
|
|
|
FitmentsLen uint32 `json:"fitmentsLen" struc:"sizeof=Fitments"`
|
|
|
|
|
|
// 基地摆放物品的数组, 就算没有摆放物品, 也必带一个小屋的参数
|
2025-09-02 00:45:29 +08:00
|
|
|
|
Fitments []FitmentItemInfo `codec:"auto" json:"fitments"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// FitmentItemInfo
|
2025-09-02 00:45:29 +08:00
|
|
|
|
type FitmentItemInfo struct {
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// Id 家具id 或 默认房型id: 500001(
|
2025-09-02 00:45:29 +08:00
|
|
|
|
Id uint32 `json:"id"`
|
|
|
|
|
|
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// UsedCount 使用数量(默认房型id项目的使用数据固定为1)(
|
2025-09-02 00:45:29 +08:00
|
|
|
|
UsedCount uint32 `json:"usedCount"`
|
|
|
|
|
|
|
2025-09-21 08:07:17 +00:00
|
|
|
|
// AllCount 拥有数量(默认房型id项目的拥有数量固定为1)(
|
2025-09-02 00:45:29 +08:00
|
|
|
|
AllCount uint32 `json:"allCount"`
|
2025-08-20 22:34:45 +08:00
|
|
|
|
}
|
2025-12-13 22:51:39 +08:00
|
|
|
|
|
|
|
|
|
|
type NullInfo struct {
|
|
|
|
|
|
}
|