StendhalScripting/LuaAPI: Difference between revisions

Content deleted Content added
imported>AntumDeluge
game: added "game:setMusic" method
imported>AntumDeluge
arrays: clean up
Line 207:
 
Methods:
*; ''<span style="color:green;">arrays.toTable</span>(list)''
**: Converts a Java array or list to a Lua table.
**: <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 with contents of <code>list</code> added.
 
== grammar ==