-
Notifications
You must be signed in to change notification settings - Fork 54
/
GameBuildings.h
19 lines (15 loc) · 787 Bytes
/
GameBuildings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "common.h"
#include "BuildingConfiguration.h"
/*
* extension to building_type enum from DFHack
*/
#define BUILDINGTYPE_NA df::building_type::NONE
#define BUILDINGTYPE_TREE (df::building_type) (ENUM_LAST_ITEM(building_type)+1)
#define BUILDINGTYPE_BLACKBOX (df::building_type) (ENUM_LAST_ITEM(building_type)+2)
int getBuildingSprite(DFHack::Buildings::t_building &building, bool mirrored);
void ReadBuildingsToSegment(DFHack::Core& DF, WorldSegment* segment);
void MergeBuildingsToSegment(std::vector<DFHack::Buildings::t_building>* buildings, WorldSegment* segment);
void loadBuildingSprites( Tile* b);
void ReadBuildings(DFHack::Core& DF, std::vector<DFHack::Buildings::t_building>* buildingHolder);
dirTypes findWallCloseTo(WorldSegment* segment, Tile* b);