Change api for dev tools var inspector

This commit is contained in:
Adam
2020-06-29 10:27:51 -04:00
committed by Lucwousin
parent e508d2f883
commit 74dd4e71e8
7 changed files with 59 additions and 51 deletions

View File

@@ -407,6 +407,11 @@ public interface Client extends GameShell
*/
IndexDataBase getIndexScripts();
/**
* Gets the config archive, containing Varplayer and Varbit definitions
*/
IndexDataBase getConfigArchive();
/**
* Gets the config index.
*/
@@ -774,16 +779,6 @@ public interface Client extends GameShell
*/
void setVarbit(Varbits varbit, int value);
/**
* Gets the varbit composition for a given varbit id
*
* @param id
* @return
*/
@VisibleForDevtools
@Nullable
VarbitComposition getVarbit(int id);
/**
* Gets the value of a given variable.
*
@@ -825,9 +820,10 @@ public interface Client extends GameShell
void setVarbitValue(int[] varps, int varbit, int value);
/**
* @return the total number of VarbitDefinition
* Gets the varbit composition for a given varbit id
*/
int getVarbitCount();
@Nullable
VarbitDefinition getVarbitDefinition(int id);
/**
* Gets the widget flags table.

View File

@@ -11,9 +11,7 @@ public interface IndexDataBase
boolean isOverlayOutdated();
/**
* Get the child file ids for a given archive
* @param archiveId
* @return
* Get the child file ids for a given group
*/
int[] getFileIds(int archiveId);
int[] getFileIds(int group);
}

View File

@@ -24,26 +24,20 @@
*/
package net.runelite.api;
public interface VarbitComposition
public interface VarbitDefinition
{
/**
* The varp index for this varbit
*
* @return
*/
int getIndex();
/**
* The least significant bit of the varbit
*
* @return
*/
int getLeastSignificantBit();
/**
* The most significant bit of the varbit (inclusive)
*
* @return
*/
int getMostSignificantBit();
}
}