RigsofRods
Soft-body Physics Simulation
Public Member Functions
RoR::TuneupDef Struct Reference

Dual purpose: More...

#include <TuneupFileFormat.h>

+ Inheritance diagram for RoR::TuneupDef:
+ Collaboration diagram for RoR::TuneupDef:

Public Member Functions

TuneupDefPtr clone ()
 
void reset ()
 
Protection helpers
bool isPropProtected (PropID_t propid) const
 
bool isFlexbodyProtected (FlexbodyID_t flexbodyid) const
 
bool isWheelProtected (WheelID_t wheelid) const
 
bool isNodeProtected (NodeNum_t nodenum) const
 
bool isFlareProtected (FlareID_t flareid) const
 
bool isExhaustProtected (ExhaustID_t exhaustid) const
 
bool isManagedMatProtected (const std::string &matname) const
 
Unwanted-state helpers
bool isPropUnwanted (PropID_t propid)
 
bool isFlexbodyUnwanted (FlexbodyID_t flexbodyid)
 
bool isFlareUnwanted (FlareID_t flareid)
 
bool isExhaustUnwanted (ExhaustID_t exhaustid)
 
bool isManagedMatUnwanted (const std::string &matname)
 
Forced-state helpers
bool isPropForceRemoved (PropID_t propid)
 
bool isFlexbodyForceRemoved (FlexbodyID_t flexbodyid)
 
bool isWheelSideForced (WheelID_t wheelid, WheelSide &out_val) const
 
bool isFlareForceRemoved (FlareID_t flareid)
 
bool isExhaustForceRemoved (ExhaustID_t exhaustid)
 
bool isManagedMatForceRemoved (const std::string &matname)
 
- Public Member Functions inherited from RefCountingObject< TuneupDef >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Data Fields

General info
std::string name
 
std::string guid
 target vehicle GUID More...
 
std::string filename
 target vehicle filename More...
 
std::string thumbnail
 
std::string description
 
std::string author_name
 
int author_id = -1
 
CacheCategoryId category_id = CID_None
 
Addonparts and extracted data
std::set< std::string > use_addonparts
 Addonpart filenames. More...
 
std::map< NodeNum_t, TuneupNodeTweaknode_tweaks
 Node position overrides via 'addonpart_tweak_node'. More...
 
std::map< WheelID_t, TuneupWheelTweakwheel_tweaks
 Mesh name and radius overrides via 'addonpart_tweak_wheel'. More...
 
std::map< PropID_t, TuneupPropTweakprop_tweaks
 Mesh name(s), offset and rotation overrides via 'addonpart_tweak_prop'. More...
 
std::map< FlexbodyID_t, TuneupFlexbodyTweakflexbody_tweaks
 Mesh name, offset and rotation overrides via 'addonpart_tweak_flexbody'. More...
 
std::map< std::string, TuneupManagedMatTweakmanagedmat_tweaks
 Managed material overrides via 'addonpart_tweak_managedmaterial'. More...
 
std::set< PropID_tunwanted_props
 'addonpart_unwanted_prop' directives. More...
 
std::set< FlexbodyID_tunwanted_flexbodies
 'addonpart_unwanted_flexbody' directives. More...
 
std::set< FlareID_tunwanted_flares
 'addonpart_unwanted_flare' directives. More...
 
std::set< ExhaustID_tunwanted_exhausts
 'addonpart_unwanted_exhaust' directives. More...
 
std::set< std::string > unwanted_managedmats
 'addonpart_unwanted_managedmaterial' directives. More...
 
UI-controlled forced changes (override addonparts)
std::set< PropID_tforce_remove_props
 UI overrides. More...
 
std::set< FlexbodyID_tforce_remove_flexbodies
 UI overrides. More...
 
std::map< WheelID_t, WheelSideforce_wheel_sides
 UI overrides. More...
 
std::set< FlareID_tforce_remove_flares
 User unticked an UI checkbox in Tuning menu, section Flares. More...
 
std::set< ExhaustID_tforce_remove_exhausts
 User unticked an UI checkbox in Tuning menu, section Exhausts. More...
 
std::set< std::string > force_remove_managedmats
 User unticked an UI checkbox in Tuning menu, section Managed Materials. More...
 
UI-controlled protection from addonpart tweaks
std::set< NodeNum_tprotected_nodes
 Nodes that cannot be altered via 'addonpart_tweak_node'. More...
 
std::set< WheelID_tprotected_wheels
 Wheels that cannot be altered via 'addonpart_tweak_wheel'. More...
 
std::set< PropID_tprotected_props
 Props which cannot be altered via 'addonpart_tweak_prop' or 'addonpart_unwanted_prop' directive. More...
 
std::set< FlexbodyID_tprotected_flexbodies
 Flexbodies which cannot be altered via 'addonpart_tweak_flexbody' or 'addonpart_unwanted_flexbody' directive. More...
 
std::set< FlareID_tprotected_flares
 Flares which cannot be altered via 'addonpart_unwanted_flare' directive. More...
 
std::set< ExhaustID_tprotected_exhausts
 Exhausts which cannot be altered via 'addonpart_unwanted_exhaust' directive. More...
 
