Add getWorldLocation mixin for Actor
This commit is contained in:
@@ -40,6 +40,8 @@ public interface Actor extends Renderable
|
|||||||
|
|
||||||
int getHealth();
|
int getHealth();
|
||||||
|
|
||||||
|
Point getWorldLocation();
|
||||||
|
|
||||||
Point getLocalLocation();
|
Point getLocalLocation();
|
||||||
|
|
||||||
int getOrientation();
|
int getOrientation();
|
||||||
|
|||||||
@@ -116,6 +116,14 @@ public abstract class RSActorMixin implements RSActor
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Inject
|
||||||
|
public Point getWorldLocation()
|
||||||
|
{
|
||||||
|
Point localLocation = getLocalLocation();
|
||||||
|
return Perspective.localToWorld(client, localLocation);
|
||||||
|
}
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
@Override
|
@Override
|
||||||
public Point getLocalLocation()
|
public Point getLocalLocation()
|
||||||
|
|||||||
Reference in New Issue
Block a user