Deprecate PlayerProperties.Race
This commit is contained in:
@@ -30,8 +30,18 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
[Desc("The player's color.")]
|
[Desc("The player's color.")]
|
||||||
public HSLColor Color { get { return Player.Color; } }
|
public HSLColor Color { get { return Player.Color; } }
|
||||||
|
|
||||||
[Desc("The player's race.")]
|
[Desc("The player's race. (DEPRECATED! Use the `Faction` property.)")]
|
||||||
public string Race { get { return Player.PlayerReference.Faction; } }
|
public string Race
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
Game.Debug("The property `PlayerProperties.Race` is deprecated! Use `PlayerProperties.Faction` instead!");
|
||||||
|
return Player.PlayerReference.Faction;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Desc("The player's faction.")]
|
||||||
|
public string Faction { get { return Player.PlayerReference.Faction; } }
|
||||||
|
|
||||||
[Desc("The player's spawnpoint ID.")]
|
[Desc("The player's spawnpoint ID.")]
|
||||||
public int Spawn { get { return Player.SpawnPoint; } }
|
public int Spawn { get { return Player.SpawnPoint; } }
|
||||||
|
|||||||
Reference in New Issue
Block a user