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