Example #1
0
 public void Welcome(byte id, Guid gameSessionId, bool waitForGameState)
 {
     Program.InPreGame     = true;
     Player.LocalPlayer.Id = id;
     Program.Client.StartPings();
     Player.FireLocalPlayerWelcomed();
     Program.GameEngine.SessionId        = gameSessionId;
     Program.GameEngine.WaitForGameState = waitForGameState;
 }
Example #2
0
 public void Welcome(byte id, Guid gameSessionId, string gameName, bool waitForGameState)
 {
     WriteReplayAction(id);
     Program.InPreGame     = true;
     Player.LocalPlayer.Id = id;
     if (Program.Client is ClientSocket cs)
     {
         cs.StartPings();
     }
     Player.FireLocalPlayerWelcomed();
     Program.GameEngine.OnWelcomed(gameSessionId, gameName, waitForGameState);
 }