```
feat(chat): 删除无用的包声明 移除了 chat.go 文件中多余的 package controller 声明,该文件目前不包含任何逻辑实现。 feat(user): 新增瞄准功能接口及数据结构 在用户控制器中增加了 Aimat 方法,用于处理玩家的瞄准操作,并广播给同地图其他玩家。 同时在 user 包中添加了与瞄准相关的入参和出参结构体定义,包括 ItemId、ShootType 和 Point 等字段。 ```
This commit is contained in:
@@ -118,3 +118,21 @@ type MoreUserInfoOutboundInfo struct {
|
||||
// 对应 Java 注解: @FieldDescription("当前称号ID") @UInt
|
||||
CurrentTitleID uint32 `codec:"true"`
|
||||
}
|
||||
|
||||
// AimatInboundInfo 对应Java的AimatInboundInfo类
|
||||
type AimatInboundInfo struct {
|
||||
Head player.TomeeHeader `cmd:"2104" struc:"[0]pad"`
|
||||
ItemId uint32 `description:"物品id 射击激光 物品id为0" codec:"auto" uint:"true"`
|
||||
ShootType uint32 `description:"射击类型 未知 给0" codec:"auto" uint:"true"`
|
||||
Point model.Pos `description:"射击的坐标 x y" codec:"auto"` // 默认值对应@Builder.Default
|
||||
}
|
||||
|
||||
// AimatOutboundInfo 对应Java的AimatOutboundInfo类
|
||||
type AimatOutboundInfo struct {
|
||||
UserId uint32 `description:"射出子弹的人 米米号" codec:"auto" uint:"true"`
|
||||
ItemId uint32 `description:"物品id 射击激光 物品id为0" codec:"auto" uint:"true"`
|
||||
ShootType uint32 `description:"射击类型 未知 给0" codec:"auto" uint:"true"`
|
||||
Point model.Pos `description:"射击的坐标 x y" codec:"auto"` // 对应@Builder.Default默认值
|
||||
}
|
||||
|
||||
// M
|
||||
|
||||
Reference in New Issue
Block a user