Go to the documentation of this file.
13 #ifndef RESOURCESMANAGER_H
14 #define RESOURCESMANAGER_H
46 template<
class A,
class W>
void treasureModified(treasurelist *treasure)
ModifiedAssetsManager< quest_definition > myQuests
virtual void assetDefined(const Animations *asset, const std::string &filename) override
const std::map< std::string, std::set< const T * > > & origins() const
AssetWrapperManager< quest_step_definition, QuestStepWrapper > myWrappedQuestSteps
LicenseManager * licenseManager()
AssetWrapperManager< Face, FaceWrapper > myWrappedFaces
AssetWrapper * wrap(artifact *art, AssetWrapper *parent)
const recipe * getRecipe(int ingredients, const QString &name) const
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
void questModified(quest_definition *quest)
virtual void assetDefined(const quest_definition *asset, const std::string &filename) override
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
ModifiedAssetsManager< artifact > myArtifacts
bool hasPendingChanges() const
virtual void assetDefined(const archetype *arch, const std::string &filename) override
std::vector< std::string > questFiles() const
AssetWrapperManager< recipelist, RecipeListWrapper > myWrappedRecipeLists
AssetWrapper * wrap(treasure *tr, AssetWrapper *parent)
AssetWrapperManager< artifact, ArtifactWrapper > myWrappedArtifacts
std::vector< std::string > files() const
std::string originOf(const T *asset) const
AssetWrapperManager< GeneralMessage, GeneralMessageWrapper > myWrappedMessages
LicenseManager myLicenseManager
static void archetypeUse(const archetype *item, CREMapInformationManager *store, AssetUseCallback callback)
int recipeMaxIngredients() const
std::string originOf(const artifact *art) const
CREMapInformationManager * myMapInformationManager
W * wrap(A *asset, AssetWrapper *parent, ResourcesManager *resources)
ModifiedAssetsManager< GeneralMessage > myGeneralMessages
CREMapInformationManager * getMapInformationManager()
AssetWrapper * wrap(quest_step_definition *step, AssetWrapper *parent)
std::string originOf(const archetype *arch) const
AssetWrapper * wrap(GeneralMessage *message, AssetWrapper *parent)
ObjectWrapper * wrap(object *ob, AssetWrapper *parent)
AssetWrapper * wrap(recipe *rc, AssetWrapper *parent)
const std::map< std::string, std::set< const archetype * > > & origins() const
std::vector< std::string > archetypeFiles() const
std::string originOf(const Face *face) const
void saveGeneralMessages()
QList< QHash< QString, recipe * > > myRecipes
void setMapInformationManager(CREMapInformationManager *mapInformationManager)
AssetWrapperManager< artifactlist, ArtifactListWrapper > myWrappedArtifactLists
std::function< bool(ArchetypeUse use, const archetype *, const treasurelist *, const CREMapInformation *, recipe *)> AssetUseCallback
AssetWrapper * wrap(artifactlist *al, AssetWrapper *parent)
const std::map< std::string, std::set< const quest_definition * > > & questOrigins() const
ModifiedAssetsManager< Face > myFaces
AssetWrapperManager< archetype, ArchetypeWrapper > myWrappedArchetypes
QStringList recipes(int count) const
AssetWrapperManager< treasurelist, TreasureListWrapper > myWrappedTreasureLists
AssetWrapper * wrap(Face *face, AssetWrapper *parent)
virtual void assetDefined(const GeneralMessage *asset, const std::string &filename) override
AssetWrapper * wrap(region *reg, AssetWrapper *parent)
void archetypeModified(archetype *arch)
AssetWrapperManager< region, RegionWrapper > myWrappedRegions
void assetModified(T *asset)
AssetWrapper * wrap(recipelist *list, AssetWrapper *parent)
AssetWrapperManager< face_sets, FacesetsWrapper > myWrappedFacesets
void remove(treasure *tr)
void assetDefined(const T *asset, const std::string &filename)
virtual void assetDefined(const artifact *asset, const std::string &filename) override
AssetWrapper * wrap(treasurelist *tr, AssetWrapper *parent)
AssetWrapperManager< Animations, AnimationWrapper > myWrappedAnimations
QHash< A *, W * > myWrappedAssets
void generalMessageModified(GeneralMessage *message)
virtual void assetDefined(const Face *asset, const std::string &filename) override
ModifiedAssetsManager< Animations > myAnimations
AssetWrapperManager< treasure, TreasureWrapper > myWrappedTreasures
ModifiedAssetsManager< archetype > myArchetypes
AssetWrapperManager< recipe, RecipeWrapper > myWrappedRecipes
AssetWrapperManager< object, ObjectWrapper > myWrappedObjects
ModifiedAssetsManager< treasurelist > myTreasures
std::string originOfQuest(const quest_definition *quest) const
bool hasPendingChanges() const
virtual void assetDefined(const treasurelist *asset, const std::string &filename) override
virtual ~ResourcesManager()
AssetWrapper * wrap(face_sets *fs, AssetWrapper *parent)
AssetWrapper * wrap(Animations *anim, AssetWrapper *parent)
AssetWrapper * wrap(quest_definition *quest, AssetWrapper *parent)
AssetWrapperManager< quest_definition, QuestWrapper > myWrappedQuests