instance map: add complex tile rendering

This commit is contained in:
Toocanzs
2017-11-18 02:31:59 -05:00
committed by Adam
parent b6c90b33a6
commit eecf183700
17 changed files with 940 additions and 28 deletions

View File

@@ -30,6 +30,7 @@ import java.awt.image.BufferedImage;
import net.runelite.api.Actor;
import net.runelite.api.NPC;
import net.runelite.api.Perspective;
import static net.runelite.api.Perspective.LOCAL_COORD_BITS;
import net.runelite.api.Player;
import net.runelite.api.Point;
import net.runelite.api.SpritePixels;
@@ -124,6 +125,13 @@ public abstract class RSActorMixin implements RSActor
return Perspective.localToWorld(client, localLocation);
}
@Inject
@Override
public Point getRegionLocation()
{
return new Point(getX() >>> LOCAL_COORD_BITS, getY() >>> LOCAL_COORD_BITS);// divided by 128
}
@Inject
@Override
public Point getLocalLocation()