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:
@@ -73,14 +73,14 @@ static int unloadRoom(lua_State* L) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const luaL_Reg roommgrlib[] = {
|
||||
{"getroom",getRoom},
|
||||
{"createroom",createRoom},
|
||||
{"unloadroom",unloadRoom},
|
||||
static const luaL_Reg roomMgrLib[] = {
|
||||
{"GetRoom",getRoom},
|
||||
{"CreateRoom",createRoom},
|
||||
{"UnloadRoom",unloadRoom},
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
LUAMOD_API int luaopen_roommgrapi(lua_State* L) {
|
||||
luaL_newlib(L, roommgrlib);
|
||||
LUAMOD_API int openRoomMgrAPI(lua_State* L) {
|
||||
luaL_newlib(L, roomMgrLib);
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user