X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Freferencecache.h;h=92d5dc897c9500bb8473a31b687807f3e55fd4a1;hb=e6694e8d82fa10ea80202451e7ad0be374d3259b;hp=eac4fc7cc291e35b9ba55dd29d5ee30cb4520ce5;hpb=e4287c28bb2dafedc81c66e63951d947cfbeb225;p=xonotic%2Fnetradiant.git diff --git a/radiant/referencecache.h b/radiant/referencecache.h index eac4fc7c..92d5dc89 100644 --- a/radiant/referencecache.h +++ b/radiant/referencecache.h @@ -24,19 +24,23 @@ /// \brief Saves all open resource references if they differ from the version on disk. void SaveReferences(); + /// \brief Flushes the cache of resource references. All resource references must be released before calling this. void FlushReferences(); + /// \brief Reloads all resource references that differ from the version on disk. void RefreshReferences(); #include "iscenegraph.h" -namespace scene -{ -class Node; + +namespace scene { + class Node; } class MapFormat; -typedef void ( *GraphTraversalFunc )( scene::Node& root, const scene::Traversable::Walker& walker ); -bool MapResource_saveFile( const MapFormat& format, scene::Node& root, GraphTraversalFunc traverse, const char* filename ); +typedef void ( *GraphTraversalFunc )(scene::Node &root, const scene::Traversable::Walker &walker); + +bool +MapResource_saveFile(const MapFormat &format, scene::Node &root, GraphTraversalFunc traverse, const char *filename); #endif