lua/wrappers/game/lua_map.cpp
/**
	 * Adds a map region to this map.
	 *
	 * @param am.map_region region The map region to add.
	 * @returns boolean True if the map region was successfully added to this map.
	 */
Adds a map region to this map.
@param am.map_region region The map region to add.
@returns boolean True if the map region was successfully added to this map.
Adds a map region to this map . @param am . map_region region The map region to add . @returns boolean True if the map region was successfully added to this map .
int Map_add_map_region(lua_State *lua)
	{
		Map *map = castUData<Map>(lua, 1);
		if (map)
		{
			MapRegion *region = castUData<MapRegion>(lua, 2);
			if (region)
			{
				lua_pushboolean(lua, map->addMapRegion(region));
				return 1;
			}
			return LuaState::expectedArgs(lua, "add_map_region", "am.map_region region");
		}
		return LuaState::expectedContext(lua, "add_map_region", "am.map");
	}
int Map_add_map_region ( lua_State * lua ) { Map * map = castUData < Map > ( lua , 1 ) ; if ( map ) { MapRegion * region = castUData < MapRegion > ( lua , 2 ) ; if ( region ) { lua_pushboolean ( lua , map -> addMapRegion ( region ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds a map region to this map.
Adds a map region to this map .