コード例 #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;
     }
 }
コード例 #2
0
 private void EnsureConstructionStockpileExists()
 {
     if (m_stockpile == null)
         m_stockpile = new MyConstructionStockpile();
 }
コード例 #3
0
ファイル: MySlimBlock.cs プロジェクト: 2asoft/SpaceEngineers
 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;
     }
 }