Expose methods to execute scripts

This commit is contained in:
Max Weber
2018-03-28 00:42:20 -06:00
committed by Adam
parent 0c04804d1a
commit 6e80cff926
4 changed files with 28 additions and 0 deletions

View File

@@ -550,4 +550,10 @@ public interface RSClient extends RSGameEngine, Client
@Import("drawObject")
void drawObject(int z, int x, int y, int randomColor1, int randomColor2);
@Construct
RSScriptEvent createScriptEvent();
@Import("runScript")
void runScript(RSScriptEvent ev, int ex);
}

View File

@@ -24,6 +24,13 @@
*/
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface RSScriptEvent
{
@Import("objs")
Object[] getArguments();
@Import("objs")
void setArguments(Object[] args);
}