|
|
@ -1,101 +1,96 @@
|
|
|
|
#define DF_VERSION 42004
|
|
|
|
#define DF_VERSION 42004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
|
|
|
|
// some headers required for a plugin. Nothing special, just the basics.
|
|
|
|
// some headers required for a plugin. Nothing special, just the basics.
|
|
|
|
|
|
|
|
#include "Console.h"
|
|
|
|
#include "Core.h"
|
|
|
|
#include "Core.h"
|
|
|
|
#include <Console.h>
|
|
|
|
#include "DataDefs.h"
|
|
|
|
#include <Export.h>
|
|
|
|
#include "Export.h"
|
|
|
|
#include <PluginManager.h>
|
|
|
|
#include "Hooks.h"
|
|
|
|
|
|
|
|
#include "MiscUtils.h"
|
|
|
|
|
|
|
|
#include "PluginManager.h"
|
|
|
|
|
|
|
|
#include "RemoteServer.h"
|
|
|
|
|
|
|
|
#include "TileTypes.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "SDL_events.h"
|
|
|
|
|
|
|
|
#include "SDL_keyboard.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DFhack specific headers
|
|
|
|
|
|
|
|
#include "modules/Buildings.h"
|
|
|
|
|
|
|
|
#include "modules/Gui.h"
|
|
|
|
|
|
|
|
#include "modules/Items.h"
|
|
|
|
|
|
|
|
#include "modules/MapCache.h"
|
|
|
|
|
|
|
|
#include "modules/Maps.h"
|
|
|
|
|
|
|
|
#include "modules/Materials.h"
|
|
|
|
|
|
|
|
#include "modules/Translation.h"
|
|
|
|
|
|
|
|
#include "modules/Units.h"
|
|
|
|
|
|
|
|
#include "modules/World.h"
|
|
|
|
|
|
|
|
|
|
|
|
// DF data structure definition headers
|
|
|
|
// DF data structure definition headers
|
|
|
|
#include "DataDefs.h"
|
|
|
|
#include "df/army.h"
|
|
|
|
#include "df/world.h"
|
|
|
|
#include "df/army_flags.h"
|
|
|
|
#include "df/ui.h"
|
|
|
|
#include "df/body_appearance_modifier.h"
|
|
|
|
#include "df/item.h"
|
|
|
|
#include "df/body_part_layer_raw.h"
|
|
|
|
#include "df/creature_raw.h"
|
|
|
|
|
|
|
|
#include "df/caste_raw.h"
|
|
|
|
|
|
|
|
#include "df/body_part_raw.h"
|
|
|
|
#include "df/body_part_raw.h"
|
|
|
|
|
|
|
|
#include "df/bp_appearance_modifier.h"
|
|
|
|
|
|
|
|
#include "df/building_axle_horizontalst.h"
|
|
|
|
|
|
|
|
#include "df/building_bridgest.h"
|
|
|
|
|
|
|
|
#include "df/building_def_furnacest.h"
|
|
|
|
|
|
|
|
#include "df/building_def_workshopst.h"
|
|
|
|
|
|
|
|
#include "df/building_rollersst.h"
|
|
|
|
|
|
|
|
#include "df/building_screw_pumpst.h"
|
|
|
|
|
|
|
|
#include "df/building_siegeenginest.h"
|
|
|
|
|
|
|
|
#include "df/building_water_wheelst.h"
|
|
|
|
|
|
|
|
#include "df/building_wellst.h"
|
|
|
|
|
|
|
|
#include "df/building_windmillst.h"
|
|
|
|
|
|
|
|
#include "df/builtin_mats.h"
|
|
|
|
|
|
|
|
#include "df/caste_raw.h"
|
|
|
|
|
|
|
|
#include "df/caste_raw.h"
|
|
|
|
|
|
|
|
#include "df/color_modifier_raw.h"
|
|
|
|
|
|
|
|
#include "df/creature_raw.h"
|
|
|
|
|
|
|
|
#include "df/creature_raw.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_color.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_color.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_pattern.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_pattern.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_shape.h"
|
|
|
|
|
|
|
|
#include "df/dfhack_material_category.h"
|
|
|
|
|
|
|
|
#include "df/enabler.h"
|
|
|
|
|
|
|
|
#include "df/graphic.h"
|
|
|
|
#include "df/historical_figure.h"
|
|
|
|
#include "df/historical_figure.h"
|
|
|
|
|
|
|
|
#include "df/item.h"
|
|
|
|
|
|
|
|
#include "df/itemdef.h"
|
|
|
|
#include "df/job_item.h"
|
|
|
|
#include "df/job_item.h"
|
|
|
|
#include "df/job_material_category.h"
|
|
|
|
#include "df/job_material_category.h"
|
|
|
|
#include "df/dfhack_material_category.h"
|
|
|
|
|
|
|
|
#include "df/matter_state.h"
|
|
|
|
|
|
|
|
#include "df/material_vec_ref.h"
|
|
|
|
|
|
|
|
#include "df/builtin_mats.h"
|
|
|
|
|
|
|
|
#include "df/map_block_column.h"
|
|
|
|
#include "df/map_block_column.h"
|
|
|
|
|
|
|
|
#include "df/material_vec_ref.h"
|
|
|
|
|
|
|
|
#include "df/matter_state.h"
|
|
|
|
|
|
|
|
#include "df/mental_attribute_type.h"
|
|
|
|
|
|
|
|
#include "df/physical_attribute_type.h"
|
|
|
|
#include "df/plant.h"
|
|
|
|
#include "df/plant.h"
|
|
|
|
#include "df/plant_raw_flags.h"
|
|
|
|
#include "df/plant_raw_flags.h"
|
|
|
|
|
|
|
|
#include "df/region_map_entry.h"
|
|
|
|
|
|
|
|
#include "df/tissue.h"
|
|
|
|
|
|
|
|
#include "df/ui.h"
|
|
|
|
|
|
|
|
#include "df/unit.h"
|
|
|
|
|
|
|
|
#include "df/viewscreen_choose_start_sitest.h"
|
|
|
|
|
|
|
|
#include "df/world.h"
|
|
|
|
|
|
|
|
#include "df/world_data.h"
|
|
|
|
|
|
|
|
#include "df/world_region.h"
|
|
|
|
|
|
|
|
#include "df/world_region_details.h"
|
|
|
|
|
|
|
|
|
|
|
|
#if DF_VERSION > 40001
|
|
|
|
#if DF_VERSION > 40001
|
|
|
|
#include "df/plant_tree_info.h"
|
|
|
|
#include "df/plant_tree_info.h"
|
|
|
|
#include "df/plant_tree_tile.h"
|
|
|
|
#include "df/plant_tree_tile.h"
|
|
|
|
#include "df/plant_growth.h"
|
|
|
|
#include "df/plant_growth.h"
|
|
|
|
#include "df/plant_growth_print.h"
|
|
|
|
#include "df/plant_growth_print.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#include "df/itemdef.h"
|
|
|
|
|
|
|
|
#include "df/building_def_workshopst.h"
|
|
|
|
|
|
|
|
#include "df/building_def_furnacest.h"
|
|
|
|
|
|
|
|
#include "df/building_wellst.h"
|
|
|
|
|
|
|
|
#include "df/building_water_wheelst.h"
|
|
|
|
|
|
|
|
#include "df/building_screw_pumpst.h"
|
|
|
|
|
|
|
|
#include "df/building_axle_horizontalst.h"
|
|
|
|
|
|
|
|
#include "df/building_windmillst.h"
|
|
|
|
|
|
|
|
#include "df/building_siegeenginest.h"
|
|
|
|
|
|
|
|
#include "df/building_rollersst.h"
|
|
|
|
|
|
|
|
#include "df/building_bridgest.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/descriptor_color.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_pattern.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_shape.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/physical_attribute_type.h"
|
|
|
|
|
|
|
|
#include "df/mental_attribute_type.h"
|
|
|
|
|
|
|
|
#include "df/color_modifier_raw.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_color.h"
|
|
|
|
|
|
|
|
#include "df/descriptor_pattern.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/region_map_entry.h"
|
|
|
|
|
|
|
|
#include "df/world_region_details.h"
|
|
|
|
|
|
|
|
#include "df/world_region.h"
|
|
|
|
|
|
|
|
#include "df/army.h"
|
|
|
|
|
|
|
|
#include "df/army_flags.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/unit.h"
|
|
|
|
|
|
|
|
#include "df/creature_raw.h"
|
|
|
|
|
|
|
|
#include "df/caste_raw.h"
|
|
|
|
|
|
|
|
#include "df/tissue.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/enabler.h"
|
|
|
|
|
|
|
|
#include "df/graphic.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/viewscreen_choose_start_sitest.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "df/bp_appearance_modifier.h"
|
|
|
|
|
|
|
|
#include "df/body_part_layer_raw.h"
|
|
|
|
|
|
|
|
#include "df/body_appearance_modifier.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DFhack specific headers
|
|
|
|
|
|
|
|
#include "modules/Maps.h"
|
|
|
|
|
|
|
|
#include "modules/MapCache.h"
|
|
|
|
|
|
|
|
#include "modules/Materials.h"
|
|
|
|
|
|
|
|
#include "modules/Gui.h"
|
|
|
|
|
|
|
|
#include "modules/Translation.h"
|
|
|
|
|
|
|
|
#include "modules/Items.h"
|
|
|
|
|
|
|
|
#include "modules/Buildings.h"
|
|
|
|
|
|
|
|
#include "modules/Units.h"
|
|
|
|
|
|
|
|
#include "modules/World.h"
|
|
|
|
|
|
|
|
#include "TileTypes.h"
|
|
|
|
|
|
|
|
#include "MiscUtils.h"
|
|
|
|
|
|
|
|
#include "Hooks.h"
|
|
|
|
|
|
|
|
#include "SDL_events.h"
|
|
|
|
|
|
|
|
#include "SDL_keyboard.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "RemoteFortressReader.pb.h"
|
|
|
|
#include "RemoteFortressReader.pb.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "RemoteServer.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace DFHack;
|
|
|
|
using namespace DFHack;
|
|
|
|
using namespace df::enums;
|
|
|
|
using namespace df::enums;
|
|
|
|