forked from DFHack/stonesense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildingConfiguration.h
More file actions
36 lines (33 loc) · 872 Bytes
/
BuildingConfiguration.h
File metadata and controls
36 lines (33 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "common.h"
#include "ConditionalSprite.h"
class BuildingConfiguration
{
public:
int32_t game_type;
int32_t game_subtype;
int32_t game_custom;
uint32_t width, height;
std::string name;
bool canBeFloating;
bool canBeAnySize;
std::unique_ptr<SpriteNode> sprites;
BuildingConfiguration(std::string name, int game_type, int game_subtype, int32_t custom) :
game_type{ game_type },
game_subtype{ game_subtype },
game_custom{ custom },
width{ 1 },
height{ 1 },
name{ name },
canBeFloating{ false },
canBeAnySize{ false },
sprites{ nullptr }
{ }
BuildingConfiguration() :
BuildingConfiguration{ "", -1, -1, -1 }
{ }
~BuildingConfiguration()
{
//cant delete bc.sprites here- screws up BCs copy semantics
}
};