public GameApplication( GameToControllerWindowMessagePipe pipe, ControllerToGameMessagePipe toGamePipe ) { OurGameToControllerPipe = pipe; OurPipeControllerToGame = toGamePipe; game = GameState.LoadFromFile("partie.xml"); // we dont activate the component at first because there is no window at the moment // we need to make a do change because when we recreate the window // the active component is initialized. ChangeComponent(new ThemeSelectionMenu(this ), false); DoChangeComponent(); RecreateWindow(); messagePumper = new Thread(this.PumpMessages); }
public ThemeSelectionMenu( GameApplication app ) { myApp = app; myGame = app.game; }