X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Freferencecache.h;h=92d5dc897c9500bb8473a31b687807f3e55fd4a1;hp=eac4fc7cc291e35b9ba55dd29d5ee30cb4520ce5;hb=9dfae1c9b270ee369c6362903a9205b30751b95f;hpb=0a6d5683b0cfa1a0bd7ef64bada105dbe4ddd6e1 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