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