Ejemplo n.º 1
0
 public override void NewGame()
 {
     state.FadeOut(0.2, () =>
     {
         var embeddedServer = new EmbeddedServer(state.Game.GameData);
         var session        = new CGameSession(state.Game, embeddedServer);
         embeddedServer.StartFromSave(state.Game.GameData.VFS.Resolve("EXE\\newplayer.fl"));
         state.Game.ChangeState(new NetWaitState(session, state.Game));
     });
 }
Ejemplo n.º 2
0
 public void LoadSelectedGame()
 {
     state.FadeOut(0.2, () =>
     {
         var embeddedServer = new EmbeddedServer(state.Game.GameData);
         var session        = new CGameSession(state.Game, embeddedServer);
         embeddedServer.StartFromSave(state.Game.Saves.SelectedFile);
         state.Game.ChangeState(new NetWaitState(session, state.Game));
     });
 }