public void RefillInventory()
 {
     Debug.Assert(Inventory.TemplateType != null);
     if (!MyGuiScreenInventoryManagerForGame.IsOtherSideInventory(Inventory))
     {
         Inventory.ClearInventoryItems(true);
         MyInventoryTemplates.RefillInventory(Inventory);
         m_lastRefillTime = MyMinerGame.TotalGamePlayTimeInMilliseconds;
     }
 }
Beispiel #2
0
 public static bool MustBePlayerShipInventorySynchronized(MyInventory inventory)
 {
     return(MySession.PlayerShip != null &&
            MySession.PlayerShip.Inventory == inventory &&
            MyGuiScreenInventoryManagerForGame.IsInventoryOpen());
 }