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

#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)
 
bool isFlexbodyProtected (FlexbodyID_t flexbodyid)
 
bool isWheelProtected (int wheelid) const
 
bool isNodeProtected (NodeNum_t nodenum) const
 
Unwanted-state helpers
bool isPropUnwanted (PropID_t propid)
 
bool isFlexbodyUnwanted (FlexbodyID_t flexbodyid)
 
Forced-state helpers
bool isPropForceRemoved (PropID_t propid)
 
bool isFlexbodyForceRemoved (FlexbodyID_t flexbodyid)
 
bool isWheelSideForced (WheelID_t wheelid, WheelSide &out_val) const
 
- Public Member Functions inherited from RefCountingObject< TuneupDef >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Data Fields

General info
std::string name
 
std::string guid
 
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::set< PropID_tunwanted_props
 'addonpart_unwanted_prop' directives. More...
 
std::set< FlexbodyID_tunwanted_flexbodies
 'addonpart_unwanted_flexbody' 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...
 
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_remove_prop' directive. More...
 
std::set< FlexbodyID_tprotected_flexbodies
 Flexbodies which cannot be removed via 'addonpart_tweak_flexbody' or 'addonpart_remove_flexbody' 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

Definition at line 82 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:

◆ isFlexbodyForceRemoved()

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

Definition at line 142 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlexbodyProtected()

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

Definition at line 128 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isFlexbodyUnwanted()

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

Definition at line 136 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 130 of file TuneupFileFormat.h.

◆ isPropForceRemoved()

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

Definition at line 141 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isPropProtected()

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

Definition at line 127 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isPropUnwanted()

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

Definition at line 135 of file TuneupFileFormat.h.

+ Here is the caller graph for this function:

◆ isWheelProtected()

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

Definition at line 129 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 106 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ reset()

void TuneupDef::reset ( )

Definition at line 78 of file TuneupFileFormat.cpp.

Field Documentation

◆ author_id

int RoR::TuneupDef::author_id = -1

Definition at line 91 of file TuneupFileFormat.h.

◆ author_name

std::string RoR::TuneupDef::author_name

Definition at line 90 of file TuneupFileFormat.h.

◆ category_id

CacheCategoryId RoR::TuneupDef::category_id = CID_None

Definition at line 92 of file TuneupFileFormat.h.

◆ description

std::string RoR::TuneupDef::description

Definition at line 89 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 102 of file TuneupFileFormat.h.

◆ force_remove_flexbodies

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

UI overrides.

Definition at line 110 of file TuneupFileFormat.h.

◆ force_remove_props

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

UI overrides.

Definition at line 109 of file TuneupFileFormat.h.

◆ force_wheel_sides

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

UI overrides.

Definition at line 111 of file TuneupFileFormat.h.

◆ guid

std::string RoR::TuneupDef::guid

Definition at line 87 of file TuneupFileFormat.h.

◆ name

std::string RoR::TuneupDef::name

Definition at line 86 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 99 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 101 of file TuneupFileFormat.h.

◆ protected_flexbodies

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

Flexbodies which cannot be removed via 'addonpart_tweak_flexbody' or 'addonpart_remove_flexbody' directive.

Definition at line 119 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 116 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_remove_prop' directive.

Definition at line 118 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 117 of file TuneupFileFormat.h.

◆ thumbnail

std::string RoR::TuneupDef::thumbnail

Definition at line 88 of file TuneupFileFormat.h.

◆ unwanted_flexbodies

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

'addonpart_unwanted_flexbody' directives.

Definition at line 104 of file TuneupFileFormat.h.

◆ unwanted_props

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

'addonpart_unwanted_prop' directives.

Definition at line 103 of file TuneupFileFormat.h.

◆ use_addonparts

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

Addonpart filenames.

Definition at line 97 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 100 of file TuneupFileFormat.h.


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