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

MatchFinished() public method

public MatchFinished ( System.Guid winner, System.Guid losser ) : Message
winner System.Guid
losser System.Guid
return CloudWars.Common.Other.Message
        public Message MatchFinished(Guid winner, Guid losser)
        {
            //update player stats
            CloudWarsData.PlayerWin(winner);
            CloudWarsData.PlayerLose(losser);
            //delete the match
            CloudWarsData.DeleteMatch(this.MatchId);
            //return the message
            return new Message { Winner = winner, Losser = losser, Command = Command.EndGame,  MatchId = this.MatchId };
        }