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:
@@ -65,15 +65,15 @@ static int getMapHeight(lua_State* L) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const luaL_Reg generatorlib[] = {
|
||||
{"gettype", getMapType},
|
||||
{"getchunk", getChunk},
|
||||
{"getmapwidth", getMapWidth},
|
||||
{"getmapheight", getMapHeight},
|
||||
static const luaL_Reg generatorLib[] = {
|
||||
{"GetMapType", getMapType},
|
||||
{"GetChunk", getChunk},
|
||||
{"GetMapWidth", getMapWidth},
|
||||
{"GetMapHeight", getMapHeight},
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
LUAMOD_API int luaopen_generatorapi(lua_State* L) {
|
||||
luaL_newlib(L, generatorlib);
|
||||
LUAMOD_API int openGeneratorAPI(lua_State* L) {
|
||||
luaL_newlib(L, generatorLib);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user