mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
feat: add card regions to declare image slice regions for DFCs
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user