Rename remaining Stance references to PlayerRelationship.
This commit is contained in:
@@ -265,7 +265,7 @@ namespace OpenRA
|
||||
return RelationshipWith(p) == PlayerRelationship.Ally;
|
||||
}
|
||||
|
||||
public Color PlayerStanceColor(Actor a)
|
||||
public Color PlayerRelationshipColor(Actor a)
|
||||
{
|
||||
var player = a.World.RenderPlayer ?? a.World.LocalPlayer;
|
||||
if (player != null && !player.Spectating)
|
||||
|
||||
@@ -76,12 +76,12 @@ namespace OpenRA.Traits
|
||||
Ally = 4,
|
||||
}
|
||||
|
||||
public static class StanceExts
|
||||
public static class PlayerRelationshipExts
|
||||
{
|
||||
public static bool HasStance(this PlayerRelationship s, PlayerRelationship stance)
|
||||
public static bool HasRelationship(this PlayerRelationship r, PlayerRelationship relationship)
|
||||
{
|
||||
// PERF: Enum.HasFlag is slower and requires allocations.
|
||||
return (s & stance) == stance;
|
||||
return (r & relationship) == relationship;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user