GetPlayer() public method

Gets the player information for the specified runtime player instance.
public GetPlayer ( OpenRA runtimePlayer ) : Player
runtimePlayer OpenRA
return Player
Exemplo n.º 1
0
        public void OnPlayerWinStateChanged(Player player)
        {
            var pi = gameInfo.GetPlayer(player);

            if (pi != null)
            {
                pi.Outcome             = player.WinState;
                pi.OutcomeTimestampUtc = DateTime.UtcNow;
            }
        }