RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::CacheEntry Class Reference

#include <CacheSystem.h>

+ Inheritance diagram for RoR::CacheEntry:
+ Collaboration diagram for RoR::CacheEntry:

Public Member Functions

 CacheEntry ()
 default constructor resets the data. More...
 
 ~CacheEntry ()
 
- Public Member Functions inherited from RefCountingObject< CacheEntry >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Data Fields

CacheEntryID_t number
 Sequential number, assigned internally, used by Selector-GUI. More...
 
Ogre::String fpath
 filepath relative to the .zip file More...
 
Ogre::String fname
 filename More...
 
Ogre::String fname_without_uid
 filename More...
 
Ogre::String fext
 file's extension More...
 
Ogre::String dname
 name parsed from the file More...
 
int categoryid
 category id More...
 
Ogre::String categoryname
 category name More...
 
std::time_t addtimestamp
 timestamp when this file was added to the cache More...
 
Ogre::String uniqueid
 file's unique id More...
 
Ogre::String guid
 global unique id; Type "addonpart" leaves this empty and uses addonpart_guids; Always lowercase. More...
 
int version
 file's version More...
 
std::string resource_bundle_type
 Archive type recognized by OGRE resource system: 'FileSystem' or 'Zip'. More...
 
std::string resource_bundle_path
 Path of ZIP or directory which contains the media. Shared between CacheEntries, loaded only once. More...
 
std::time_t filetime
 filetime More...
 
bool deleted
 is this mod deleted? More...
 
int usagecounter
 how much it was used already More...
 
std::vector< AuthorInfoauthors
 authors More...
 
Ogre::String filecachename
 preview image filename More...
 
Ogre::String resource_group
 Resource group of the loaded bundle. Empty if not loaded yet. More...
 
RigDef::DocumentPtr actor_def
 Cached actor definition (aka truckfile) after first spawn. More...
 
std::shared_ptr< RoR::SkinDefskin_def
 Cached skin info, added on first use or during cache rebuild. More...
 
RoR::TuneupDefPtr tuneup_def
 Cached tuning info, added on first use or during cache rebuild. More...
 
RoR::TuneupDefPtr addonpart_data_only
 Cached addonpart data (dummy tuneup), only used for evaluating conflicts, see AddonPartUtility::RecordAddonpartConflicts() More...
 
std::set< std::string > addonpart_guids
 GUIDs of all vehicles this addonpart is used with. More...
 
std::set< std::string > addonpart_filenames
 File names of all vehicles this addonpart is used with. If empty, any filename goes. More...
 
std::string tuneup_associated_filename
 Value of 'filename' field in the tuneup file; always lowercase. More...
 
Ogre::String description
 
Ogre::String tags
 
std::string default_skin
 
int fileformatversion
 
bool hasSubmeshs
 
int nodecount
 
int beamcount
 
int shockcount
 
int fixescount
 
int hydroscount
 
int wheelcount
 
int propwheelcount
 
int commandscount
 
int flarescount
 
int propscount
 
int wingscount
 
int turbopropscount
 
int turbojetcount
 
int rotatorscount
 
int exhaustscount
 
int flexbodiescount
 
int soundsourcescount
 
float truckmass
 
float loadmass
 
float minrpm
 
float maxrpm
 
float torque
 
bool customtach
 
bool custom_particles
 
bool forwardcommands
 
bool importcommands
 
bool rescuer
 
ActorType driveable
 
int numgears
 
char enginetype
 
std::vector< Ogre::String > sectionconfigs
 
- Data Fields inherited from RefCountingObject< CacheEntry >
int m_refcount
 
std::mutex m_refcount_mtx
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountingObject< CacheEntry >
static void RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name)
 

Detailed Description

Definition at line 55 of file CacheSystem.h.

Constructor & Destructor Documentation

◆ CacheEntry()

CacheEntry::CacheEntry ( )

default constructor resets the data.

Definition at line 62 of file CacheSystem.cpp.

◆ ~CacheEntry()

CacheEntry::~CacheEntry ( )

Definition at line 105 of file CacheSystem.cpp.

Field Documentation

◆ actor_def

RigDef::DocumentPtr RoR::CacheEntry::actor_def

Cached actor definition (aka truckfile) after first spawn.

Definition at line 91 of file CacheSystem.h.

◆ addonpart_data_only

