Пример #1
0
 void initShipDim()
 {
     if (Me.CubeGrid.GridSizeEnum.ToString().ToLower().Contains("small"))
     {
         shipDim = new ShipDimensions(new BoundingBox(Me.CubeGrid.Min, Me.CubeGrid.Max), SMALL_BLOCK_LENGTH);
     }
     else
     {
         shipDim = new ShipDimensions(new BoundingBox(Me.CubeGrid.Min, Me.CubeGrid.Max), LARGE_BLOCK_LENGTH);
     }
 }
Пример #2
0
        void initShipDim(IMyTerminalBlock orientationBlock)
        {
            if (orientationBlock == null)
            {
                orientationBlock = (IMyTerminalBlock)Me;
            }
            shipDim = new ShipDimensions(this, orientationBlock);

            /*
             * if (Me.CubeGrid.GridSizeEnum.ToString().ToLower().Contains("small"))
             *  shipDim = new ShipDimensions(new BoundingBox(Me.CubeGrid.Min, Me.CubeGrid.Max), SMALL_BLOCK_LENGTH);
             * else
             *  shipDim = new ShipDimensions(new BoundingBox(Me.CubeGrid.Min, Me.CubeGrid.Max), LARGE_BLOCK_LENGTH);
             */
        }