Added character API

This commit is contained in:
Kayne Ruse
2015-02-17 22:10:07 +11:00
parent 2cc7260552
commit b273b4c04a
5 changed files with 133 additions and 5 deletions
+3 -2
View File
@@ -37,6 +37,7 @@
#include "lua.hpp"
#include "entity_api.hpp"
#include "character_system_api.hpp"
#include "map_system_api.hpp"
#include "monster_system_api.hpp"
#include "room_system_api.hpp"
@@ -58,10 +59,10 @@ static const luaL_Reg loadedlibs[] = {
{NULL, NULL}
};
//these libs are preloaded and must be required before used
static const luaL_Reg preloadedlibs[] = {
{TORTUGA_ENTITY_API, openEntityAPI},
{TORTUGA_ENTITY_API, openEntityAPI}, //required by derived classes
{TORTUGA_CHARACTER_SYSTEM_API, openCharacterSystemAPI},
{TORTUGA_MAP_SYSTEM_API, openMapSystemAPI},
{TORTUGA_MONSTER_SYSTEM_API, openMonsterSystemAPI},
{TORTUGA_ROOM_SYSTEM_API, openRoomSystemAPI},