Esempio n. 1
0
 /// <summary>
 /// Get the value of the current property of this model
 /// </summary>
 public int GetProperty(WeaponSkill skill, WeaponProperty property)
 {
     return(MtaShared.GetWeaponProperty(ID, skill.ToString().ToLower(), property.ToString().ToLower()));
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the value of a property of this mode
 /// </summary>
 /// <param name="skill"></param>
 /// <param name="property"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool SetProperty(WeaponSkill skill, WeaponProperty property, int value)
 {
     return(MtaShared.SetWeaponProperty(ID, skill.ToString().ToLower(), property.ToString().ToLower(), value));
 }