ecs/servers/game/data_old/copy_arena_robot.go
2025-06-04 18:17:39 +08:00

35 lines
1.5 KiB
Go

package data
type CopyArenaRobot struct {
Id int `json:"id"` //机器人id
Name int `json:"name"` //机器人名字
Avatar int `json:"avatar"` //头像
Score int `json:"score"` //积分
RigHead int `json:"rig_head"` //钻头组件
RigHeadStar int `json:"rig_head_star"` //钻头组件星级
RigBody int `json:"rig_body"` //机身组件
RigBodyStar int `json:"rig_body_star"` //机身组件星级
RigTail int `json:"rig_tail"` //推进器组件
RigTailStar int `json:"rig_tail_star"` //推进器组件星级
RigEquips []int `json:"rig_equips"` //装备(AI辅助,最多6个)
RigPendants []int `json:"rig_pendants"` //挂件(浮游炮,最多4个)
AttrValue0 int `json:"attr_value0"` //移动速度
AttrValue1 float64 `json:"attr_value1"` //能量值(血量)
AttrValue2 int `json:"attr_value2"` //能量值回恢速度
AttrValue3 int `json:"attr_value3"` //加速能量
AttrValue4 int `json:"attr_value4"` //破坏力
AttrValue5 int `json:"attr_value5"` //对硬物破坏力
AttrValue6 int `json:"attr_value6"` //对怪物破坏力
AttrValue7 int `json:"attr_value7"` //暴击率
AttrValue8 int `json:"attr_value8"` //暴击伤害加成
AttrValue9 int `json:"attr_value9"` //攻击速度
}
func (data *CopyArenaRobot) id() int {
return data.Id
}
type CopyArenaRobotTable struct {
table[int, *CopyArenaRobot]
}