聲明
func AddFormulaPropertyFactor(target entity<Formulable>, propertyID Property, factorType PropertyFormulaFactorType, value float)
go
參數
輸入
| 名稱 | 類型 | 描述 |
|---|---|---|
| 目標 | FormulableEntity | 目標實體 |
| 屬性 | Property | 可計算屬性類型 |
| 屬性因子類型 | FormulaFactorType | 計算因子類型 |
| 值 | Float | 計算因子值 |
增加可計算屬性計算因子,可計算屬性將會透過因子組成的公式運算出最終結果
func AddFormulaPropertyFactor(target entity<Formulable>, propertyID Property, factorType PropertyFormulaFactorType, value float)
go
| 名稱 | 類型 | 描述 |
|---|---|---|
| 目標 | FormulableEntity | 目標實體 |
| 屬性 | Property | 可計算屬性類型 |
| 屬性因子類型 | FormulaFactorType | 計算因子類型 |
| 值 | Float | 計算因子值 |