Expose Actor animation and actionFrame to API
This commit is contained in:
@@ -27,6 +27,7 @@ package net.runelite.api;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Polygon;
|
||||
import java.awt.image.BufferedImage;
|
||||
import net.runelite.api.annotations.VisibleForDevtools;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import net.runelite.api.coords.WorldArea;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
@@ -56,6 +57,12 @@ public interface Actor extends Renderable
|
||||
|
||||
int getAnimation();
|
||||
|
||||
@VisibleForDevtools
|
||||
void setAnimation(int animation);
|
||||
|
||||
@VisibleForDevtools
|
||||
void setActionFrame(int actionFrame);
|
||||
|
||||
int getGraphic();
|
||||
|
||||
int getModelHeight();
|
||||
|
||||
@@ -51,6 +51,10 @@ public interface RSActor extends RSRenderable, Actor
|
||||
@Override
|
||||
int getAnimation();
|
||||
|
||||
@Import("animation")
|
||||
@Override
|
||||
void setAnimation(int animation);
|
||||
|
||||
@Import("graphic")
|
||||
@Override
|
||||
int getGraphic();
|
||||
@@ -70,6 +74,7 @@ public interface RSActor extends RSRenderable, Actor
|
||||
int getActionFrame();
|
||||
|
||||
@Import("actionFrame")
|
||||
@Override
|
||||
void setActionFrame(int frame);
|
||||
|
||||
@Import("actionFrameCycle")
|
||||
|
||||
Reference in New Issue
Block a user