lua/wrappers/game/lua_engine.cpp
/**
	 * @class
	 * The engine class provides core functionality that has affects
	 * across multiple game instances.
	 */
@class
The engine class provides core functionality that has affects
across multiple game instances.
@class The engine class provides core functionality that has affects across multiple game instances .
int Engine_register(lua_State *lua)
	{
		luaL_Reg regs[] = 
		{
			{ "game", Engine_game },
			{ "grid_size", Engine_grid_size },
			{ "using_tile_set", Engine_using_tile_set },
			{ "clear_using_tile_set", Engine_clear_using_tile_set },
			{ "tile", Engine_tile },
			{ "tile_set", Engine_tile_set },
			{ "add_tile_set", Engine_add_tile_set },
			{ "top_level_tile_set", Engine_top_level_tile_set },
			{ "game_object", Engine_get_by_game_id },
			{ "register_game_object", Engine_register_game_object },
			{ "deregister_game_object", Engine_deregister_game_object },
			{ "add_race", Engine_add_race },
			{ "remove_race", Engine_remove_race },
			{ "race", Engine_race },
			{ "unknown_race", Engine_unknown_race },
			{ "add_tile_type", Engine_add_tile_type },
			{ "tile_type", Engine_tile_type },
			{ "bgm", Engine_bgm },
			{ nullptr, nullptr }
		};
		luaL_newmetatable(lua, Engine::LUA_TABLENAME);
		luaL_setfuncs(lua, regs, 0);
		lua_pushvalue(lua, -1);
		lua_setfield(lua, -1, "__index");
		return 1;
	}
int Engine_register ( lua_State * lua ) { luaL_Reg regs [ ] = { { " " , Engine_game } , { " " , Engine_grid_size } , { " " , Engine_using_tile_set } , { " " , Engine_clear_using_tile_set } , { " " , Engine_tile } , { " " , Engine_tile_set } , { " " , Engine_add_tile_set } , { " " , Engine_top_level_tile_set } , { " " , Engine_get_by_game_id } , { " " , Engine_register_game_object } , { " " , Engine_deregister_game_object } , { " " , Engine_add_race } , { " " , Engine_remove_race } , { " " , Engine_race } , { " " , Engine_unknown_race } , { " " , Engine_add_tile_type } , { " " , Engine_tile_type } , { " " , Engine_bgm } , { nullptr , nullptr } } ; luaL_newmetatable ( lua , Engine :: LUA_TABLENAME ) ; luaL_setfuncs ( lua , regs , 0 ) ; lua_pushvalue ( lua , -1 ) ; lua_setfield ( lua , -1 , " " ) ; return 1 ; }
@class
 The engine class provides core functionality that has affects
 across multiple game instances.
@class The engine class provides core functionality that has affects across multiple game instances .