Changed the naming conventions (read more)
I've changed some naming concentions in the lua APIs. I've also made a few other tweaks, like region_pager_api.cpp delegating to the passed RegionPager object. This won't explicitly run, becuase there's still a few more changes needed.
This commit is contained in:
@@ -35,15 +35,27 @@ static int getGenerator(lua_State* L) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int onCreate(lua_State* L) {
|
||||
//TODO: onCreate()
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int onUnload(lua_State* L) {
|
||||
//TODO: onUnload()
|
||||
return 0;
|
||||
}
|
||||
|
||||
//TODO: parameters
|
||||
|
||||
static const luaL_Reg roomlib[] = {
|
||||
{"getpager",getPager},
|
||||
{"getgenerator",getGenerator},
|
||||
static const luaL_Reg roomLib[] = {
|
||||
{"GetPager",getPager},
|
||||
{"GetGenerator",getGenerator},
|
||||
{"OnCreate", onCreate},
|
||||
{"OnUnload", onUnload},
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
LUAMOD_API int luaopen_roomapi(lua_State* L) {
|
||||
luaL_newlib(L, roomlib);
|
||||
LUAMOD_API int openRoomAPI(lua_State* L) {
|
||||
luaL_newlib(L, roomLib);
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user