Exemplo n.º 1
0
 private void ReleaseConstructionStockpile()
 {
     if (m_stockpile != null)
     {
         Debug.Assert(m_stockpile.IsEmpty(), "Construction stockpile was not empty during removal from MySlimBlock");
         m_stockpile = null;
     }
 }
Exemplo n.º 2
0
 private void EnsureConstructionStockpileExists()
 {
     if (m_stockpile == null)
         m_stockpile = new MyConstructionStockpile();
 }
Exemplo n.º 3
0
 private void ReleaseConstructionStockpile()
 {
     if (m_stockpile != null)
     {
         if (!MyFakes.ENABLE_GENERATED_BLOCKS || !BlockDefinition.IsGeneratedBlock)
             Debug.Assert(m_stockpile.IsEmpty(), "Construction stockpile was not empty during removal from MySlimBlock");
         m_stockpile = null;
     }
 }