PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
wld_filedata.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2014-2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef WLD_FILEDATA_H
20 #define WLD_FILEDATA_H
21 
22 #include "pge_file_lib_globs.h"
23 #include "meta_filedata.h"
24 
26 struct WorldTiles
27 {
28  long x;
29  long y;
30  unsigned long id;
31 
32  //editing
33  unsigned int array_id;
34  unsigned int index;
35 };
36 
38 {
39  long x;
40  long y;
41  unsigned long id;
42 
43  //editing
44  unsigned int array_id;
45  unsigned int index;
46 };
47 
48 struct WorldPaths
49 {
50  long x;
51  long y;
52  unsigned long id;
53 
54  //editing
55  unsigned int array_id;
56  unsigned int index;
57 };
58 
60 {
61  long x;
62  long y;
63  unsigned long id;
64  PGESTRING lvlfile;
65  PGESTRING title;
66  int top_exit;
67  int left_exit;
68  int bottom_exit;
69  int right_exit;
70  unsigned long entertowarp;
71  bool alwaysVisible;
72  bool pathbg;
73  bool gamestart;
74  long gotox;
75  long gotoy;
76  bool bigpathbg;
77 
78  //editing
79  unsigned int array_id;
80  unsigned int index;
81 };
82 
83 struct WorldMusic
84 {
85  long x;
86  long y;
87  unsigned long id;
88  PGESTRING music_file;
89 
90  //editing
91  unsigned int array_id;
92  unsigned int index;
93 };
94 
95 struct WorldData
96 {
97  bool ReadFileValid;
98  PGESTRING ERROR_info;
99  PGESTRING ERROR_linedata;
100  int ERROR_linenum;
101 
102  PGESTRING EpisodeTitle;
103  bool nocharacter1;
104  bool nocharacter2;
105  bool nocharacter3;
106  bool nocharacter4;
107  bool nocharacter5;
108 
109  PGELIST<bool > nocharacter;
110 
111  PGESTRING IntroLevel_file;
112  bool HubStyledWorld;
113  bool restartlevel;
114 
115  unsigned int stars;
116 
117  PGESTRING authors;
118  PGESTRING author1;
119  PGESTRING author2;
120  PGESTRING author3;
121  PGESTRING author4;
122  PGESTRING author5;
123 
124  PGELIST<WorldTiles > tiles;
125  unsigned int tile_array_id;
126  PGELIST<WorldScenery > scenery;
127  unsigned int scene_array_id;
128  PGELIST<WorldPaths > paths;
129  unsigned int path_array_id;
130  PGELIST<WorldLevels > levels;
131  unsigned int level_array_id;
132  PGELIST<WorldMusic > music;
133  unsigned int musicbox_array_id;
134 
135  //meta:
136  MetaData metaData;
137 
138  //editing:
139  int CurSection;
140  bool playmusic;
141  int currentMusic;
142  bool modified;
143  bool untitled;
144  bool smbx64strict;
145  PGESTRING filename;
146  PGESTRING path;
147 
148 };
149 
150 #endif // WLD_FILEDATA_H
Definition: wld_filedata.h:26
#define PGESTRING
A macro which equal to std::string if PGE File Library built in the STL mode and equal to QString if ...
Definition: pge_file_lib_globs.h:97
Definition: wld_filedata.h:95
Definition: wld_filedata.h:59
Contains additional helpful meda-data used by PGE Applications.
Definition: meta_filedata.h:81
Definition: wld_filedata.h:48
Definition: wld_filedata.h:83
Definition: wld_filedata.h:37
Contains internal settings and references for PGE File Library.