Ejemplo n.º 1
0
 public UserInputProcessingService(Internal.Model.World world, IPlayerInputHandler inputHandler, WorldRenderingService renderer, ToolSelectionMenu toolSelectionMenu)
 {
     this.world             = world;
     this.inputHandler      = inputHandler;
     this.renderer          = renderer;
     this.toolSelectionMenu = toolSelectionMenu;
 }
        public void Setup()
        {
            engine            = EngineFactory.CreateEngine();
            toolSelectionMenu = new ToolSelectionMenu();

            engine.AddSimulator(new BasicSimulator(() =>
            {
                toolSelectionMenu.ProcessUserInput();
            }));

            TW.Graphics.SpectaterCamera.EnableUserInput = false;
        }
Ejemplo n.º 3
0
 private void initMenu(ToolSelectionMenu menu, IComponentContext context)
 {
     menu.Initialize(context.Resolve <ToolMenuBuilder>().BuildMenu());
 }