Пример #1
0
 public HenHenGame()
 {
     Raylib_cs.Raylib.SetExitKey(Raylib_cs.KeyboardKey.KEY_NULL);
     LoadImages();
     menuActionsHandler    = new(Inputs);
     interfaceInputManager = new(ScreenStack, MenuActions.Next);
     menuActionsHandler.Propagator.Listeners.Add(interfaceInputManager);
     positionalInterfaceInputManager = new(Inputs, ScreenStack);
     ScreenStack.Push(new MainMenuScreen());
 }
Пример #2
0
        public void SetUp()
        {
            var screenStack = new ScreenStack();

            screen     = new Screen();
            component1 = new TestComponent(1);
            component2 = new TestComponent(2);
            var componentContainer = new Container();

            componentContainer.AddChild(component3Nested              = new TestComponent(3));
            componentContainer.AddChild(component4ContainerNested     = new TestContainerComponent(4));
            component4ContainerNested.AddChild(component5DoubleNested = new TestComponent(5));
            componentContainer.AddChild(component6Nested              = new TestComponent(6));
            interfaceInputManager = new(screenStack);
            screen.AddChild(component1);
            screen.AddChild(component2);
            screen.AddChild(componentContainer);
            screenStack.Push(screen);
        }
Пример #3
0
 public NextComponentActionListener(InterfaceInputManager <TInputAction> interfaceInputManager) => this.interfaceInputManager = interfaceInputManager;