public void NewWeapon()
 {
     var weapon = new BackpackWeapon()
     {
         UniqueId = new Random().Next(int.MinValue, int.MaxValue),
         // TODO: check other item unique IDs to prevent rare collisions
         AssetLibrarySetId = 0,
     };
     var viewModel = new BackpackWeaponViewModel(weapon);
     this.Slots.Add(viewModel);
     this.SelectedSlot = viewModel;
 }
 public BackpackWeaponViewModel(BackpackWeapon weapon)
     : base(weapon)
 {
     this._Weapon = weapon;
 }
Example #3
0
 public BackpackWeapon(BackpackWeapon other)
     : base(other)
 {
     this.QuickSlot = other.QuickSlot;
     this.Mark      = other.Mark;
 }