Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
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
33namespace RoR {
34
36{
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;
47};
48
50{
51public:
52
53 static std::vector<SkinDocumentPtr> ParseSkins(Ogre::DataStreamPtr& stream);
54
55private:
56
57 static void ParseSkinAttribute(const std::string& line, SkinDocument* skin_def);
58};
59
60}; // namespace RoR
Central state/object manager and communications hub.
static void ParseSkinAttribute(const std::string &line, SkinDocument *skin_def)
static std::vector< SkinDocumentPtr > ParseSkins(Ogre::DataStreamPtr &stream)
std::map< std::string, std::string > replace_textures
std::string author_name
std::string thumbnail
std::string description
std::map< std::string, std::string > replace_materials