Ejemplo n.º 1
0
    static public CRecipe LargeBlockArmorRoundCorner(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_CubeBlock/LargeBlockArmorRoundCorner");

        recipe.addItem(FComponentItem.SteelPlate(13 * amount));
        return(recipe);
    }
Ejemplo n.º 2
0
        public override MissionResult Run(object ip)
        {
            CRecipe       rec     = (CRecipe)ip;
            MissionResult statues = MissionResult.NORMAL;

            statues = this.selfCheck();
            if (statues != MissionResult.NORMAL)
            {
                return(statues);
            }

            statues = this.loadRecipe();
            if (statues != MissionResult.NORMAL)
            {
                return(statues);
            }

            statues = this.checkRGVstatus();
            if (statues != MissionResult.NORMAL)
            {
                return(statues);
            }

            statues = this.RunRecipe(rec);
            return(statues);
        }
Ejemplo n.º 3
0
    static public CRecipe SmallLight(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_InteriorLight/SmallLight");

        recipe.addItem(FComponentItem.Construction(2 * amount));
        return(recipe);
    }
Ejemplo n.º 4
0
    static public CRecipe ArmorCenter(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_CubeBlock/ArmorCenter");

        recipe.addItem(FComponentItem.SteelPlate(140 * amount));
        return(recipe);
    }
Ejemplo n.º 5
0
    static public CRecipe Window3x3Flat(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_CubeBlock/Window3x3Flat");

        recipe.addItem(FComponentItem.BulletproofGlass(196 * amount));
        recipe.addItem(FComponentItem.Girder(40 * amount));
        return(recipe);
    }
Ejemplo n.º 6
0
    static public CRecipe Wheel5x5(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_Wheel/Wheel5x5");

        recipe.addItem(FComponentItem.LargeTube(8 * amount));
        recipe.addItem(FComponentItem.Construction(30 * amount));
        recipe.addItem(FComponentItem.SteelPlate(16 * amount));
        return(recipe);
    }
Ejemplo n.º 7
0
    static public CRecipe ConveyorTube(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_ConveyorConnector/ConveyorTube");

        recipe.addItem(FComponentItem.Motor(6 * amount));
        recipe.addItem(FComponentItem.SmallTube(12 * amount));
        recipe.addItem(FComponentItem.Construction(20 * amount));
        recipe.addItem(FComponentItem.InteriorPlate(14 * amount));
        return(recipe);
    }
Ejemplo n.º 8
0
    static public CRecipe LargeBlockConveyor(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_Conveyor/LargeBlockConveyor");

        recipe.addItem(FComponentItem.Motor(6 * amount));
        recipe.addItem(FComponentItem.SmallTube(20 * amount));
        recipe.addItem(FComponentItem.Construction(30 * amount));
        recipe.addItem(FComponentItem.InteriorPlate(20 * amount));
        return(recipe);
    }
Ejemplo n.º 9
0
    static public CRecipe LargeBlockBatteryBlock(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_BatteryBlock/LargeBlockBatteryBlock");

        recipe.addItem(FComponentItem.Computer(25 * amount));
        recipe.addItem(FComponentItem.PowerCell(80 * amount));
        recipe.addItem(FComponentItem.Construction(30 * amount));
        recipe.addItem(FComponentItem.SteelPlate(80 * amount));
        return(recipe);
    }
Ejemplo n.º 10
0
    static public CRecipe LargePistonBase(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_ExtendedPistonBase/LargePistonBase");

        recipe.addItem(FComponentItem.Computer(2 * amount));
        recipe.addItem(FComponentItem.Motor(4 * amount));
        recipe.addItem(FComponentItem.LargeTube((8 + 4) * amount));    // + top
        recipe.addItem(FComponentItem.Construction(10 * amount));
        recipe.addItem(FComponentItem.SteelPlate((10 + 15) * amount)); // + top
        return(recipe);
    }
Ejemplo n.º 11
0
    static public CRecipe Connector(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_ShipConnector/Connector");

        recipe.addItem(FComponentItem.Computer(20 * amount));
        recipe.addItem(FComponentItem.Motor(8 * amount));
        recipe.addItem(FComponentItem.SmallTube(12 * amount));
        recipe.addItem(FComponentItem.Construction(40 * amount));
        recipe.addItem(FComponentItem.SteelPlate(150 * amount));
        return(recipe);
    }
Ejemplo n.º 12
0
    static public CRecipe LargeShipMergeBlock(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_MergeBlock/LargeShipMergeBlock");

        recipe.addItem(FComponentItem.Computer(2 * amount));
        recipe.addItem(FComponentItem.LargeTube(6 * amount));
        recipe.addItem(FComponentItem.Motor(2 * amount));
        recipe.addItem(FComponentItem.Construction(15 * amount));
        recipe.addItem(FComponentItem.SteelPlate(12 * amount));
        return(recipe);
    }
