Class LuaTableHelper
java.lang.Object
games.stendhal.server.core.scripting.lua.LuaTableHelper
Adds some useful function members to Lua "table" object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LuaTableHelper
get()
Retrieves the static instance.void
init(org.luaj.vm2.LuaTable tableTable)
pairsToNodes(org.luaj.vm2.LuaTable lt)
Converts a Lua table of table pairs ({{int, int}, {int, int}}) to list of nodes (`List`). static Node
pairToNode(org.luaj.vm2.LuaTable lt)
Converts a Lua table pair ({num, num}) to `Node`.
-
Method Details
-
get
Retrieves the static instance.- Returns:
- Static LuaStringHelper instance.
-
init
public void init(org.luaj.vm2.LuaTable tableTable) -
pairToNode
Converts a Lua table pair ({num, num}) to `Node`. -
pairsToNodes
Converts a Lua table of table pairs ({{int, int}, {int, int}}) to list of nodes (`List`).
-