Class LuaTableHelper

java.lang.Object
games.stendhal.server.core.scripting.lua.LuaTableHelper

public class LuaTableHelper extends Object
Adds some useful function members to Lua "table" object.
  • Method Details

    • get

      public static LuaTableHelper get()
      Retrieves the static instance.
      Returns:
      Static LuaStringHelper instance.
    • init

      public void init(org.luaj.vm2.LuaTable tableTable)
    • pairToNode

      public static Node pairToNode(org.luaj.vm2.LuaTable lt)
      Converts a Lua table pair ({num, num}) to `Node`.
    • pairsToNodes

      public static List<Node> pairsToNodes(org.luaj.vm2.LuaTable lt)
      Converts a Lua table of table pairs ({{int, int}, {int, int}}) to list of nodes (`List`).