增加公式化屬性因子

屬性公式
伺服器端
限PC端

增加可計算屬性計算因子,可計算屬性將會透過因子組成的公式運算出最終結果

聲明

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

參數

輸入

名稱 類型 描述
目標 FormulableEntity 目標實體
屬性 Property 可計算屬性類型
屬性因子類型 FormulaFactorType 計算因子類型
Float 計算因子值