Expose Player.HomeLocation to the Lua API.

This commit is contained in:
Paul Chote
2020-12-04 17:27:16 +00:00
committed by Matthias Mailänder
parent 2c9a36b9a3
commit 86519bfda5

View File

@@ -39,6 +39,9 @@ namespace OpenRA.Mods.Common.Scripting
[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; } }
[Desc("The player's home/starting location.")]
public CPos HomeLocation { get { return Player.HomeLocation; } }
[Desc("The player's team ID.")] [Desc("The player's team ID.")]
public int Team public int Team
{ {