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

18 lines
495 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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]
}