Exemplo n.º 1
0
            public ShipAutoPilot(MyGridProgram p, string controllerName = "") : base(p)
            {
                this.controllerName = controllerName;
                LoadBlocks();

                Step stepOrientation = new Step("AIM_TO_TARGET", AimToTarget);
                Step stepTravel      = new Step("TRAVEL", Travel);

                stepTravel.BeforeFirstRun = BeforeTravel;
                Step stepEnd = new Step("END_TRAVEL", EndTravel);

                StepManager = new StepManager();
                StepManager.Init(stepOrientation, stepTravel, stepEnd);
            }