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

#include <TuneupFileFormat.h>

Static Public Member Functions

static std::vector< TuneupDefPtrParseTuneups (Ogre::DataStreamPtr &stream)
 
static void ExportTuneup (Ogre::DataStreamPtr &stream, TuneupDefPtr &tuneup)
 
AddonPart helpers
static bool isAddonPartUsed (TuneupDefPtr &tuneup_entry, const std::string &filename)
 
Wheel helpers
static float getTweakedWheelTireRadius (TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, float orig_val)
 
static float getTweakedWheelRimRadius (TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, float orig_val)
 
static std::string getTweakedWheelMedia (TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, int media_idx, const std::string &orig_val)
 
static std::string getTweakedWheelMediaRG (TuneupDefPtr &tuneup_def, WheelID_t wheel_id, int media_idx, const std::string &orig_val)
 
static WheelSide getTweakedWheelSide (TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, WheelSide orig_val)
 
static bool isWheelTweaked (TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, TuneupWheelTweak *&out_tweak)
 
Node helpers
static Ogre::Vector3 getTweakedNodePosition (TuneupDefPtr &tuneup_entry, NodeNum_t nodenum, Ogre::Vector3 orig_val)
 
static bool isNodeTweaked (TuneupDefPtr &tuneup_entry, NodeNum_t nodenum, TuneupNodeTweak *&out_tweak)
 
Prop helpers
static bool isPropAnyhowRemoved (TuneupDefPtr &tuneup_def, PropID_t prop_id)
 
static Ogre::Vector3 getTweakedPropOffset (TuneupDefPtr &tuneup_entry, PropID_t prop_id, Ogre::Vector3 orig_val)
 
static Ogre::Vector3 getTweakedPropRotation (TuneupDefPtr &tuneup_entry, PropID_t prop_id, Ogre::Vector3 orig_val)
 
static std::string getTweakedPropMedia (TuneupDefPtr &tuneup_entry, PropID_t prop_id, int media_idx, const std::string &orig_val)
 
static std::string getTweakedPropMediaRG (TuneupDefPtr &tuneup_def, PropID_t prop_id, int media_idx, const std::string &orig_val)
 
static bool isPropTweaked (TuneupDefPtr &tuneup_entry, PropID_t flexbody_id, TuneupPropTweak *&out_tweak)
 
Flexbody helpers
static bool isFlexbodyAnyhowRemoved (TuneupDefPtr &tuneup_def, FlexbodyID_t flexbody_id)
 
static Ogre::Vector3 getTweakedFlexbodyOffset (TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, Ogre::Vector3 orig_val)
 
static Ogre::Vector3 getTweakedFlexbodyRotation (TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, Ogre::Vector3 orig_val)
 
static std::string getTweakedFlexbodyMedia (TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, int media_idx, const std::string &orig_val)
 
static std::string getTweakedFlexbodyMediaRG (TuneupDefPtr &tuneup_def, FlexbodyID_t flexbody_id, int media_idx, const std::string &orig_val)
 
static bool isFlexbodyTweaked (TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, TuneupFlexbodyTweak *&out_tweak)
 
Flare helpers
static bool isFlareAnyhowRemoved (TuneupDefPtr &tuneup_def, FlareID_t flare_id)
 
Exhaust helpers
static bool isExhaustAnyhowRemoved (TuneupDefPtr &tuneup_def, ExhaustID_t exhaust_id)
 
Managed material helpers
static bool isManagedMatAnyhowRemoved (TuneupDefPtr &tuneup_def, const std::string &matname)
 
static std::string getTweakedManagedMatType (TuneupDefPtr &tuneup_def, const std::string &matname, const std::string &orig_val)
 
static std::string getTweakedManagedMatMedia (TuneupDefPtr &tuneup_def, const std::string &matname, int media_idx, const std::string &orig_val)
 
static std::string getTweakedManagedMatMediaRG (TuneupDefPtr &tuneup_def, const std::string &matname, int media_idx, const std::string &orig_val)
 
static bool isManagedMatTweaked (TuneupDefPtr &tuneup_def, const std::string &matname, TuneupManagedMatTweak *&out_tweak)
 

Static Private Member Functions

static void ParseTuneupAttribute (const std::string &line, TuneupDefPtr &tuneup_def)
 

Detailed Description

