Exemplo n.º 1
0
 public ItemProperties(byte width, byte height, float weight, Texture2D texture, byte maxStack, string infoText, Action <Player> onConsume, WeaponPart weaponPart, Weapon.AmmoType?ammoType, MeleeWeaponProperties meleeWeaponProperties)
 {
     this.Width                 = width;
     this.Height                = height;
     this.Weight                = weight;
     this.onConsume             = onConsume;
     this.WeaponPart            = weaponPart;
     this.MaxStack              = maxStack;
     this.Texture               = texture;
     this.InfoText              = infoText;
     this.MeleeWeaponProperties = meleeWeaponProperties;
     if (ammoType != null)
     {
         isAmmo   = true;
         AmmoType = (Weapon.AmmoType)ammoType;
     }
     else
     {
         isAmmo = false;
     }
 }
Exemplo n.º 2
0
 public ItemProperties(byte width, byte height, float weight, Texture2D texture, byte maxStack, string infoText, MeleeWeaponProperties meleeWeaponProperties) : this(width, height, weight, texture, maxStack, infoText, null, null, null, meleeWeaponProperties)
 {
 }