Crossfire Server, Trunk
|
#include <ModifiedAssetsManager.h>
Public Member Functions | |
void | assetDefined (const T *asset, const std::string &filename) |
void | assetModified (T *asset) |
std::vector< T * > | dirtyAssetsWithNoOrigin () const |
std::vector< std::string > | files () const |
bool | hasPendingChanges () const |
ModifiedAssetsManager (AssetWriter< T > *writer) | |
std::string | originOf (const T *asset) const |
const std::map< std::string, std::set< const T * > > & | origins () const |
void | saveModifiedAssets () |
virtual | ~ModifiedAssetsManager () |
Protected Member Functions | |
void | write (const std::string &filename, std::set< const T * > assets) |
Private Attributes | |
std::set< T * > | myDirty |
std::map< std::string, std::set< const T * > > | myOrigins |
AssetWriter< T > * | myWriter |
Definition at line 24 of file ModifiedAssetsManager.h.
|
inline |
Definition at line 26 of file ModifiedAssetsManager.h.
|
inlinevirtual |
Definition at line 27 of file ModifiedAssetsManager.h.
|
inline |
Definition at line 48 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::assetDefined(), and ResourcesManager::saveTreasures().
|
inline |
Definition at line 55 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::archetypeModified(), ResourcesManager::generalMessageModified(), ResourcesManager::questModified(), ResourcesManager::treasureModified(), and ResourcesManager::wrap().
|
inline |
Return the list of modified assets which has no origin defined.
Definition at line 75 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::saveTreasures().
|
inline |
Definition at line 31 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::archetypeFiles(), ModifiedAssetsManager< Animations >::files(), ResourcesManager::questFiles(), and ResourcesManager::saveTreasures().
|
inline |
Definition at line 69 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::hasPendingChanges().
|
inline |
Definition at line 39 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::originOf(), and ResourcesManager::originOfQuest().
|
inline |
Definition at line 29 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::origins(), and ResourcesManager::questOrigins().
|
inline |
Definition at line 57 of file ModifiedAssetsManager.h.
Referenced by ResourcesManager::saveArchetypes(), ResourcesManager::saveArtifacts(), ResourcesManager::saveGeneralMessages(), ResourcesManager::saveQuests(), and ResourcesManager::saveTreasures().
|
inlineprotected |
Definition at line 84 of file ModifiedAssetsManager.h.
Referenced by ModifiedAssetsManager< Animations >::saveModifiedAssets().
|
private |
Definition at line 102 of file ModifiedAssetsManager.h.
Referenced by ModifiedAssetsManager< Animations >::assetModified(), ModifiedAssetsManager< Animations >::dirtyAssetsWithNoOrigin(), ModifiedAssetsManager< Animations >::hasPendingChanges(), and ModifiedAssetsManager< Animations >::saveModifiedAssets().
|
private |
Definition at line 101 of file ModifiedAssetsManager.h.
Referenced by ModifiedAssetsManager< Animations >::assetDefined(), ModifiedAssetsManager< Animations >::files(), ModifiedAssetsManager< Animations >::originOf(), ModifiedAssetsManager< Animations >::origins(), and ModifiedAssetsManager< Animations >::saveModifiedAssets().
|
private |
Definition at line 100 of file ModifiedAssetsManager.h.
Referenced by ModifiedAssetsManager< Animations >::write(), and ModifiedAssetsManager< Animations >::~ModifiedAssetsManager().