Rename methods/activities with Visual in them
While they may be only 'visual' in terms of influence/cell grid, they all do update CenterPosition, which is essentially the actual world position of the actor. 'Visual' would imply that it only affects the position where the actor is drawn, which is inaccurate. Furthermore, using the term 'Visual' here would make naming future methods/properties related to visual interpolation unnecessarily complicated, because that's where we might need a real 'Visual(Only)Position'.
This commit is contained in:
committed by
Matthias Mailänder
parent
7073279ab8
commit
2473b8763b
@@ -305,7 +305,7 @@ namespace OpenRA.Traits
|
||||
SubCell GetAvailableSubCell(CPos location, SubCell preferredSubCell = SubCell.Any, Actor ignoreActor = null, BlockedByActor check = BlockedByActor.All);
|
||||
void SetPosition(Actor self, CPos cell, SubCell subCell = SubCell.Any);
|
||||
void SetPosition(Actor self, WPos pos);
|
||||
void SetVisualPosition(Actor self, WPos pos);
|
||||
void SetCenterPosition(Actor self, WPos pos);
|
||||
}
|
||||
|
||||
public interface ITemporaryBlockerInfo : ITraitInfoInterface { }
|
||||
|
||||
Reference in New Issue
Block a user