29#include <OgreResourceManager.h>
33#include <unordered_set>
100 void Log(
const std::string& text);
107 std::shared_ptr<RigDef::Document::Module>
m_module;
Central state/object manager and communications hub.
Data structures representing 'truck' file format, see https://docs.rigsofrods.org/vehicle-creation/fi...
NOTE: Modcache processes this format directly using RoR::GenericDocument, see RoR::CacheSystem::FillA...
static bool CheckForAddonpartConflict(CacheEntryPtr addonpart1, CacheEntryPtr addonpart2, AddonPartConflictVec &conflicts)
void ProcessUnwantedProp()
static void RecordAddonpartConflicts(CacheEntryPtr addonpart1, CacheEntryPtr addonpart2, AddonPartConflictVec &conflicts)
void ProcessUnwantedManagedMat()
bool m_silent_mode
To block logging during conflict resolution (which works by generating dummy tuneups - would confuse ...
GenericDocContextPtr m_context
std::shared_ptr< RigDef::Document::Module > TransformToRigDefModule(CacheEntryPtr &addonpart_entry)
transforms the addonpart to RigDef::File::Module (fake 'section/end_section') used for spawning.
void ProcessUnwantedFlare()
GenericDocumentPtr m_document
void ProcessUnwantedFlexbody()
std::shared_ptr< RigDef::Document::Module > m_module
void ProcessDirectiveSetManagedMaterialsOptions()
RigDef::ManagedMaterialsOptions m_managedmaterials_options
void ResolveUnwantedAndTweakedElements(TuneupDefPtr &tuneup, CacheEntryPtr &addonpart_entry)
Evaluates 'addonpart_unwanted_*' elements, respecting 'protected_*' directives in the tuneup.
static void ResetUnwantedAndTweakedElements(TuneupDefPtr &tuneup)
void ProcessManagedMaterial()
void ProcessTweakFlexbody()
CacheEntryPtr m_addonpart_entry
void ProcessUnwantedExhaust()
void ProcessTweakCineCamera()
static bool DoubleCheckForAddonpartConflict(ActorPtr target_actor, CacheEntryPtr addonpart_entry)
void ProcessTweakManagedMat()
std::vector< AddonPartConflict > AddonPartConflictVec
< Conflict between two addonparts tweaking the same element
CacheEntryPtr atc_addonpart2
CacheEntryPtr atc_addonpart1
AddonPartConflict(CacheEntryPtr addonpart1, CacheEntryPtr addonpart2, std::string keyword, int element_id)