RigsofRods
Soft-body Physics Simulation
Data Structures | Namespaces | Macros | Enumerations
CacheSystem.h File Reference

A database of user-installed content alias 'mods' (vehicles, terrains...) More...

#include "Application.h"
#include "Language.h"
#include "RefCountingObject.h"
#include "RefCountingObjectPtr.h"
#include "RigDef_File.h"
#include "SimData.h"
#include <Ogre.h>
#include <rapidjson/document.h>
#include <string>
#include <set>
+ Include dependency graph for CacheSystem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RoR::AuthorInfo
 
class  RoR::CacheEntry
 
struct  RoR::CacheQueryResult
 
struct  RoR::CacheQuery
 
struct  RoR::CreateProjectRequest
 Creates subdirectory in 'My Games\Rigs of Rods\projects', pre-populates it with files and adds modcache entry. More...
 
struct  RoR::ModifyProjectRequest
 
class  RoR::CacheSystem
 A content database MOTIVATION: RoR users usually have A LOT of content installed. More...
 

Namespaces

 RoR
 

Macros

#define CACHE_FILE   "mods.cache"
 
#define CACHE_FILE_FORMAT   14
 
#define CACHE_FILE_FRESHNESS   86400
 

Enumerations

enum  RoR::CacheCategoryId {
  RoR::CID_None = 0, RoR::CID_Projects = 8000, RoR::CID_Tuneups = 8001, RoR::CID_Max = 9000,
  RoR::CID_Unsorted = 9990, RoR::CID_All = 9991, RoR::CID_Fresh = 9992, RoR::CID_Hidden = 9993,
  RoR::CID_SearchResults = 9994
}
 
enum  RoR::CacheSearchMethod {
  RoR::CacheSearchMethod::NONE, RoR::CacheSearchMethod::FULLTEXT, RoR::CacheSearchMethod::GUID, RoR::CacheSearchMethod::AUTHORS,
  RoR::CacheSearchMethod::WHEELS, RoR::CacheSearchMethod::FILENAME
}
 
enum  RoR::CacheValidity { RoR::CacheValidity::UNKNOWN, RoR::CacheValidity::VALID, RoR::CacheValidity::NEEDS_UPDATE, RoR::CacheValidity::NEEDS_REBUILD }
 
enum  RoR::CreateProjectRequestType { RoR::CreateProjectRequestType::NONE, RoR::CreateProjectRequestType::DEFAULT, RoR::CreateProjectRequestType::SAVE_TUNEUP }
 
enum  RoR::ModifyProjectRequestType {
  RoR::ModifyProjectRequestType::NONE, RoR::ModifyProjectRequestType::TUNEUP_USE_ADDONPART_SET, RoR::ModifyProjectRequestType::TUNEUP_USE_ADDONPART_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_PROP_SET,
  RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_PROP_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_FLEXBODY_SET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_FLEXBODY_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCED_WHEEL_SIDE_SET,
  RoR::ModifyProjectRequestType::TUNEUP_FORCED_WHEEL_SIDE_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_FLARE_SET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_FLARE_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_EXHAUST_SET,
  RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_EXHAUST_RESET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_MANAGEDMAT_SET, RoR::ModifyProjectRequestType::TUNEUP_FORCEREMOVE_MANAGEDMAT_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_PROP_SET,
  RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_PROP_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_FLEXBODY_SET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_FLEXBODY_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_WHEEL_SET,
  RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_WHEEL_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_FLARE_SET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_FLARE_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_EXHAUST_SET,
  RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_EXHAUST_RESET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_MANAGEDMAT_SET, RoR::ModifyProjectRequestType::TUNEUP_PROTECTED_MANAGEDMAT_RESET, RoR::ModifyProjectRequestType::PROJECT_LOAD_TUNEUP,
  RoR::ModifyProjectRequestType::PROJECT_RESET_TUNEUP
}
 

Detailed Description

A database of user-installed content alias 'mods' (vehicles, terrains...)

Author
Thomas Fischer, 21th of May 2008
Petr Ohlidal, 2018

Definition in file CacheSystem.h.

Macro Definition Documentation

◆ CACHE_FILE

#define CACHE_FILE   "mods.cache"

Definition at line 41 of file CacheSystem.h.

◆ CACHE_FILE_FORMAT

#define CACHE_FILE_FORMAT   14

Definition at line 42 of file CacheSystem.h.

◆ CACHE_FILE_FRESHNESS

#define CACHE_FILE_FRESHNESS   86400

Definition at line 43 of file CacheSystem.h.