public void InitAgroteraScript()
        {
            // just register the default controllers
            ControllerCache.RegisterController(typeof(Default));
            ControllerCache.RegisterController(typeof(Multiplexer));

            ControllerCache.RegisterController(typeof(Spinner));
            ControllerCache.RegisterController(typeof(Mover));

            ControllerCache.RegisterController(typeof(PowerSystemController));
            ControllerCache.RegisterController(typeof(SensorSystemController));

            ControllerCache.RegisterController(typeof(VesselController));
            ControllerCache.RegisterController(typeof(ShipController));
            ControllerCache.RegisterController(typeof(StationController));
        }
Exemplo n.º 2
0
 private void loadControllers()
 {
     ControllerCache.Update((name, cont) => { this.GameControllers.Items.Add(cont.ToString()); });
     logger.Info("Controllers updated");
 }