Exemple #1
0
        public override Pod SetupState(ProgramContext ProgramContext, ProgramStateContext ProgramStateContext)
        {
            _Context = ProgramStateContext;

            var screen = new RegisterPlayerScreen(ProgramContext.ScreenResolution);

            _Controller                     = new RegisterPlayerController(screen);
            _Controller.OnRegister         += HandleRegister;
            screen.OnLogIn                 += HandleLogIn;
            screen.OnMainMenuButtonClicked += HandleBack;
            return(screen);
        }
Exemple #2
0
 public RegisterPlayerController(RegisterPlayerScreen Screen)
 {
     _Screen             = Screen;
     _Screen.OnRegister += HandleRegister;
 }