StendhalScripting/LuaAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
game: added "game:setMusic" method
imported>AntumDeluge
arrays: clean up
Line 207: Line 207:


Methods:
Methods:
* ''<span style="color:green;">arrays.toTable</span>(list)''
; ''<span style="color:green;">arrays.toTable</span>(list)''
** Converts a Java array or list to a Lua table.
: Converts a Java array or list to a Lua table.
** <span style="color:darkblue; font-style:italic;">list:</span> Java array or list.
: <span style="color:darkblue; font-style:italic;">list:</span> Java array or [https://docs.oracle.com/javase/8/docs/api/java/util/List.html list].
** returns: New Lua table.
: returns: New Lua table with contents of <code>list</code> added.


== grammar ==
== grammar ==