RigsofRods
Soft-body Physics Simulation
|
Dual purpose: More...
#include <TuneupFileFormat.h>
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, TuneupNodeTweak > | node_tweaks |
Node position overrides via 'addonpart_tweak_node'. More... | |
std::map< WheelID_t, TuneupWheelTweak > | wheel_tweaks |
Mesh name and radius overrides via 'addonpart_tweak_wheel'. More... | |
std::map< PropID_t, TuneupPropTweak > | prop_tweaks |
Mesh name(s), offset and rotation overrides via 'addonpart_tweak_prop'. More... | |
std::map< FlexbodyID_t, TuneupFlexbodyTweak > | flexbody_tweaks |
Mesh name, offset and rotation overrides via 'addonpart_tweak_flexbody'. More... | |
std::map< std::string, TuneupManagedMatTweak > | managedmat_tweaks |
Managed material overrides via 'addonpart_tweak_managedmaterial'. More... | |
std::set< PropID_t > | unwanted_props |
'addonpart_unwanted_prop' directives. More... | |
std::set< FlexbodyID_t > | unwanted_flexbodies |
'addonpart_unwanted_flexbody' directives. More... | |
std::set< FlareID_t > | unwanted_flares |
'addonpart_unwanted_flare' directives. More... | |
std::set< ExhaustID_t > | unwanted_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_t > | force_remove_props |
UI overrides. More... | |
std::set< FlexbodyID_t > | force_remove_flexbodies |
UI overrides. More... | |
std::map< WheelID_t, WheelSide > | force_wheel_sides |
UI overrides. More... | |
std::set< FlareID_t > | force_remove_flares |
User unticked an UI checkbox in Tuning menu, section Flares. More... | |
std::set< ExhaustID_t > | force_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_t > | protected_nodes |
Nodes that cannot be altered via 'addonpart_tweak_node'. More... | |
std::set< WheelID_t > | protected_wheels |
Wheels that cannot be altered via 'addonpart_tweak_wheel'. More... | |
std::set< PropID_t > | protected_props |
Props which cannot be altered via 'addonpart_tweak_prop' or 'addonpart_unwanted_prop' directive. More... | |
std::set< FlexbodyID_t > | protected_flexbodies |
Flexbodies which cannot be altered via 'addonpart_tweak_flexbody' or 'addonpart_unwanted_flexbody' directive. More... | |
std::set< FlareID_t > | protected_flares |
Flares which cannot be altered via 'addonpart_unwanted_flare' directive. More... | |
std::set< ExhaustID_t > | protected_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) |
Dual purpose:
CacheEntry::tuneup_def
(the obvious use)CacheEntry::addonpart_data_only
(an additional hack) Definition at line 93 of file TuneupFileFormat.h.
TuneupDefPtr TuneupDef::clone | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 152 of file TuneupFileFormat.h.
|
inline |
|
inline |
|
inline |
|
inline |
void TuneupDef::reset | ( | ) |
Definition at line 79 of file TuneupFileFormat.cpp.
int RoR::TuneupDef::author_id = -1 |
Definition at line 103 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::author_name |
Definition at line 102 of file TuneupFileFormat.h.
CacheCategoryId RoR::TuneupDef::category_id = CID_None |
Definition at line 104 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::description |
Definition at line 101 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::filename |
target vehicle filename
Definition at line 99 of file TuneupFileFormat.h.
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.
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.
User unticked an UI checkbox in Tuning menu, section Flares.
Definition at line 128 of file TuneupFileFormat.h.
std::set<FlexbodyID_t> RoR::TuneupDef::force_remove_flexbodies |
UI overrides.
Definition at line 126 of file TuneupFileFormat.h.
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.
UI overrides.
Definition at line 125 of file TuneupFileFormat.h.
UI overrides.
Definition at line 127 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::guid |
target vehicle GUID
Definition at line 98 of file TuneupFileFormat.h.
std::map<std::string, TuneupManagedMatTweak> RoR::TuneupDef::managedmat_tweaks |
Managed material overrides via 'addonpart_tweak_managedmaterial'.
Definition at line 115 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::name |
Definition at line 97 of file TuneupFileFormat.h.
std::map<NodeNum_t, TuneupNodeTweak> RoR::TuneupDef::node_tweaks |
Node position overrides via 'addonpart_tweak_node'.
Definition at line 111 of file TuneupFileFormat.h.
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.
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.
Flares which cannot be altered via 'addonpart_unwanted_flare' directive.
Definition at line 139 of file TuneupFileFormat.h.
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.
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.
Nodes that cannot be altered via 'addonpart_tweak_node'.
Definition at line 135 of file TuneupFileFormat.h.
Props which cannot be altered via 'addonpart_tweak_prop' or 'addonpart_unwanted_prop' directive.
Definition at line 137 of file TuneupFileFormat.h.
Wheels that cannot be altered via 'addonpart_tweak_wheel'.
Definition at line 136 of file TuneupFileFormat.h.
std::string RoR::TuneupDef::thumbnail |
Definition at line 100 of file TuneupFileFormat.h.
std::set<ExhaustID_t> RoR::TuneupDef::unwanted_exhausts |
'addonpart_unwanted_exhaust' directives.
Definition at line 119 of file TuneupFileFormat.h.
'addonpart_unwanted_flare' directives.
Definition at line 118 of file TuneupFileFormat.h.
std::set<FlexbodyID_t> RoR::TuneupDef::unwanted_flexbodies |
'addonpart_unwanted_flexbody' directives.
Definition at line 117 of file TuneupFileFormat.h.
std::set<std::string> RoR::TuneupDef::unwanted_managedmats |
'addonpart_unwanted_managedmaterial' directives.
Definition at line 120 of file TuneupFileFormat.h.
'addonpart_unwanted_prop' directives.
Definition at line 116 of file TuneupFileFormat.h.
std::set<std::string> RoR::TuneupDef::use_addonparts |
Addonpart filenames.
Definition at line 109 of file TuneupFileFormat.h.
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.