ecs/servers/game/data_old/rig_character.go

27 lines
1.1 KiB
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package data
type RigCharacter struct {
Id int `json:"id"` //索引
ItemId int `json:"item_Id"` //物品ID
LockTpye int `json:"lock_tpye"` //解锁条件
TaskId int `json:"task_id"` //解锁任务ID
LockId int `json:"lock_id"` //解锁关卡
SortBy int `json:"sort_by"` //排序(小到大)
Level int `json:"level"` //等级
NextId int `json:"next_id"` //下一级人物ID
CostItemId []int `json:"cost_item_id"` //升级消耗道具ID
CostItemNum []int `json:"cost_item_num"` //升级消耗道具数量
CarryAttrType1 int `json:"carry_attr_type1"` //携带属性类型1
CarryAttrValue1 int `json:"carry_attr_value1"` //携带加成固定值1
AttrType1 int `json:"attr_type1"` //属性类型1
AttrValue1 int `json:"attr_value1"` //加成固定值1
}
func (data *RigCharacter) id() int {
return data.Id
}
type RigCharacterTable struct {
table[int, *RigCharacter]
}