Created the room system's API, and tweaked some other APIs

This commit is contained in:
Kayne Ruse
2014-11-06 22:42:03 +11:00
parent 73d9095604
commit 06e027710f
6 changed files with 104 additions and 16 deletions
+2 -7
View File
@@ -41,8 +41,7 @@
#endif
#include "map_system_api.hpp"
#include "room_api.hpp"
#include "room_manager_api.hpp"
#include "room_system_api.hpp"
//these libs are loaded by lua.c and are readily available to any Lua program
static const luaL_Reg loadedlibs[] = {
@@ -57,11 +56,6 @@ static const luaL_Reg loadedlibs[] = {
{LUA_BITLIBNAME, luaopen_bit32},
{LUA_MATHLIBNAME, luaopen_math},
{LUA_DBLIBNAME, luaopen_debug},
//Tortuga's API
{TORTUGA_ROOM_NAME, openRoomAPI},
{TORTUGA_ROOM_MANAGER_NAME, openRoomManagerAPI},
{NULL, NULL}
};
@@ -69,6 +63,7 @@ static const luaL_Reg loadedlibs[] = {
//these libs are preloaded and must be required before used
static const luaL_Reg preloadedlibs[] = {
{TORTUGA_MAP_SYSTEM_API, openMapSystemAPI},
{TORTUGA_ROOM_SYSTEM_API, openRoomSystemAPI},
{NULL, NULL}
};