29#include <OgreResourceGroupManager.h>
30#include <OgreScriptCompiler.h>
31#include <rapidjson/document.h>
36 public Ogre::ResourceLoadingListener,
37 public Ogre::ScriptCompilerListener
84 bool DeleteDiskFile(std::string
const& filename, std::string
const& rg_name);
87 bool LoadAndParseJson(std::string
const& filename, std::string
const& rg_name, rapidjson::Document& j_doc);
88 bool SerializeAndWriteJson(std::string
const& filename, std::string
const& rg_name, rapidjson::Document& j_doc);
93 Ogre::DataStreamPtr
resourceLoading(
const Ogre::String& name,
const Ogre::String& group, Ogre::Resource* resource)
override;
94 void resourceStreamOpened(
const Ogre::String& name,
const Ogre::String& group, Ogre::Resource* resource, Ogre::DataStreamPtr& dataStream)
override;
95 bool resourceCollision(Ogre::Resource* resource, Ogre::ResourceManager* resourceManager)
override;
98 bool handleEvent(Ogre::ScriptCompiler *compiler, Ogre::ScriptCompilerEvent *evt,
void *retval)
override;
Central state/object manager and communications hub.
A database of user-installed content alias 'mods' (vehicles, terrains...)
bool resourceCollision(Ogre::Resource *resource, Ogre::ResourceManager *resourceManager) override
bool m_base_resource_loaded
Ogre::DataStreamPtr resourceLoading(const Ogre::String &name, const Ogre::String &group, Ogre::Resource *resource) override
void AddResourcePack(ResourcePack const &resource_pack, std::string const &override_rgn="")
Loads resources if not already loaded.
bool handleEvent(Ogre::ScriptCompiler *compiler, Ogre::ScriptCompilerEvent *evt, void *retval) override
bool DeleteDiskFile(std::string const &filename, std::string const &rg_name)
bool LoadAndParseJson(std::string const &filename, std::string const &rg_name, rapidjson::Document &j_doc)
bool SerializeAndWriteJson(std::string const &filename, std::string const &rg_name, rapidjson::Document &j_doc)
void resourceStreamOpened(const Ogre::String &name, const Ogre::String &group, Ogre::Resource *resource, Ogre::DataStreamPtr &dataStream) override
void InitModCache(CacheValidity validity)
void InitContentManager()
std::string ListAllUserContent()
Used by ModCache for quick detection of added/removed content.
void LoadGameplayResources()
Checks GVar settings and loads required resources.
void InitManagedMaterials(std::string const &rg_name)
static const ResourcePack HYDRAX
static const ResourcePack WALLPAPERS
static const ResourcePack DASHBOARDS
static const ResourcePack OVERLAYS
static const ResourcePack PARTICLES
static const ResourcePack TEXTURES
static const ResourcePack RTSHADER
static const ResourcePack MESHES
const char * resource_group_name
ResourcePack(const char *name, const char *resource_group_name)
static const ResourcePack SOUNDS
static const ResourcePack FONTS
static const ResourcePack MYGUI
static const ResourcePack PSSM
static const ResourcePack BEAM_OBJECTS
static const ResourcePack AIRFOILS
static const ResourcePack SCRIPTS
static const ResourcePack SKYX
static const ResourcePack OGRE_CORE
static const ResourcePack CUBEMAPS
static const ResourcePack FLAGS
static const ResourcePack CAELUM
static const ResourcePack FAMICONS
static const ResourcePack MATERIALS
static const ResourcePack ICONS
static const ResourcePack PAGED