Exemple #1
0
 public float _RawGetAttribute(GameAttributeF attribute, int? key)
 {
     return RawGetAttributeValue(attribute, key).ValueF;
 }
Exemple #2
0
 public float this[GameAttributeF attribute]
 {
     get { return GetAttributeValue(attribute, null).ValueF; }
     set { SetAttributeValue(attribute, null, new GameAttributeValue(value)); }
 }
Exemple #3
0
 public float this[GameAttributeF attribute, int? key]
 {
     get { return GetAttributeValue(attribute, key).ValueF; }
     set { SetAttributeValue(attribute, key, new GameAttributeValue(value)); }
 }
Exemple #4
0
 public float GetItemBonus(GameAttributeF attributeF, int attributeKey)
 {
     return this.Loaded ? this.GetEquippedItems().Sum(item => item.Attributes[attributeF, attributeKey]) : 0.0f;
 }