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)
 

Static Private Member Functions

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

Detailed Description

Definition at line 147 of file TuneupFileFormat.h.

Member Function Documentation

◆ ExportTuneup()

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

Definition at line 545 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 392 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 406 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 364 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 378 of file TuneupFileFormat.cpp.

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

◆ getTweakedNodePosition()

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

Definition at line 235 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 300 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 315 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 272 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 286 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 150 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 165 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 136 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 192 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 122 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 448 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isFlexbodyAnyhowRemoved()

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

Definition at line 358 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 431 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 249 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 266 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 340 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 218 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 513 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 454 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: