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()); }
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); }
public NextComponentActionListener(InterfaceInputManager <TInputAction> interfaceInputManager) => this.interfaceInputManager = interfaceInputManager;