Rename remaining Stance references to PlayerRelationship.

This commit is contained in:
Paul Chote
2021-02-04 20:07:05 +00:00
committed by reaperrr
parent b3821e71dc
commit fb0031d34a
40 changed files with 88 additions and 88 deletions

View File

@@ -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;
}
}