ecs/servers/game/data_old/attribute_config.go

18 lines
495 B
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package data
type AttributeConfig struct {
Id int `json:"id"` //索引ID
AttrKey string `json:"attrKey"` //属性
Combat int `json:"combat"` //战斗力
DefVal float64 `json:"defVal"` //初始值(用于钻机)
AttrValueType int `json:"attr_value_type"` //属性值类型
}
func (data *AttributeConfig) id() int {
return data.Id
}
type AttributeConfigTable struct {
table[int, *AttributeConfig]
}