Debian Codegraph @

src/common/datakeywords.hpp

raw symbols SCIP
1 // This file is part of Dust Racing 2D.
2 // Copyright (C) 2019 Jussi Lind <[email protected]>
3 //
4 // Dust Racing 2D is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 // Dust Racing 2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Dust Racing 2D. If not, see <http://www.gnu.org/licenses/>.
15
16 #ifndef DATAKEYWORDS_HPP
17 #define DATAKEYWORDS_HPP
18
19 /** Keywords used in the track data files. */
20 namespace DataKeywords {
21 namespace Header {
22 static constexpr auto version = "version";
23
24 static constexpr auto track = "track";
25
26 static constexpr auto name = "name";
27
28 static constexpr auto cols = "cols";
29
30 static constexpr auto rows = "rows";
31
32 static constexpr auto index = "index";
33
34 static constexpr auto user = "isUserTrack";
35 } // namespace Header
36
37 namespace Track {
38 static constexpr auto node = "n";
39
40 static constexpr auto tile = "t";
41
42 static constexpr auto object = "o";
43 } // namespace Track
44
45 namespace Node {
46 static constexpr auto index = "i";
47
48 static constexpr auto x = "x";
49
50 static constexpr auto y = "y";
51
52 static constexpr auto width = "w";
53
54 static constexpr auto height = "h";
55 } // namespace Node
56
57 namespace Tile {
58 static constexpr auto type = "t";
59
60 static constexpr auto i = "i";
61
62 static constexpr auto j = "j";
63
64 static constexpr auto orientation = "o";
65
66 static constexpr auto computerHint = "c";
67
68 static constexpr auto excludeFromMinimap = "e";
69 } // namespace Tile
70
71 namespace Object {
72 static constexpr auto role = "r";
73
74 static constexpr auto category = "c";
75
76 static constexpr auto x = "x";
77
78 static constexpr auto y = "y";
79
80 static constexpr auto orientation = "o";
81
82 static constexpr auto forceStationary = "fs";
83 } // namespace Object
84 } // namespace DataKeywords
85
86 #endif // DATAKEYWORDS_HPP