Definition at line 178 of file TuneupFileFormat.h.

Member Function Documentation

◆ ExportTuneup()

void RoR::TuneupUtil::ExportTuneup ( Ogre::DataStreamPtr &  stream,
TuneupDefPtr tuneup 
)
static

Definition at line 638 of file TuneupFileFormat.cpp.

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

◆ getTweakedFlexbodyMedia()

std::string RoR::TuneupUtil::getTweakedFlexbodyMedia ( TuneupDefPtr tuneup_entry,
FlexbodyID_t  flexbody_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 393 of file TuneupFileFormat.cpp.

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

◆ getTweakedFlexbodyMediaRG()

std::string RoR::TuneupUtil::getTweakedFlexbodyMediaRG ( TuneupDefPtr tuneup_def,
FlexbodyID_t  flexbody_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 407 of file TuneupFileFormat.cpp.

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

◆ getTweakedFlexbodyOffset()

Ogre::Vector3 RoR::TuneupUtil::getTweakedFlexbodyOffset ( TuneupDefPtr tuneup_entry,
FlexbodyID_t  flexbody_id,
Ogre::Vector3  orig_val 
)
static

Definition at line 365 of file TuneupFileFormat.cpp.

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

◆ getTweakedFlexbodyRotation()

Ogre::Vector3 RoR::TuneupUtil::getTweakedFlexbodyRotation ( TuneupDefPtr tuneup_entry,
FlexbodyID_t  flexbody_id,
Ogre::Vector3  orig_val 
)
static

Definition at line 379 of file TuneupFileFormat.cpp.

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

◆ getTweakedManagedMatMedia()

std::string RoR::TuneupUtil::getTweakedManagedMatMedia ( TuneupDefPtr tuneup_def,
const std::string &  matname,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 499 of file TuneupFileFormat.cpp.

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

◆ getTweakedManagedMatMediaRG()

std::string RoR::TuneupUtil::getTweakedManagedMatMediaRG ( TuneupDefPtr tuneup_def,
const std::string &  matname,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 514 of file TuneupFileFormat.cpp.

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

◆ getTweakedManagedMatType()

std::string RoR::TuneupUtil::getTweakedManagedMatType ( TuneupDefPtr tuneup_def,
const std::string &  matname,
const std::string &  orig_val 
)
static

Definition at line 485 of file TuneupFileFormat.cpp.

+ Here is the call graph for this function:

◆ getTweakedNodePosition()

Ogre::Vector3 RoR::TuneupUtil::getTweakedNodePosition ( TuneupDefPtr tuneup_entry,
NodeNum_t  nodenum,
Ogre::Vector3  orig_val 
)
static

Definition at line 236 of file TuneupFileFormat.cpp.

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

◆ getTweakedPropMedia()

std::string RoR::TuneupUtil::getTweakedPropMedia ( TuneupDefPtr tuneup_entry,
PropID_t  prop_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 301 of file TuneupFileFormat.cpp.

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

◆ getTweakedPropMediaRG()

std::string RoR::TuneupUtil::getTweakedPropMediaRG ( TuneupDefPtr tuneup_def,
PropID_t  prop_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 316 of file TuneupFileFormat.cpp.

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

◆ getTweakedPropOffset()

Ogre::Vector3 RoR::TuneupUtil::getTweakedPropOffset ( TuneupDefPtr tuneup_entry,
PropID_t  prop_id,
Ogre::Vector3  orig_val 
)
static

Definition at line 273 of file TuneupFileFormat.cpp.

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

◆ getTweakedPropRotation()

Ogre::Vector3 RoR::TuneupUtil::getTweakedPropRotation ( TuneupDefPtr tuneup_entry,
PropID_t  prop_id,
Ogre::Vector3  orig_val 
)
static

Definition at line 287 of file TuneupFileFormat.cpp.

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

◆ getTweakedWheelMedia()

std::string RoR::TuneupUtil::getTweakedWheelMedia ( TuneupDefPtr tuneup_entry,
WheelID_t  wheel_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 151 of file TuneupFileFormat.cpp.

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

◆ getTweakedWheelMediaRG()

std::string RoR::TuneupUtil::getTweakedWheelMediaRG ( TuneupDefPtr tuneup_def,
WheelID_t  wheel_id,
int  media_idx,
const std::string &  orig_val 
)
static

Definition at line 166 of file TuneupFileFormat.cpp.

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

◆ getTweakedWheelRimRadius()

float RoR::TuneupUtil::getTweakedWheelRimRadius ( TuneupDefPtr tuneup_entry,
WheelID_t  wheel_id,
float  orig_val 
)
static

Definition at line 137 of file TuneupFileFormat.cpp.

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

◆ getTweakedWheelSide()

WheelSide RoR::TuneupUtil::getTweakedWheelSide ( TuneupDefPtr tuneup_entry,
WheelID_t  wheel_id,
WheelSide  orig_val 
)
static

Definition at line 193 of file TuneupFileFormat.cpp.

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

◆ getTweakedWheelTireRadius()

float RoR::TuneupUtil::getTweakedWheelTireRadius ( TuneupDefPtr tuneup_entry,
WheelID_t  wheel_id,
float  orig_val 
)
static

Definition at line 123 of file TuneupFileFormat.cpp.

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

◆ isAddonPartUsed()

bool RoR::TuneupUtil::isAddonPartUsed ( TuneupDefPtr tuneup_entry,
const std::string &  filename 
)
static

Definition at line 540 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isExhaustAnyhowRemoved()

bool RoR::TuneupUtil::isExhaustAnyhowRemoved ( TuneupDefPtr tuneup_def,
ExhaustID_t  exhaust_id 
)
static

Definition at line 457 of file TuneupFileFormat.cpp.

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

◆ isFlareAnyhowRemoved()

bool RoR::TuneupUtil::isFlareAnyhowRemoved ( TuneupDefPtr tuneup_def,
FlareID_t  flare_id 
)
static

Definition at line 450 of file TuneupFileFormat.cpp.

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

◆ isFlexbodyAnyhowRemoved()

bool RoR::TuneupUtil::isFlexbodyAnyhowRemoved ( TuneupDefPtr tuneup_def,
FlexbodyID_t  flexbody_id 
)
static

Definition at line 359 of file TuneupFileFormat.cpp.

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

◆ isFlexbodyTweaked()

bool RoR::TuneupUtil::isFlexbodyTweaked ( TuneupDefPtr tuneup_entry,
FlexbodyID_t  flexbody_id,
TuneupFlexbodyTweak *&  out_tweak 
)
static

Definition at line 432 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isManagedMatAnyhowRemoved()

bool RoR::TuneupUtil::isManagedMatAnyhowRemoved ( TuneupDefPtr tuneup_def,
const std::string &  matname 
)
static

Definition at line 464 of file TuneupFileFormat.cpp.

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

◆ isManagedMatTweaked()

bool RoR::TuneupUtil::isManagedMatTweaked ( TuneupDefPtr tuneup_def,
const std::string &  matname,
TuneupManagedMatTweak *&  out_tweak 
)
static

Definition at line 470 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isNodeTweaked()

bool RoR::TuneupUtil::isNodeTweaked ( TuneupDefPtr tuneup_entry,
NodeNum_t  nodenum,
TuneupNodeTweak *&  out_tweak 
)
static

Definition at line 250 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isPropAnyhowRemoved()

bool RoR::TuneupUtil::isPropAnyhowRemoved ( TuneupDefPtr tuneup_def,
PropID_t  prop_id 
)
static

Definition at line 267 of file TuneupFileFormat.cpp.

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

◆ isPropTweaked()

bool RoR::TuneupUtil::isPropTweaked ( TuneupDefPtr tuneup_entry,
PropID_t  flexbody_id,
TuneupPropTweak *&  out_tweak 
)
static

Definition at line 341 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isWheelTweaked()

bool RoR::TuneupUtil::isWheelTweaked ( TuneupDefPtr tuneup_entry,
WheelID_t  wheel_id,
TuneupWheelTweak *&  out_tweak 
)
static

Definition at line 219 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ParseTuneupAttribute()

void RoR::TuneupUtil::ParseTuneupAttribute ( const std::string &  line,
TuneupDefPtr tuneup_def 
)
staticprivate

Definition at line 605 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ParseTuneups()

std::vector< TuneupDefPtr > RoR::TuneupUtil::ParseTuneups ( Ogre::DataStreamPtr &  stream)
static

Definition at line 546 of file TuneupFileFormat.cpp.

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

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