Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
             */
        }