private void ReleaseConstructionStockpile() { if (m_stockpile != null) { Debug.Assert(m_stockpile.IsEmpty(), "Construction stockpile was not empty during removal from MySlimBlock"); m_stockpile = null; } }
private void EnsureConstructionStockpileExists() { if (m_stockpile == null) m_stockpile = new MyConstructionStockpile(); }
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; } }