Add @Imports, by hand, untested

This commit is contained in:
Adam
2016-03-12 13:04:22 -05:00
parent fc452f2008
commit 4deec93ca3
32 changed files with 260 additions and 5 deletions

View File

@@ -1,24 +1,36 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Actor extends Renderable
{
@Import("interacting")
int getInteracting();
@Import("interactingObjects")
int getInteractingObjects();
@Import("inSequence")
boolean inSequence();
@Import("overhead")
String getOverhead();
@Import("loopCycle")
int getLoopCycle();
@Import("health")
int getHealth();
@Import("maxHealth")
int getMaxHealth();
@Import("x")
int getX();
@Import("y")
int getY();
@Import("animation")
int getAnimation();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Buffer
{
@Import("payload")
byte[] getPayload();
@Import("offset")
int getOffset();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface CacheableNode
{
@Import("next")
CacheableNode getNext();
@Import("previous")
CacheableNode getPrevious();
}

View File

@@ -2,12 +2,16 @@ package net.runelite.rs.api;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import net.runelite.mapping.Import;
public interface ClassInfo
{
@Import("methods")
Method getMethods();
@Import("fields")
Field getFields();
@Import("args")
byte[][][] getArgs();
}

View File

@@ -1,110 +1,161 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Client extends GameEngine
{
@Import("cameraX")
int getCameraX();
@Import("cameraY")
int getCameraY();
@Import("cameraZ")
int getCameraZ();
@Import("plane")
int getPlane();
@Import("cameraPitch")
int getCameraPitch();
@Import("cameraYaw")
int getCameraYaw();
@Import("world")
int getWorld();
@Import("FPS")
int getFPS();
@Import("mapScale")
int getMapScale();
@Import("mapAngle")
int getMapAngle();
@Import("tileHeights")
int[][][] getTileHeights();
@Import("tileSettings")
byte[][][] getTileSettings();
@Import("settings")
int[] getSettings();
@Import("widgetSettings")
int[] getWidgetSettings();
@Import("energy")
int getEnergy();
@Import("weight")
int getWeight();
@Import("baseX")
int getBaseX();
@Import("baseY")
int getBaseY();
@Import("boostedSkillLevels")
int[] getBoostedSkillLevels();
@Import("realSkillLevels")
int[] getRealSkillLevels();
@Import("skillExperience")
int[] getSkillExperiences();
@Import("gameState")
int getGameState();
@Import("widgets")
Widget[][] getWidgets();
@Import("region")
Region getRegion();
@Import("localPlayer")
Player getLocalPlayer();
@Import("cachedNPCs")
NPC[] getCachedNPCs();
@Import("collionMaps")
CollisionData[] getCollisionMaps();
@Import("cachedPlayers")
Player[] getCachedPlayers();
@Import("groundItemDeque")
Deque[][][] getGroundItemDeque();
@Import("username")
String getUsername();
@Import("menuACtions")
String[] getMenuActions();
@Import("menuOptions")
String[] getMenuOptions();
@Import("friends")
Friend[] getFriends();
@Import("ignores")
Ignore[] getIgnores();
@Import("worldList")
World[] getWorldList();
@Import("rootInterface")
int getRootInterface();
void setUsername(String var1);
//void setUsername(String var1);
void sendGameMessage(int var1, String var2, String var3, int var4);
//void sendGameMessage(int var1, String var2, String var3, int var4);
void hopToWorld(String var1, int var2, int var3);
//void hopToWorld(String var1, int var2, int var3);
@Import("objectDefinition")
ObjectComposition getObjectDefinition(int var1);
void setScale(int var1);
//void setScale(int var1);
@Import("scale")
int getScale();
@Import("camera2")
int getCamera2();
@Import("camera3")
int getCamera3();
@Import("validInterfaces")
boolean[] getValidInterfaces();
@Import("resized")
boolean isResized();
@Import("widgetPositionX")
int[] getWidgetPositionsX();
@Import("widgetPositionY")
int[] getWidgetPositionsY();
@Import("itemContainers")
XHashTable getItemContainers();
@Import("componentTable")
XHashTable getComponentTable();
@Import("grandExchangeOffers")
XGrandExchangeOffer[] getGrandExchangeOffers();
@Import("activeInterface")
Widget getActiveInterface();
@Import("clanMembers")
XClanMember[] getClanMembers();
}

View File

@@ -1,6 +1,9 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface CollisionData
{
@Import("flags")
int[][] getFlags();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Deque
{
@Import("current")
Node getCurrent();
@Import("head")
Node getHead();
}

View File

@@ -1,12 +1,16 @@
package net.runelite.rs.api;
import java.io.RandomAccessFile;
import net.runelite.mapping.Import;
public interface FileOnDisk
{
@Import("file")
RandomAccessFile getFile();
@Import("position")
long getPosition();
@Import("length")
long getLength();
}

View File

@@ -1,10 +1,15 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Friend
{
@Import("name")
String getName();
@Import("previousName")
String getPreviousName();
@Import("world")
int getWorld();
}

View File

@@ -1,28 +1,42 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface GameObject
{
@Import("renderable")
Renderable getRenderable();
@Import("plane")
int getPlane();
@Import("relativeX")
int getRelativeX();
@Import("relativeY")
int getRelativeY();
@Import("offsetX")
int getOffsetX();
@Import("offsetY")
int getOffsetY();
@Import("x")
int getX();
@Import("y")
int getY();
@Import("height")
int getHeight();
@Import("orientation")
int getOrientation();
@Import("hash")
int getHash();
@Import("flags")
int getFlags();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Ignore
{
@Import("name")
String getName();
@Import("prevousName")
String getPreviousName();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Item extends Renderable
{
@Import("id")
int getId();
@Import("quantity")
int getQuantity();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface ItemComposition
{
@Import("name")
String getName();
@Import("isMembers")
boolean isMembers();
}

View File

@@ -1,20 +1,30 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface ItemLayer
{
@Import("x")
int getX();
@Import("y")
int getY();
@Import("hash")
int getHash();
@Import("flags")
int getFlags();
@Import("height")
int getHeight();
@Import("bottom")
Renderable getBottom();
@Import("middle")
Renderable getMiddle();
@Import("top")
Renderable getTop();
}

View File

@@ -1,6 +1,9 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface NPC extends Actor
{
@Import("composition")
NPCComposition getComposition();
}

View File

@@ -1,20 +1,30 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface NPCComposition
{
@Import("name")
String getName();
@Import("models")
int[] getModels();
@Import("actions")
String[] getActions();
@Import("clickable")
boolean isClickable();
@Import("isMinimapVisible")
boolean isMinimapVisable();
@Import("isVisible")
boolean isVisable();
@Import("id")
int getId();
@Import("combatLevel")
int getCombatLevel();
}

View File

@@ -1,10 +1,15 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Node
{
@Import("next")
Node getNext();
@Import("hash")
long getHash();
@Import("previous")
Node getPrevious();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface ObjectComposition
{
@Import("name")
String getName();
@Import("actions")
String[] getActions();
}

View File

@@ -1,16 +1,24 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Player extends Actor
{
@Import("composition")
PlayerComposition getComposition();
@Import("name")
String getName();
@Import("model")
Model getModel();
@Import("combatLevel")
int getCombatLevel();
@Import("totalLevel")
int getTotalLevel();
@Import("team")
int getTeam();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface PlayerComposition
{
@Import("isFemale")
boolean isFemale();
@Import("equipment")
int[] getEquipment();
}

View File

@@ -1,16 +1,24 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Projectile
{
@Import("isMoving")
boolean isMoving();
@Import("animationSequence")
Sequence getAnimationSequence();
@Import("velocityY")
double getVelocityY();
@Import("velocityX")
double getVelocityX();
@Import("velocityZ")
double getVelocityZ();
@Import("scalar")
double getScalar();
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Region
{
@Import("objects")
GameObject[] getObjects();
@Import("tiles")
Tile[][][] getTiles();
}

View File

@@ -1,6 +1,9 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Renderable extends Node
{
@Import("modelHeight")
int getModelHeight();
}

View File

@@ -1,14 +1,21 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Sequence
{
@Import("stretches")
boolean getStretches();
@Import("maxLoops")
int getMaxLoops();
@Import("precedenceAnimating")
int getPrecedenceAnimating();
@Import("replyMode")
int getReplyMode();
@Import("interleaveLeave")
int[] getInterleaveLeave();
}

View File

@@ -1,14 +1,21 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Tile
{
@Import("objects")
GameObject[] getObjects();
@Import("itemLayer")
ItemLayer getItemLayer();
@Import("x")
int getX();
@Import("y")
int getY();
@Import("plane")
int getPlane();
}

View File

@@ -1,72 +1,108 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface Widget
{
@Import("parent")
Widget getParent();
@Import("dynamicValues")
int[][] getDynamicValues();
@Import("children")
Widget[] getChildren();
@Import("id")
int getId();
@Import("parentId")
int getParentId();
@Import("boundsIndex")
int getBoundsIndex();
@Import("modelId")
int getModelId();
@Import("itemIds")
int[] getItemIds();
@Import("itemQuantities")
int[] getItemQuantities();
@Import("modelType")
int getModelType();
@Import("actions")
String[] getActions();
@Import("text")
String getText();
@Import("name")
String getName();
@Import("textColor")
int getTextColor();
@Import("opacity")
int getOpacity();
@Import("relativeX")
int getRelativeX();
@Import("relativeY")
int getRelativeY();
@Import("width")
int getWidth();
@Import("heigth")
int getHeight();
@Import("isHidden")
boolean isHidden();
@Import("index")
int getIndex();
@Import("rotationX")
int getRotationX();
@Import("rotationY")
int getRotationY();
@Import("rotationZ")
int getRotationZ();
@Import("contentType")
int getContentType();
@Import("type")
int getType();
@Import("scrollX")
int getScrollX();
@Import("scrollY")
int getScrollY();
@Import("textureId")
int getTextureId();
@Import("borderThickness")
int getBorderThickness();
@Import("itemId")
int getItemId();
@Import("itemQuantity")
int getItemQuantity();
@Import("x")
int getX();
@Import("y")
int getY();
}

View File

@@ -1,6 +1,9 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface WidgetNode
{
@Import("id")
int getId();
}

View File

@@ -1,18 +1,27 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface World
{
@Import("mask")
int getMask();
@Import("playerCount")
int getPlayerCount();
@Import("location")
int getLocation();
@Import("index")
int getIndex();
@Import("id")
int getId();
@Import("activity")
String getActivity();
@Import("address")
String getAddress();
}

View File

@@ -1,10 +1,15 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface XClanMember
{
@Import("name")
String getName();
@Import("world")
int getWorld();
@Import("rank")
byte getRank();
}

View File

@@ -1,16 +1,24 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface XGrandExchangeOffer
{
@Import("quantitySold")
int getQuantitySold();
@Import("itemId")
int getItemId();
@Import("totalQuantity")
int getTotalQuantity();
@Import("price")
int getPrice();
@Import("spent")
int getSpent();
@Import("progress")
byte getProgress();
}

View File

@@ -2,5 +2,5 @@ package net.runelite.rs.api;
public interface XHashTable
{
Node get(long var1);
//Node get(long var1);
}

View File

@@ -1,8 +1,12 @@
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface XItemContainer extends Node
{
@Import("itemIds")
int[] getItemIds();
@Import("stackSizes")
int[] getStackSizes();
}