mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Dependency following now works
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@95 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -31,6 +31,14 @@ String Card::identification() const {
|
||||
return _("TODO");
|
||||
}
|
||||
|
||||
void mark_dependency_member(const CardP& card, const String& name, const Dependency& dep) {
|
||||
// Find field with that name
|
||||
IndexMap<FieldP,ValueP>::const_iterator it = card->data.find(name);
|
||||
if (it != card->data.end()) {
|
||||
(*it)->fieldP->dependent_scripts.push_back(dep);
|
||||
}
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(Card) {
|
||||
REFLECT(stylesheet);
|
||||
REFLECT(notes);
|
||||
|
||||
Reference in New Issue
Block a user