std::set< std::string > protected_managedmats
 Managed materials which cannot be altered via 'addonpart_tweak_managedmaterial' directive. More...
 
- Data Fields inherited from RefCountingObject< TuneupDef >
int m_refcount
 
std::mutex m_refcount_mtx
 

Additional Inherited Members

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

Detailed Description

Dual purpose:

  1. representing a .tuneup file, see CacheEntry::tuneup_def (the obvious use)
  2. holding addonpart data for conflict resolution, see CacheEntry::addonpart_data_only (an additional hack)

Definition at line 93 of file TuneupFileFormat.h.

Member Function Documentation

◆ clone()

TuneupDefPtr TuneupDef::clone ( )

Definition at line 38 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isExhaustForceRemoved()

bool RoR::TuneupDef::isExhaustForceRemoved ( ExhaustID_t  exhaustid)
inline

Definition at line 173 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isExhaustProtected()

bool RoR::TuneupDef::isExhaustProtected ( ExhaustID_t  exhaustid) const
inline

Definition at line 154 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isExhaustUnwanted()

bool RoR::TuneupDef::isExhaustUnwanted ( ExhaustID_t  exhaustid)
inline

Definition at line 163 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlareForceRemoved()

bool RoR::TuneupDef::isFlareForceRemoved ( FlareID_t  flareid)
inline

Definition at line 172 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlareProtected()

bool RoR::TuneupDef::isFlareProtected ( FlareID_t  flareid) const
inline

Definition at line 153 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlareUnwanted()

bool RoR::TuneupDef::isFlareUnwanted ( FlareID_t  flareid)
inline

Definition at line 162 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlexbodyForceRemoved()

bool RoR::TuneupDef::isFlexbodyForceRemoved ( FlexbodyID_t  flexbodyid)
inline

Definition at line 170 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlexbodyProtected()

bool RoR::TuneupDef::isFlexbodyProtected ( FlexbodyID_t  flexbodyid) const
inline

Definition at line 150 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlexbodyUnwanted()

bool RoR::TuneupDef::isFlexbodyUnwanted ( FlexbodyID_t  flexbodyid)
inline

Definition at line 161 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isManagedMatForceRemoved()

bool RoR::TuneupDef::isManagedMatForceRemoved ( const std::string &  matname)
inline

Definition at line 174 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isManagedMatProtected()

bool RoR::TuneupDef::isManagedMatProtected ( const std::string &  matname) const
inline

Definition at line 155 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isManagedMatUnwanted()

bool RoR::TuneupDef::isManagedMatUnwanted ( const std::string &  matname)
inline

Definition at line 164 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isNodeProtected()

bool RoR::TuneupDef::isNodeProtected ( NodeNum_t  nodenum) const
inline

Definition at line 152 of file TuneupFileFormat.h.

◆ isPropForceRemoved()

bool RoR::TuneupDef::isPropForceRemoved ( PropID_t  propid)
inline

Definition at line 169 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isPropProtected()

bool RoR::TuneupDef::isPropProtected ( PropID_t  propid) const
inline

Definition at line 149 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isPropUnwanted()

bool RoR::TuneupDef::isPropUnwanted ( PropID_t  propid)
inline

Definition at line 160 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isWheelProtected()

bool RoR::TuneupDef::isWheelProtected ( WheelID_t  wheelid) const
inline

Definition at line 151 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isWheelSideForced()

bool TuneupDef::isWheelSideForced ( WheelID_t  wheelid,
WheelSide out_val 
) const

Definition at line 107 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ reset()

void TuneupDef::reset ( )

Definition at line 79 of file TuneupFileFormat.cpp.

Field Documentation

◆ author_id

int RoR::TuneupDef::author_id = -1

Definition at line 103 of file TuneupFileFormat.h.

◆ author_name

std::string RoR::TuneupDef::author_name

Definition at line 102 of file TuneupFileFormat.h.

◆ category_id

CacheCategoryId RoR::TuneupDef::category_id = CID_None

Definition at line 104 of file TuneupFileFormat.h.

◆ description

std::string RoR::TuneupDef::description

Definition at line 101 of file TuneupFileFormat.h.

◆ filename

std::string RoR::TuneupDef::filename

target vehicle filename

Definition at line 99 of file TuneupFileFormat.h.

◆ flexbody_tweaks

std::map<FlexbodyID_t, TuneupFlexbodyTweak> RoR::TuneupDef::flexbody_tweaks

Mesh name, offset and rotation overrides via 'addonpart_tweak_flexbody'.

Definition at line 114 of file TuneupFileFormat.h.

◆ force_remove_exhausts

std::set<ExhaustID_t> RoR::TuneupDef::force_remove_exhausts

User unticked an UI checkbox in Tuning menu, section Exhausts.

Definition at line 129 of file TuneupFileFormat.h.

◆ force_remove_flares

std::set<FlareID_t> RoR::TuneupDef::force_remove_flares

User unticked an UI checkbox in Tuning menu, section Flares.

Definition at line 128 of file TuneupFileFormat.h.

◆ force_remove_flexbodies

