增加公式化属性因子

属性公式
服务端
Only PC

增加可计算属性计算因子,可计算属性将会通过因子组成的公式运算出最终结果

声明

func AddFormulaPropertyFactor(target entity<Formulable>, propertyID Property, factorType PropertyFormulaFactorType, value float)
go

参数

输入

名称 类型 描述
目标 FormulableEntity 目标实体
属性 Property 可计算属性类型
属性因子类型 FormulaFactorType 计算因子类型
Float 计算因子值