Ejemplo n.º 1
0
 /// <summary>
 /// Inventory move in which the object in the slot is dropped into the world at the location of its root storage
 /// </summary>
 /// <param name="fromSlot"></param>
 /// <param name="worldTargetVector">world space vector pointing from origin to targeted position to throw, leave null
 /// to drop at holder's position</param>
 /// <returns>true if successful</returns>
 public static bool ServerDrop(ItemSlot fromSlot, Vector2?worldTargetVector = null)
 {
     return(ServerPerform(InventoryMove.Drop(fromSlot, worldTargetVector)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Inventory move in which the object in the slot is dropped into the world at the location of its root storage
 /// </summary>
 /// <param name="fromSlot"></param>
 /// <param name="targetWorldPosition">world position to drop at, leave null to drop at holder's position</param>
 /// <returns>true if successful</returns>
 public static bool ServerDrop(ItemSlot fromSlot, Vector2?targetWorldPosition = null)
 {
     return(ServerPerform(InventoryMove.Drop(fromSlot, targetWorldPosition)));
 }