Package com.prineside.tdi2.managers
Class ScriptManager.ScriptEnvironment
java.lang.Object
com.prineside.tdi2.managers.ScriptManager.ScriptEnvironment
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- ScriptManager
public static class ScriptManager.ScriptEnvironment
extends Object
implements com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
executeLua
(String luaScript, String chunkName) loadScript
(com.badlogic.gdx.files.FileHandle handle) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
triggerEvent
(String eventName) void
triggerEvent
(String eventName, LuaValue v1) void
triggerEvent
(String eventName, LuaValue v1, LuaValue v2) void
triggerEvent
(String eventName, LuaValue v1, LuaValue v2, LuaValue v3) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
ScriptEnvironment
public ScriptEnvironment(boolean doInitialize)
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
getGlobals
-
loadScript
public ScriptManager.ScriptEnvironment.LuaExecutionResult loadScript(com.badlogic.gdx.files.FileHandle handle) -
executeLua
public ScriptManager.ScriptEnvironment.LuaExecutionResult executeLua(String luaScript, String chunkName) -
triggerEvent
-
triggerEvent
-
triggerEvent
-
triggerEvent
-
dispose
public void dispose()
-