add blueprint tests
This commit is contained in:
22
src/lib/core/Blueprint.h
Normal file
22
src/lib/core/Blueprint.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <QPoint>
|
||||
#include <QString>
|
||||
|
||||
#include "BuildingType.h"
|
||||
#include "Rotation.h"
|
||||
|
||||
struct BlueprintBuilding
|
||||
{
|
||||
BuildingType type;
|
||||
Rotation rotation;
|
||||
QPoint offset; // tile offset from bounding-box center (floor for even sizes)
|
||||
};
|
||||
|
||||
struct Blueprint
|
||||
{
|
||||
QString name;
|
||||
std::vector<BlueprintBuilding> buildings;
|
||||
};
|
||||
Reference in New Issue
Block a user