RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 
CineCamera helpers
static Ogre::Vector3 getTweakedCineCameraPosition (TuneupDefPtr &tuneup_entry, CineCameraID_t cinecamid, Ogre::Vector3 orig_val)
 
static bool isCineCameraTweaked (TuneupDefPtr &tuneup_entry, CineCameraID_t cinecamid, TuneupCineCameraTweak *&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)
 
VideoCamera helpers
static VideoCamRole getTweakedVideoCameraRole (TuneupDefPtr &tuneup_def, VideoCameraID_t camera_id, VideoCamRole orig_val)
 

Static Private Member Functions

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

Detailed Description

Definition at line 190 of file TuneupFileFormat.h.

Member Function Documentation

◆ ExportTuneup()

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

Definition at line 681 of file TuneupFileFormat.cpp.

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

◆ getTweakedCineCameraPosition()

Ogre::Vector3 RoR::TuneupUtil::getTweakedCineCameraPosition ( TuneupDefPtr tuneup_entry,
CineCameraID_t  cinecamid,
Ogre::Vector3  orig_val 
)
static

Definition at line 264 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 436 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 450 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 408 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 422 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 542 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 557 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 528 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 250 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 344 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 359 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 316 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 330 of file TuneupFileFormat.cpp.

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

◆ getTweakedVideoCameraRole()

VideoCamRole RoR::TuneupUtil::getTweakedVideoCameraRole ( TuneupDefPtr tuneup_def,
VideoCameraID_t  camera_id,
VideoCamRole  orig_val 
)
static

Definition at line 217 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 149 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 164 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 135 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 191 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 121 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 583 of file TuneupFileFormat.cpp.

+ Here is the caller graph for this function:

◆ isCineCameraTweaked()

bool RoR::TuneupUtil::isCineCameraTweaked ( TuneupDefPtr tuneup_entry,
CineCameraID_t  cinecamid,
TuneupCineCameraTweak *&  out_tweak 
)
static

Definition at line 293 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 500 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 493 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 402 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 475 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 507 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 513 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 278 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 310 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 384 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 233 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 648 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 589 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: