Rename SpawnOccupant.Country
This commit is contained in:
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
labelText = occupant.PlayerName;
|
labelText = occupant.PlayerName;
|
||||||
playerCountry = occupant.Country;
|
playerCountry = occupant.Faction;
|
||||||
playerTeam = occupant.Team;
|
playerTeam = occupant.Team;
|
||||||
widget.Bounds.Height = playerTeam > 0 ? doubleHeight : singleHeight;
|
widget.Bounds.Height = playerTeam > 0 ? doubleHeight : singleHeight;
|
||||||
teamWidth = teamFont.Measure(team.GetText()).X;
|
teamWidth = teamFont.Measure(team.GetText()).X;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
public readonly int ClientIndex;
|
public readonly int ClientIndex;
|
||||||
public readonly string PlayerName;
|
public readonly string PlayerName;
|
||||||
public readonly int Team;
|
public readonly int Team;
|
||||||
public readonly string Country;
|
public readonly string Faction;
|
||||||
public readonly int SpawnPoint;
|
public readonly int SpawnPoint;
|
||||||
|
|
||||||
public SpawnOccupant(Session.Client client)
|
public SpawnOccupant(Session.Client client)
|
||||||
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
ClientIndex = client.Index;
|
ClientIndex = client.Index;
|
||||||
PlayerName = client.Name;
|
PlayerName = client.Name;
|
||||||
Team = client.Team;
|
Team = client.Team;
|
||||||
Country = client.Race;
|
Faction = client.Race;
|
||||||
SpawnPoint = client.SpawnPoint;
|
SpawnPoint = client.SpawnPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
ClientIndex = player.ClientIndex;
|
ClientIndex = player.ClientIndex;
|
||||||
PlayerName = player.Name;
|
PlayerName = player.Name;
|
||||||
Team = player.Team;
|
Team = player.Team;
|
||||||
Country = player.FactionId;
|
Faction = player.FactionId;
|
||||||
SpawnPoint = player.SpawnPoint;
|
SpawnPoint = player.SpawnPoint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user