Ejemplo n.º 13
0
    static public CRecipe Suspension5x5(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_MotorSuspension/Suspension5x5");

        recipe.addItem(FComponentItem.Motor(20 * amount));
        recipe.addItem(FComponentItem.SmallTube(30 * amount));
        recipe.addItem(FComponentItem.LargeTube(20 * amount));
        recipe.addItem(FComponentItem.Construction(40 * amount));
        recipe.addItem(FComponentItem.SteelPlate(70 * amount));
        return(recipe);
    }
Ejemplo n.º 14
0
    static public CRecipe LargeBlockWindTurbine(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_WindTurbine/LargeBlockWindTurbine");

        recipe.addItem(FComponentItem.Computer(2 * amount));
        recipe.addItem(FComponentItem.Girder(24 * amount));
        recipe.addItem(FComponentItem.Construction(20 * amount));
        recipe.addItem(FComponentItem.Motor(8 * amount));
        recipe.addItem(FComponentItem.InteriorPlate(40 * amount));
        return(recipe);
    }
Ejemplo n.º 15
0
    static public CRecipe LargeBlockGyro(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_Gyro/LargeBlockGyro");

        recipe.addItem(FComponentItem.Computer(5 * amount));
        recipe.addItem(FComponentItem.Motor(4 * amount));
        recipe.addItem(FComponentItem.MetalGrid(50 * amount));
        recipe.addItem(FComponentItem.LargeTube(4 * amount));
        recipe.addItem(FComponentItem.Construction(40 * amount));
        recipe.addItem(FComponentItem.SteelPlate(600 * amount));
        return(recipe);
    }
Ejemplo n.º 16
0
    static public CRecipe LargeBlockRadioAntenna(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_RadioAntenna/LargeBlockRadioAntenna");

        recipe.addItem(FComponentItem.RadioCommunication(40 * amount));
        recipe.addItem(FComponentItem.Computer(8 * amount));
        recipe.addItem(FComponentItem.Construction(30 * amount));
        recipe.addItem(FComponentItem.SmallTube(60 * amount));
        recipe.addItem(FComponentItem.LargeTube(40 * amount));
        recipe.addItem(FComponentItem.SteelPlate(80 * amount));
        return(recipe);
    }
Ejemplo n.º 17
0
    static public CRecipe LargeBlockSmallContainer(int amount = 1)
    {
        CRecipe recipe = new CRecipe("MyObjectBuilder_CargoContainer/LargeBlockSmallContainer");

        recipe.addItem(FComponentItem.Computer(2 * amount));
        recipe.addItem(FComponentItem.Display(1 * amount));
        recipe.addItem(FComponentItem.Motor(4 * amount));
        recipe.addItem(FComponentItem.SmallTube(20 * amount));
        recipe.addItem(FComponentItem.MetalGrid(4 * amount));
        recipe.addItem(FComponentItem.Construction(40 * amount));
        recipe.addItem(FComponentItem.InteriorPlate(40 * amount));
        return(recipe);
    }
Ejemplo n.º 18
0
 private MissionResult RunRecipe(CRecipe rec)
 {
     this._RobotManager.SetRec_Unloader(rec);
     Thread.Sleep(500);
     this._RobotManager.NextStep_Unloader();
     Thread.Sleep(4000);
     //to 1///
     while (this._RobotManager.IsUnloaderMoving())
     {
         Thread.Sleep(500);
     }
     Thread.Sleep(2000);
     this._Status = UnloaderStatus.HOLDING;
     return(MissionResult.NORMAL);
 }
Ejemplo n.º 19
0
 private MissionResult RunRecipe(CRecipe rec)
 {
     this._RobotManager.SetRec_Loader(rec);
     Thread.Sleep(500);
     this._RobotManager.NextStep_Loader();
     Thread.Sleep(4000);
     //to 1///
     while (this._RobotManager.IsLoaderMoving())
     {
         Thread.Sleep(500);
     }
     Thread.Sleep(2000);
     this._Status = LoaderStatus.HOLDING;
     //this.closeClaw();
     //Thread.Sleep(5000);
     //this.robotManager.nextStep_Loader();
     ////to 2
     //while (this.robotManager.isLoaderMoving())
     //{
     //    Thread.Sleep(500);
     //}
     //Thread.Sleep(5000);
     //this.robotManager.nextStep_Loader();
     ////to 3
     //while (this.robotManager.isLoaderMoving())
     //{
     //    Thread.Sleep(500);
     //}
     //this.openClaw();
     //Thread.Sleep(5000);
     //this.robotManager.nextStep_Loader();
     ////to 4
     //while (this.robotManager.isLoaderMoving())
     //{
     //    Thread.Sleep(500);
     //}
     //Thread.Sleep(5000);
     //     this.robotManager.nextStep_Loader();
     return(MissionResult.NORMAL);
     // throw new NotImplementedException();
 }
Ejemplo n.º 20
0
 public void add(CRecipe recipe)
 {
     m_recipes.Add(recipe);
 }