feat: add card regions to declare image slice regions for DFCs

This commit is contained in:
Brendan Hagan
2022-08-13 22:43:42 -04:00
parent 05855b812a
commit 6435055d53
15 changed files with 92 additions and 4 deletions
+34
View File
@@ -0,0 +1,34 @@
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) Twan van Laarhoven and the other MSE developers |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#pragma once
#include <util/prec.hpp>
#include <util/reflect.hpp>
#include <script/scriptable.hpp>
DECLARE_POINTER_TYPE(CardRegion);
class CardRegion : public IntrusivePtrBase<CardRegion> {
public:
CardRegion();
virtual ~CardRegion();
String name;
double x, y;
int width, height;
private:
DECLARE_REFLECTION();
};
inline String type_name(const CardRegion&) {
return _TYPE_("card region");
}
inline String type_name(const vector<CardRegionP>&) {
return _TYPE_("card regions");
}