|
RigsofRods
Soft-body Physics Simulation
|
void ParseDirectiveSectionConfig()
int m_num_args
Number of tokens on current line.
void BeginBlock(RigDef::Keyword keyword)
void ParseAntiLockBrakes()
static const int LINE_MAX_ARGS
long GetArgLong(int index)
Legacy parser resolved references on-the-fly and the condition to check named nodes was "are there an...
std::shared_ptr< Document::Module > m_root_module
void ParseDirectiveSetBeamDefaultsScale()
void ParseDirectiveSetBeamDefaults()
void ParseFlaresUnified()
bool CheckNumArguments(int num_required_args)
void ParseDirectiveDefaultSkin()
unsigned int m_current_line_number
void ParseDirectiveBackmesh()
RigDef::DocumentPtr GetFile()
SequentialImporter * GetSequentialImporter()
void ParseTurbopropsUnified()
std::shared_ptr< NodeDefaults > m_ror_node_defaults
void ParseTractionControl()
void ParseDirectiveSetNodeDefaults()
BitMask_t GetArgTriggerOptions(int index)
RoR::ExtCameraMode GetArgExtCameraMode(int index)
Checks the rig-def file syntax and pulls data to File object.
RigDef::DocumentPtr m_definition
void ParseDirectiveFlexbodyCameraMode()
SequentialImporter m_sequential_importer
static const int LINE_BUFFER_LENGTH
BitMask_t GetArgShock3Options(int index)
char GetArgChar(int index)
Node::Ref GetArgNullableNode(int index)
void ParseRotatorsUnified()
std::shared_ptr< Inertia > m_ror_default_inertia
std::shared_ptr< DefaultMinimass > m_set_default_minimass
static void _TrimTrailingComments(std::string const &line_in, std::string &line_out)
void ParseCruiseControl()
BitMask_t GetArgBeamOptions(int index)
void ProcessRawLine(const char *line)
Node::Ref GetArgRigidityNode(int index)
void ProcessOgreStream(Ogre::DataStream *stream, Ogre::String resource_group)
unsigned ParseArgUint(const char *str)
static Keyword IdentifyKeyword(const std::string &line)
RoR::FlareType GetArgFlareType(int index)
void ParseWheelDetachers()
void ParseOptionalInertia(Inertia &inertia, int index)
ManagedMaterialsOptions m_current_managed_material_options
BitMask_t GetArgHydroOptions(int index)
void _ParseBaseMeshWheel(BaseMeshWheel &mesh_wheel)
BitMask_t GetArgShock2Options(int index)
float ParseArgFloat(const char *str)
bool m_any_named_node_defined
Parser state.
static SpecialProp IdentifySpecialProp(const std::string &str)
void ParseDirectiveSetDefaultMinimass()
void LogMessage(RoR::Console::MessageType type, std::string const &msg)
Adds a message to console.
std::shared_ptr< CameraRail > m_current_camera_rail
Parser state.
Node::Ref _ParseNodeRef(std::string const &node_id_str)
void ParseDirectiveSetInertiaDefaults()
bool GetArgBool(int index)
void ParseDirectiveDetacherGroup()
void ParseFlexBodyWheel()
void ProcessGlobalDirective(Keyword keyword)
Directives that should only appear in root module.
std::shared_ptr< BeamDefaults > m_user_beam_defaults
void ProcessChangeModuleLine(Keyword keyword)
int m_current_detacher_group
std::shared_ptr< Inertia > m_user_default_inertia
MinimassOption GetArgMinimassOption(int index)
std::shared_ptr< NodeDefaults > m_user_node_defaults
std::string GetArgManagedTex(int index)
char m_current_line[LINE_BUFFER_LENGTH]
BitMask_t GetArgShockOptions(int index)
void _ParseDifferentialTypes(DifferentialTypeVec &diff_types, std::string const &options_str)
void ParseCommandsUnified()
void ParseDirectiveSubmesh()
float GetArgFloat(int index)
static void ProcessForsetLine(RigDef::Flexbody &def, const std::string &line, int line_number=-1)
void ParseFileFormatVersion()
std::shared_ptr< Submesh > m_current_submesh
Parser state.
void ParseDirectiveAddAnimation()
Token m_args[LINE_MAX_ARGS]
Tokens of current line.
void ParseSetCollisionRange()
void ParseDirectivePropCameraMode()
void ParseMaterialFlareBindings()
RoR::WheelSide GetArgWheelSide(int index)
void ParseDirectiveSetManagedMaterialsOptions()
WheelBraking GetArgBraking(int index)
void ParseSubmeshGroundModel()
void ParseSetSkeletonSettings()
void ParseSoundsources2()
void ParseDirectiveForset()
std::shared_ptr< Document > DocumentPtr
ManagedMaterialType GetArgManagedMatType(int index)
Node::Ref GetArgNodeRef(int index)
WheelSide
Used by rig-def/addonpart/tuneup formats to specify wheel rim mesh orientation.
unsigned GetArgUint(int index)
Ogre::String m_resource_group
BitMask_t GetArgNodeOptions(int index)
WingControlSurface GetArgWingSurface(int index)
std::string GetArgStr(int index)
std::shared_ptr< Document::Module > m_current_module
void ProcessCurrentLine()
WheelPropulsion GetArgPropulsion(int index)
int ParseArgInt(const char *str)
Data structures representing 'truck' file format, see https://docs.rigsofrods.org/vehicle-creation/fi...
std::vector< DifferentialType > DifferentialTypeVec
EngineType GetArgEngineType(int index)
void ParseDirectiveSection()
BitMask_t GetArgCabOptions(int index)
void ParseManagedMaterials()
int TokenizeCurrentLine()