Ejemplo n.º 1
0
		/*!
		 * \brief
		 * Unloads the currently loaded map part definitions.
		 * 
		 * Unloads the currently loaded map part definitions.
		 */
		static void UnloadMapPartDefinitions()
		{
			// loop through all of the map part definition lists
			for(auto& list : g_map_part_definition_lists)
			{
				// delete the first element in the lists until they are empty
				c_map_element* current_element = nullptr;
				while(current_element = list.second.GetDefinitionByIndex(0))
					RemoveMapDefinition(list.second, current_element);
			}

			g_map_part_definition_lists.clear();
		}
Ejemplo n.º 2
0
		/*!
		 * \brief
		 * Unloads the currently loaded map part definitions.
		 * 
		 * Unloads the currently loaded map part definitions.
		 */
		static void UnloadMapPartDefinitions()
		{
			// lopo through all of the map part definition lists
			for(int i = 0; i < k_definition_list_count; i++)
			{
				c_map_part_definition_list& list = g_map_part_definition_lists[i];

				// delete the first element in the lists until they are empty
				c_map_element* current_element = NULL;
				while(current_element = list.GetDefinitionByIndex(0))
					RemoveMapDefinition(list, current_element);
			}
		}