示例#1
0
 public void RemoveFromInventory(Weapon removeWeapon, ItemToFrom existingTo = ItemToFrom.Nowhere)
 {
     MapObjectTransfer.RemoveFromInventory(_transferArgs, removeWeapon, existingTo);
 }
示例#2
0
 /// <summary>
 /// This attaches the weapon passed in, and returns the previous weapon.  Also optionally manages the weapon's states within
 /// the map or inventory
 /// </summary>
 /// <param name="newFrom">If from map or inventory, this will remove it from those places</param>
 /// <param name="existingTo">If told to, will add the existing back into inventory or map</param>
 public void AttachWeapon(Weapon newWeapon, ItemToFrom newFrom = ItemToFrom.Nowhere, ItemToFrom existingTo = ItemToFrom.Nowhere)
 {
     MapObjectTransfer.AttachWeapon(_transferArgs, ref _weaponAttachJoint, ref _weapon, newWeapon, newFrom, existingTo);
 }
示例#3
0
 public bool AddToInventory(Weapon newWeapon, ItemToFrom newFrom = ItemToFrom.Nowhere)
 {
     return(MapObjectTransfer.AddToInventory(_transferArgs, newWeapon, newFrom));
 }