build: Add support for unity builds

This commit is contained in:
WerWolv
2023-11-30 10:22:15 +01:00
parent 09904b77eb
commit e370fdb0fc
25 changed files with 77 additions and 79 deletions

View File

@@ -3,11 +3,7 @@
namespace hex::dp {
namespace {
int s_idCounter = 1;
}
int Attribute::s_idCounter = 1;
Attribute::Attribute(IOType ioType, Type type, std::string unlocalizedName) : m_id(s_idCounter++), m_ioType(ioType), m_type(type), m_unlocalizedName(std::move(unlocalizedName)) {

View File

@@ -3,11 +3,7 @@
namespace hex::dp {
namespace {
int s_idCounter = 1;
}
int Link::s_idCounter = 1;
Link::Link(int from, int to) : m_id(s_idCounter++), m_from(from), m_to(to) { }

View File

@@ -7,11 +7,7 @@
namespace hex::dp {
namespace {
int s_idCounter = 1;
}
int Node::s_idCounter = 1;
Node::Node(std::string unlocalizedTitle, std::vector<Attribute> attributes) : m_id(s_idCounter++), m_unlocalizedTitle(std::move(unlocalizedTitle)), m_attributes(std::move(attributes)) {
for (auto &attr : this->m_attributes)