Rigs of Rods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
source
main
resources
skin_fileformat
SkinFileFormat.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2020 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
#include "
Application.h
"
25
26
#include <OgreResourceManager.h>
27
28
#include <map>
29
#include <vector>
30
#include <string>
31
#include <memory>
32
33
namespace
RoR
{
34
35
struct
SkinDocument
36
{
37
SkinDocument
():
author_id
(-1) {}
38
39
std::map<std::string, std::string>
replace_textures
;
40
std::map<std::string, std::string>
replace_materials
;
41
std::string
name
;
42
std::string
guid
;
43
std::string
thumbnail
;
44
std::string
description
;
45
std::string
author_name
;
46
int
author_id
;
47
};
35
struct
SkinDocument
{
…
};
48
49
class
SkinParser
50
{
51
public
:
52
53
static
std::vector<SkinDocumentPtr>
ParseSkins
(Ogre::DataStreamPtr& stream);
54
55
private
:
56
57
static
void
ParseSkinAttribute
(
const
std::string& line,
SkinDocument
* skin_def);
58
};
49
class
SkinParser
{
…
};
59
60
};
// namespace RoR
Application.h
Central state/object manager and communications hub.
RoR::SkinParser
Definition
SkinFileFormat.h:50
RoR::SkinParser::ParseSkinAttribute
static void ParseSkinAttribute(const std::string &line, SkinDocument *skin_def)
Definition
SkinFileFormat.cpp:91
RoR::SkinParser::ParseSkins
static std::vector< SkinDocumentPtr > ParseSkins(Ogre::DataStreamPtr &stream)
Definition
SkinFileFormat.cpp:34
RoR
Definition
AppContext.h:36
RoR::SkinDocument
Definition
SkinFileFormat.h:36
RoR::SkinDocument::replace_textures
std::map< std::string, std::string > replace_textures
Definition
SkinFileFormat.h:39
RoR::SkinDocument::author_name
std::string author_name
Definition
SkinFileFormat.h:45
RoR::SkinDocument::guid
std::string guid
Definition
SkinFileFormat.h:42
RoR::SkinDocument::thumbnail
std::string thumbnail
Definition
SkinFileFormat.h:43
RoR::SkinDocument::description
std::string description
Definition
SkinFileFormat.h:44
RoR::SkinDocument::author_id
int author_id
Definition
SkinFileFormat.h:46
RoR::SkinDocument::name
std::string name
Definition
SkinFileFormat.h:41
RoR::SkinDocument::replace_materials
std::map< std::string, std::string > replace_materials
Definition
SkinFileFormat.h:40
RoR::SkinDocument::SkinDocument
SkinDocument()
Definition
SkinFileFormat.h:37
Generated on Fri Jan 2 2026 09:37:03 for Rigs of Rods by
1.9.8