std::set<FlexbodyID_t> RoR::TuneupDef::force_remove_flexbodies

UI overrides.

Definition at line 126 of file TuneupFileFormat.h.

◆ force_remove_managedmats

std::set<std::string> RoR::TuneupDef::force_remove_managedmats

User unticked an UI checkbox in Tuning menu, section Managed Materials.

Definition at line 130 of file TuneupFileFormat.h.

◆ force_remove_props

std::set<PropID_t> RoR::TuneupDef::force_remove_props

UI overrides.

Definition at line 125 of file TuneupFileFormat.h.

◆ force_wheel_sides

std::map<WheelID_t, WheelSide> RoR::TuneupDef::force_wheel_sides

UI overrides.

Definition at line 127 of file TuneupFileFormat.h.

◆ guid

std::string RoR::TuneupDef::guid

target vehicle GUID

Definition at line 98 of file TuneupFileFormat.h.

◆ managedmat_tweaks

std::map<std::string, TuneupManagedMatTweak> RoR::TuneupDef::managedmat_tweaks

Managed material overrides via 'addonpart_tweak_managedmaterial'.

Definition at line 115 of file TuneupFileFormat.h.

◆ name

std::string RoR::TuneupDef::name

Definition at line 97 of file TuneupFileFormat.h.

◆ node_tweaks

std::map<NodeNum_t, TuneupNodeTweak> RoR::TuneupDef::node_tweaks

Node position overrides via 'addonpart_tweak_node'.

Definition at line 111 of file TuneupFileFormat.h.

◆ prop_tweaks

std::map<PropID_t, TuneupPropTweak> RoR::TuneupDef::prop_tweaks

Mesh name(s), offset and rotation overrides via 'addonpart_tweak_prop'.

Definition at line 113 of file TuneupFileFormat.h.

◆ protected_exhausts

std::set<ExhaustID_t> RoR::TuneupDef::protected_exhausts

Exhausts which cannot be altered via 'addonpart_unwanted_exhaust' directive.

Definition at line 140 of file TuneupFileFormat.h.

◆ protected_flares

std::set<FlareID_t> RoR::TuneupDef::protected_flares

Flares which cannot be altered via 'addonpart_unwanted_flare' directive.

Definition at line 139 of file TuneupFileFormat.h.

◆ protected_flexbodies

std::set<FlexbodyID_t> RoR::TuneupDef::protected_flexbodies

Flexbodies which cannot be altered via 'addonpart_tweak_flexbody' or 'addonpart_unwanted_flexbody' directive.

Definition at line 138 of file TuneupFileFormat.h.

◆ protected_managedmats

std::set<std::string> RoR::TuneupDef::protected_managedmats

Managed materials which cannot be altered via 'addonpart_tweak_managedmaterial' directive.

Definition at line 141 of file TuneupFileFormat.h.

◆ protected_nodes

std::set<NodeNum_t> RoR::TuneupDef::protected_nodes

Nodes that cannot be altered via 'addonpart_tweak_node'.

Definition at line 135 of file TuneupFileFormat.h.

◆ protected_props

std::set<PropID_t> RoR::TuneupDef::protected_props

Props which cannot be altered via 'addonpart_tweak_prop' or 'addonpart_unwanted_prop' directive.

Definition at line 137 of file TuneupFileFormat.h.

◆ protected_wheels

std::set<WheelID_t> RoR::TuneupDef::protected_wheels

Wheels that cannot be altered via 'addonpart_tweak_wheel'.

Definition at line 136 of file TuneupFileFormat.h.

◆ thumbnail

std::string RoR::TuneupDef::thumbnail

Definition at line 100 of file TuneupFileFormat.h.

◆ unwanted_exhausts

std::set<ExhaustID_t> RoR::TuneupDef::unwanted_exhausts

'addonpart_unwanted_exhaust' directives.

Definition at line 119 of file TuneupFileFormat.h.

◆ unwanted_flares

std::set<FlareID_t> RoR::TuneupDef::unwanted_flares

'addonpart_unwanted_flare' directives.

Definition at line 118 of file TuneupFileFormat.h.

◆ unwanted_flexbodies

std::set<FlexbodyID_t> RoR::TuneupDef::unwanted_flexbodies

'addonpart_unwanted_flexbody' directives.

Definition at line 117 of file TuneupFileFormat.h.

◆ unwanted_managedmats

std::set<std::string> RoR::TuneupDef::unwanted_managedmats

'addonpart_unwanted_managedmaterial' directives.

Definition at line 120 of file TuneupFileFormat.h.

◆ unwanted_props

std::set<PropID_t> RoR::TuneupDef::unwanted_props

'addonpart_unwanted_prop' directives.

Definition at line 116 of file TuneupFileFormat.h.

◆ use_addonparts

std::set<std::string> RoR::TuneupDef::use_addonparts

Addonpart filenames.

Definition at line 109 of file TuneupFileFormat.h.

◆ wheel_tweaks

std::map<WheelID_t, TuneupWheelTweak> RoR::TuneupDef::wheel_tweaks

Mesh name and radius overrides via 'addonpart_tweak_wheel'.

Definition at line 112 of file TuneupFileFormat.h.


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