mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
25a301b070
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1140 0fc631ac-6414-0410-93d0-97cfa31319b6
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
|
//| Copyright: (C) 2001 - 2008 Twan van Laarhoven and "coppro" |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
#ifndef HEADER_DATA_ADD_CARDS_SCRIPT
|
|
#define HEADER_DATA_ADD_CARDS_SCRIPT
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
#include <script/scriptable.hpp>
|
|
|
|
class Set;
|
|
DECLARE_POINTER_TYPE(Card);
|
|
|
|
// ----------------------------------------------------------------------------- : AddCardsScript
|
|
|
|
/// A script to add one or more cards to a set
|
|
class AddCardsScript : public IntrusivePtrBase<AddCardsScript> {
|
|
public:
|
|
String name;
|
|
String description;
|
|
Scriptable<bool> enabled;
|
|
OptionalScript script;
|
|
|
|
/// Perform the script; return the cards (if any)
|
|
void perform(Set& set, vector<CardP>& out);
|
|
/// Perform the script; add cards to the set
|
|
void perform(Set& set);
|
|
|
|
DECLARE_REFLECTION();
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------- : EOF
|
|
#endif
|