RoR::TuneupDefPtr RoR::CacheEntry::addonpart_data_only

Cached addonpart data (dummy tuneup), only used for evaluating conflicts, see AddonPartUtility::RecordAddonpartConflicts()

Definition at line 94 of file CacheSystem.h.

◆ addonpart_filenames

std::set<std::string> RoR::CacheEntry::addonpart_filenames

File names of all vehicles this addonpart is used with. If empty, any filename goes.

Definition at line 99 of file CacheSystem.h.

◆ addonpart_guids

std::set<std::string> RoR::CacheEntry::addonpart_guids

GUIDs of all vehicles this addonpart is used with.

Definition at line 98 of file CacheSystem.h.

◆ addtimestamp

std::time_t RoR::CacheEntry::addtimestamp

timestamp when this file was added to the cache

Definition at line 75 of file CacheSystem.h.

◆ authors

std::vector<AuthorInfo> RoR::CacheEntry::authors

authors

Definition at line 86 of file CacheSystem.h.

◆ beamcount

int RoR::CacheEntry::beamcount

Definition at line 111 of file CacheSystem.h.

◆ categoryid

int RoR::CacheEntry::categoryid

category id

Definition at line 72 of file CacheSystem.h.

◆ categoryname

Ogre::String RoR::CacheEntry::categoryname

category name

Definition at line 73 of file CacheSystem.h.

◆ commandscount

int RoR::CacheEntry::commandscount

Definition at line 117 of file CacheSystem.h.

◆ custom_particles

bool RoR::CacheEntry::custom_particles

Definition at line 134 of file CacheSystem.h.

◆ customtach

bool RoR::CacheEntry::customtach

Definition at line 133 of file CacheSystem.h.

◆ default_skin

std::string RoR::CacheEntry::default_skin

Definition at line 107 of file CacheSystem.h.

◆ deleted

bool RoR::CacheEntry::deleted

is this mod deleted?

Definition at line 84 of file CacheSystem.h.

◆ description

Ogre::String RoR::CacheEntry::description

Definition at line 105 of file CacheSystem.h.

◆ dname

Ogre::String RoR::CacheEntry::dname

name parsed from the file

Definition at line 70 of file CacheSystem.h.

◆ driveable

ActorType RoR::CacheEntry::driveable

Definition at line 139 of file CacheSystem.h.

◆ enginetype

char RoR::CacheEntry::enginetype

Definition at line 141 of file CacheSystem.h.

◆ exhaustscount

int RoR::CacheEntry::exhaustscount

Definition at line 124 of file CacheSystem.h.

◆ fext

Ogre::String RoR::CacheEntry::fext

file's extension

Definition at line 69 of file CacheSystem.h.

◆ filecachename

Ogre::String RoR::CacheEntry::filecachename

preview image filename

Definition at line 87 of file CacheSystem.h.

◆ fileformatversion

int RoR::CacheEntry::fileformatversion

Definition at line 108 of file CacheSystem.h.

◆ filetime

std::time_t RoR::CacheEntry::filetime

filetime

Definition at line 83 of file CacheSystem.h.

◆ fixescount

int RoR::CacheEntry::fixescount

Definition at line 113 of file CacheSystem.h.

◆ flarescount

int RoR::CacheEntry::flarescount

Definition at line 118 of file CacheSystem.h.

◆ flexbodiescount

int RoR::CacheEntry::flexbodiescount

Definition at line 125 of file CacheSystem.h.

◆ fname

Ogre::String RoR::CacheEntry::fname

filename

Definition at line 67 of file CacheSystem.h.

◆ fname_without_uid

Ogre::String RoR::CacheEntry::fname_without_uid

filename

Definition at line 68 of file CacheSystem.h.

◆ forwardcommands

bool RoR::CacheEntry::forwardcommands

Definition at line 135 of file CacheSystem.h.

◆ fpath

Ogre::String RoR::CacheEntry::fpath

filepath relative to the .zip file

Definition at line 66 of file CacheSystem.h.

◆ guid

Ogre::String RoR::CacheEntry::guid

global unique id; Type "addonpart" leaves this empty and uses addonpart_guids; Always lowercase.

Definition at line 77 of file CacheSystem.h.

◆ hasSubmeshs

bool RoR::CacheEntry::hasSubmeshs

Definition at line 109 of file CacheSystem.h.

◆ hydroscount

