public void loadMethodScript( String fileName, String method, Object parameter1, Object parameter2) { getGlobals().finder = this; LuaValue luaParameters1 = CoerceJavaToLua.coerce(parameter1); LuaValue luaParameters2 = CoerceJavaToLua.coerce(parameter2); getGlobals().loadfile(fileName).call(getLuaCommander(), luaParameters1, luaParameters2); }
private LuaValue startCommander() { return CoerceJavaToLua.coerce(commander); }
public void loadMethodScript(String fileName, String method, Object... parameters) { LuaValue luaParameters = CoerceJavaToLua.coerce(parameters); getGlobals().loadfile(fileName).call(luaParameters); }