More field types, just the headers for now

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@21 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-12 20:25:08 +00:00
parent b13d0b81ae
commit ca5d78c101
11 changed files with 420 additions and 6 deletions
+47
View File
@@ -0,0 +1,47 @@
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2006 Twan van Laarhoven |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_DATA_FIELD_IMAGE
#define HEADER_DATA_FIELD_IMAGE
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <data/field.hpp>
#include <script/scriptable.hpp>
// ----------------------------------------------------------------------------- : ImageField
/// A field for image values
class ImageField : public Field {
public:
// no extra data
private:
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : ImageStyle
/// The Style for a ImageField
class ImageStyle : public Style {
public:
Scriptable<String> mask_filename; ///< Filename for a mask image
private:
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : ImageValue
/// The Value in a ImageField, i.e. an image
class ImageValue : public Value {
public:
String filename; ///< Filename of the image (in the current package)
private:
DECLARE_REFLECTION();
};
// ----------------------------------------------------------------------------- : EOF
#endif