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:
@@ -109,6 +109,16 @@ public interface Actor extends Renderable, Locatable
|
|||||||
|
|
||||||
void setPoseAnimation(int animation);
|
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.
|
* Gets the orientation of the actor.
|
||||||
*
|
*
|
||||||
@@ -169,8 +179,15 @@ public interface Actor extends Renderable, Locatable
|
|||||||
|
|
||||||
void setGraphic(int graphic);
|
void setGraphic(int graphic);
|
||||||
|
|
||||||
|
int getSpotAnimationFrame();
|
||||||
|
|
||||||
void setSpotAnimFrame(int spotAnimFrame);
|
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.
|
* Gets the canvas area of the current tile the actor is standing on.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -3,4 +3,14 @@ package net.runelite.api;
|
|||||||
public interface DynamicObject extends Renderable
|
public interface DynamicObject extends Renderable
|
||||||
{
|
{
|
||||||
int getAnimationID();
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,4 +117,6 @@ public interface SceneTileModel
|
|||||||
int getOverlayNwColor();
|
int getOverlayNwColor();
|
||||||
|
|
||||||
void setOverlayNwColor(int color);
|
void setOverlayNwColor(int color);
|
||||||
|
|
||||||
|
boolean getIsFlat();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1344,6 +1344,7 @@ public interface RSClient extends RSGameEngine, Client
|
|||||||
RSParamComposition getRSParamComposition(int id);
|
RSParamComposition getRSParamComposition(int id);
|
||||||
|
|
||||||
@Import("SequenceDefinition_get")
|
@Import("SequenceDefinition_get")
|
||||||
|
@Override
|
||||||
RSSequenceDefinition getSequenceDefinition(int id);
|
RSSequenceDefinition getSequenceDefinition(int id);
|
||||||
|
|
||||||
@Construct
|
@Construct
|
||||||
|
|||||||
@@ -60,4 +60,7 @@ public interface RSSceneTileModel extends SceneTileModel
|
|||||||
@Import("triangleTextureId")
|
@Import("triangleTextureId")
|
||||||
@Override
|
@Override
|
||||||
int[] getTriangleTextureId();
|
int[] getTriangleTextureId();
|
||||||
|
|
||||||
|
@Import("isFlat")
|
||||||
|
boolean getIsFlat();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user