CloudWars.SpaceBattle.SpaceBattleGame.CreateMatch C# (CSharp) Method

CreateMatch() public method

Create the match and
public CreateMatch ( System.Guid player1, System.Guid player2 ) : void
player1 System.Guid
player2 System.Guid
return void
        public void CreateMatch(Guid player1, Guid player2)
        {
            Player1 = player1;
            Player2 = player2;
            //Create the match and set the matchid
            MatchId = CloudWarsData.CreateMatch(player1, player2);
            Turn = player1;
        }