Merge pull request #2925 from Noodleeater/runelite

client: Added api to get more info about actor animations. Also added api "getIsFlat" to SceneTileModel
This commit is contained in:
Tyler Bochard
2021-02-24 00:01:30 -05:00
committed by GitHub
5 changed files with 33 additions and 0 deletions

View File

@@ -109,6 +109,16 @@ public interface Actor extends Renderable, Locatable
void setPoseAnimation(int animation);
/**
* Get the index of the PoseFrame (the index as it appears in the sequenceDefinition "frames" array).
*/
int getPoseFrame();
/**
* Get the number of cycles the pose frame has been displayed for.
*/
int getPoseFrameCycle();
/**
* Gets the orientation of the actor.
*
@@ -169,8 +179,15 @@ public interface Actor extends Renderable, Locatable
void setGraphic(int graphic);
int getSpotAnimationFrame();
void setSpotAnimFrame(int spotAnimFrame);
/**
* Get the number of cycles the SpotAnimation frame has been displayed for.
*/
int getSpotAnimationFrameCycle();
/**
* Gets the canvas area of the current tile the actor is standing on.
*

View File

@@ -3,4 +3,14 @@ package net.runelite.api;
public interface DynamicObject extends Renderable
{
int getAnimationID();
/**
* Get the index of the AnimFrame (the index as it appears in the sequenceDefinition "frames" array).
*/
int getAnimFrame();
/**
* Get the number of cycles that have elapsed in the whole animation.
*/
int getAnimCycleCount();
}

View File

@@ -117,4 +117,6 @@ public interface SceneTileModel
int getOverlayNwColor();
void setOverlayNwColor(int color);
boolean getIsFlat();
}

View File

@@ -1344,6 +1344,7 @@ public interface RSClient extends RSGameEngine, Client
RSParamComposition getRSParamComposition(int id);
@Import("SequenceDefinition_get")
@Override
RSSequenceDefinition getSequenceDefinition(int id);
@Construct

View File

@@ -60,4 +60,7 @@ public interface RSSceneTileModel extends SceneTileModel
@Import("triangleTextureId")
@Override
int[] getTriangleTextureId();
@Import("isFlat")
boolean getIsFlat();
}