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