GetPlayer() public method

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

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