feat: 新增游戏协议入站结构体定义
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
100
logic/controller/inbound_map_room_nono.go
Normal file
100
logic/controller/inbound_map_room_nono.go
Normal file
@@ -0,0 +1,100 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"blazing/logic/service/common"
|
||||
"blazing/modules/player/model"
|
||||
)
|
||||
|
||||
type EnterMapInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2001" struc:"skip"`
|
||||
MapType uint32
|
||||
MapId uint32
|
||||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||||
}
|
||||
|
||||
type GetMapHotInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"1004" struc:"skip"`
|
||||
}
|
||||
|
||||
type LeaveMapInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2002" struc:"skip"`
|
||||
}
|
||||
|
||||
type ListMapPlayerInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2003" struc:"skip"`
|
||||
}
|
||||
|
||||
type AttackBossInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2412" struc:"skip"`
|
||||
}
|
||||
|
||||
type WalkInInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2101" struc:"skip"`
|
||||
Flag uint32
|
||||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||||
PathLen uint32 `struc:"sizeof=Path"`
|
||||
Path string
|
||||
}
|
||||
|
||||
type FitmentUseringInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"10006" struc:"skip"`
|
||||
TargetUserID uint32 `json:"targetUserId"`
|
||||
}
|
||||
|
||||
type PetRoomListInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2324" struc:"skip"`
|
||||
TargetUserID uint32 `json:"targetUserId"`
|
||||
}
|
||||
|
||||
type FitmentAllInboundEmpty struct {
|
||||
Head common.TomeeHeader `cmd:"10007" struc:"skip"`
|
||||
}
|
||||
|
||||
type SET_FITMENT struct {
|
||||
Head common.TomeeHeader `cmd:"10008" struc:"skip"`
|
||||
RoomID uint32 `json:"roomID"`
|
||||
FitmentsLen uint32 `json:"fitmentsLen" struc:"sizeof=Fitments"`
|
||||
Fitments []model.FitmentShowInfo `json:"usedList"`
|
||||
}
|
||||
|
||||
type C2S_PetShowList struct {
|
||||
CatchTime uint32 `json:"catchTime"`
|
||||
PetID uint32 `json:"petID"`
|
||||
}
|
||||
|
||||
type C2S_PET_ROOM_SHOW struct {
|
||||
Head common.TomeeHeader `cmd:"2323" struc:"skip"`
|
||||
PetShowInfoLen uint32 `json:"PetShowInfoLen" struc:"sizeof=PetShowList"`
|
||||
PetShowList []C2S_PetShowList `json:"PetShowList"`
|
||||
}
|
||||
|
||||
type C2S_RoomPetInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2325" struc:"skip"`
|
||||
UserID uint32 `json:"userID"`
|
||||
CatchTime uint32 `json:"catchTime"`
|
||||
}
|
||||
|
||||
type C2S_BUY_FITMENT struct {
|
||||
Head common.TomeeHeader `cmd:"10004" struc:"skip"`
|
||||
ID uint32 `json:"id"`
|
||||
Count uint32 `json:"count"`
|
||||
}
|
||||
|
||||
type NonoInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"9003" struc:"skip"`
|
||||
UserID uint32
|
||||
}
|
||||
|
||||
type NonoFollowOrHomeInInfo struct {
|
||||
Head common.TomeeHeader `cmd:"9019" struc:"skip"`
|
||||
Flag uint32 `fieldDescription:"1为跟随 0为收回 且如果为收回 那么后续结构不需要发送" uint:"true"`
|
||||
}
|
||||
|
||||
type SwitchFlyingInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2112" struc:"skip"`
|
||||
Type uint32 `description:"开关, 0为取消飞行模式, 大于0为开启飞行模式" codec:"auto" uint:"true"`
|
||||
}
|
||||
|
||||
type PetCureInboundInfo struct {
|
||||
Head common.TomeeHeader `cmd:"2306" struc:"skip"`
|
||||
}
|
||||
Reference in New Issue
Block a user