int RoR::CacheEntry::hydroscount

Definition at line 114 of file CacheSystem.h.

◆ importcommands

bool RoR::CacheEntry::importcommands

Definition at line 136 of file CacheSystem.h.

◆ loadmass

float RoR::CacheEntry::loadmass

Definition at line 129 of file CacheSystem.h.

◆ maxrpm

float RoR::CacheEntry::maxrpm

Definition at line 131 of file CacheSystem.h.

◆ minrpm

float RoR::CacheEntry::minrpm

Definition at line 130 of file CacheSystem.h.

◆ nodecount

int RoR::CacheEntry::nodecount

Definition at line 110 of file CacheSystem.h.

◆ number

CacheEntryID_t RoR::CacheEntry::number

Sequential number, assigned internally, used by Selector-GUI.

Definition at line 64 of file CacheSystem.h.

◆ numgears

int RoR::CacheEntry::numgears

Definition at line 140 of file CacheSystem.h.

◆ propscount

int RoR::CacheEntry::propscount

Definition at line 119 of file CacheSystem.h.

◆ propwheelcount

int RoR::CacheEntry::propwheelcount

Definition at line 116 of file CacheSystem.h.

◆ rescuer

bool RoR::CacheEntry::rescuer

Definition at line 137 of file CacheSystem.h.

◆ resource_bundle_path

std::string RoR::CacheEntry::resource_bundle_path

Path of ZIP or directory which contains the media. Shared between CacheEntries, loaded only once.

Definition at line 81 of file CacheSystem.h.

◆ resource_bundle_type

std::string RoR::CacheEntry::resource_bundle_type

Archive type recognized by OGRE resource system: 'FileSystem' or 'Zip'.

Definition at line 80 of file CacheSystem.h.

◆ resource_group

Ogre::String RoR::CacheEntry::resource_group

Resource group of the loaded bundle. Empty if not loaded yet.

Definition at line 89 of file CacheSystem.h.

◆ rotatorscount

int RoR::CacheEntry::rotatorscount

Definition at line 123 of file CacheSystem.h.

◆ sectionconfigs

std::vector<Ogre::String> RoR::CacheEntry::sectionconfigs

Definition at line 142 of file CacheSystem.h.

◆ shockcount

int RoR::CacheEntry::shockcount

Definition at line 112 of file CacheSystem.h.

◆ skin_def

std::shared_ptr<RoR::SkinDef> RoR::CacheEntry::skin_def

Cached skin info, added on first use or during cache rebuild.

Definition at line 92 of file CacheSystem.h.

◆ soundsourcescount

int RoR::CacheEntry::soundsourcescount

Definition at line 126 of file CacheSystem.h.

◆ tags

Ogre::String RoR::CacheEntry::tags

Definition at line 106 of file CacheSystem.h.

◆ torque

float RoR::CacheEntry::torque

Definition at line 132 of file CacheSystem.h.

◆ truckmass

float RoR::CacheEntry::truckmass

Definition at line 128 of file CacheSystem.h.

◆ tuneup_associated_filename

std::string RoR::CacheEntry::tuneup_associated_filename

Value of 'filename' field in the tuneup file; always lowercase.

Definition at line 102 of file CacheSystem.h.

◆ tuneup_def

RoR::TuneupDefPtr RoR::CacheEntry::tuneup_def

Cached tuning info, added on first use or during cache rebuild.

Definition at line 93 of file CacheSystem.h.

◆ turbojetcount

int RoR::CacheEntry::turbojetcount

Definition at line 122 of file CacheSystem.h.

◆ turbopropscount

int RoR::CacheEntry::turbopropscount

Definition at line 121 of file CacheSystem.h.

◆ uniqueid

Ogre::String RoR::CacheEntry::uniqueid

file's unique id

Definition at line 76 of file CacheSystem.h.

◆ usagecounter

int RoR::CacheEntry::usagecounter

how much it was used already

Definition at line 85 of file CacheSystem.h.

◆ version

int RoR::CacheEntry::version

file's version

Definition at line 78 of file CacheSystem.h.

◆ wheelcount

int RoR::CacheEntry::wheelcount

Definition at line 115 of file CacheSystem.h.

◆ wingscount

int RoR::CacheEntry::wingscount

Definition at line 120 of file CacheSystem.h.


The documentation for this class was generated from the following files: