cards dependencies, clearing order cache

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@134 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-21 19:54:18 +00:00
parent f522cb9be6
commit e8f580b691
6 changed files with 54 additions and 7 deletions
+5
View File
@@ -33,6 +33,11 @@ class Dependency {
DependencyType type : 5; ///< Type of the dependent script
size_t index : 27; ///< index into an IndexMap
void* data; ///< Extra pointer data
/// This dependency, but dependent on all cards instead of just one
inline Dependency makeCardIndependend() const {
return Dependency(type == DEP_CARD_FIELD ? DEP_CARDS_FIELD : type, index, data);
}
};
// ----------------------------------------------------------------------------- : EOF