Help Requested: INotifyActorMovement

I need help with the Lua tie-in and testing. I've haven't had much time to spend on this over the past three weeks, and rather than let it lie stagnant, I figured asking for help.

Closes  #6204. (Or meant to)

Pinging @obrakmann as he knows a bit about this.

(Sidenote: I've attempted to use this same code for shroud and crushing, but once you have 300+ listeners + movers the lag becomes visible, so I've restricted this to region checking for now.)
WPos is a value type -- there are no references here.

You can do:

```WPos oldPos = CenterPosition;```

and it is taking a copy.

On Mon, Sep 8, 2014 at 4:34 AM, UberWaffe <notifications@github.com> wrote:

> In OpenRA.Mods.RA/Air/Aircraft.cs:
>
> > @@ -160,12 +160,13 @@ public void Killed(Actor self, AttackInfo e)
> >
> >  		public void SetPosition(Actor self, WPos pos)
> >  		{
> > +			WPos oldPos = new WPos(CenterPosition.X, CenterPosition.Y, CenterPosition.Z);
>
> That appears to create a pointer, which means that oldPos changes when the
> actor's center position is changed. Making delta checks for movement
> impossible.
> Not sure how to avoid it creating a pointer other than the above
> roundabout code.
>
> I'll add a comment, since I realize that it is rather obscure.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/OpenRA/OpenRA/pull/6390/files#r17215574>.
>