RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
RoR::AddonPartUtility Class Reference

NOTE: Modcache processes this format directly using RoR::GenericDocument, see RoR::CacheSystem::FillAddonPartDetailInfo() More...

#include <AddonPartFileFormat.h>

+ Collaboration diagram for RoR::AddonPartUtility:

Public Member Functions

 AddonPartUtility ()
 
 ~AddonPartUtility ()
 
std::shared_ptr< RigDef::Document::ModuleTransformToRigDefModule (CacheEntryPtr &addonpart_entry)
 transforms the addonpart to RigDef::File::Module (fake 'section/end_section') used for spawning. More...
 
void ResolveUnwantedAndTweakedElements (TuneupDefPtr &tuneup, CacheEntryPtr &addonpart_entry)
 Evaluates 'addonpart_unwanted_*' elements, respecting 'protected_*' directives in the tuneup. More...
 

Static Public Member Functions

static void ResetUnwantedAndTweakedElements (TuneupDefPtr &tuneup)
 

Private Member Functions

void ProcessManagedMaterial ()
 
void ProcessDirectiveSetManagedMaterialsOptions ()
 
void ProcessProp ()
 
void ProcessFlexbody ()
 
void ProcessTweakWheel ()
 
void ProcessTweakNode ()
 
void ProcessTweakFlexbody ()
 
void ProcessTweakProp ()
 
void ProcessUnwantedProp ()
 
void ProcessUnwantedFlexbody ()
 

Private Attributes

GenericDocumentPtr m_document
 
GenericDocContextPtr m_context
 
CacheEntryPtr m_addonpart_entry
 
std::shared_ptr< RigDef::Document::Modulem_module
 
RigDef::ManagedMaterialsOptions m_managedmaterials_options
 
TuneupDefPtr m_tuneup
 

Detailed Description

NOTE: Modcache processes this format directly using RoR::GenericDocument, see RoR::CacheSystem::FillAddonPartDetailInfo()

Definition at line 39 of file AddonPartFileFormat.h.

Constructor & Destructor Documentation

◆ AddonPartUtility()

AddonPartUtility::AddonPartUtility ( )

Definition at line 36 of file AddonPartFileFormat.cpp.

◆ ~AddonPartUtility()

AddonPartUtility::~AddonPartUtility ( )

Definition at line 41 of file AddonPartFileFormat.cpp.

Member Function Documentation

◆ ProcessDirectiveSetManagedMaterialsOptions()

void AddonPartUtility::ProcessDirectiveSetManagedMaterialsOptions ( )
private

Definition at line 223 of file AddonPartFileFormat.cpp.

◆ ProcessFlexbody()

void AddonPartUtility::ProcessFlexbody ( )
private

Definition at line 264 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessManagedMaterial()

void AddonPartUtility::ProcessManagedMaterial ( )
private

Definition at line 194 of file AddonPartFileFormat.cpp.

◆ ProcessProp()

void AddonPartUtility::ProcessProp ( )
private

Definition at line 232 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessTweakFlexbody()

void AddonPartUtility::ProcessTweakFlexbody ( )
private

Definition at line 460 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessTweakNode()

void AddonPartUtility::ProcessTweakNode ( )
private

Definition at line 415 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessTweakProp()

void AddonPartUtility::ProcessTweakProp ( )
private

Definition at line 514 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessTweakWheel()

void AddonPartUtility::ProcessTweakWheel ( )
private

Definition at line 367 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessUnwantedFlexbody()

void AddonPartUtility::ProcessUnwantedFlexbody ( )
private

Definition at line 343 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ProcessUnwantedProp()

void AddonPartUtility::ProcessUnwantedProp ( )
private

Definition at line 319 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:

◆ ResetUnwantedAndTweakedElements()

void AddonPartUtility::ResetUnwantedAndTweakedElements ( TuneupDefPtr tuneup)
static

Definition at line 175 of file AddonPartFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ResolveUnwantedAndTweakedElements()

void AddonPartUtility::ResolveUnwantedAndTweakedElements ( TuneupDefPtr tuneup,
CacheEntryPtr addonpart_entry 
)

Evaluates 'addonpart_unwanted_*' elements, respecting 'protected_*' directives in the tuneup.

Also handles 'addonpart_tweak_*' elements, resolving possible conflicts among used parts.

Definition at line 125 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TransformToRigDefModule()

std::shared_ptr< Document::Module > AddonPartUtility::TransformToRigDefModule ( CacheEntryPtr addonpart_entry)

transforms the addonpart to RigDef::File::Module (fake 'section/end_section') used for spawning.

Returns
nullptr on error

Definition at line 46 of file AddonPartFileFormat.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_addonpart_entry

CacheEntryPtr RoR::AddonPartUtility::m_addonpart_entry
private

Definition at line 73 of file AddonPartFileFormat.h.

◆ m_context

GenericDocContextPtr RoR::AddonPartUtility::m_context
private

Definition at line 72 of file AddonPartFileFormat.h.

◆ m_document

GenericDocumentPtr RoR::AddonPartUtility::m_document
private

Definition at line 71 of file AddonPartFileFormat.h.

◆ m_managedmaterials_options

RigDef::ManagedMaterialsOptions RoR::AddonPartUtility::m_managedmaterials_options
private

Definition at line 76 of file AddonPartFileFormat.h.

◆ m_module

std::shared_ptr<RigDef::Document::Module> RoR::AddonPartUtility::m_module
private

Definition at line 75 of file AddonPartFileFormat.h.

◆ m_tuneup

TuneupDefPtr RoR::AddonPartUtility::m_tuneup
private

Definition at line 78 of file AddonPartFileFormat.h.


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