PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
meta_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 #ifndef META_FILEDATA_H
19 #define META_FILEDATA_H
20 
21 #include "pge_file_lib_globs.h"
22 
23 //Editor's headers shouldn't appears in the engine
24 #ifdef PGE_EDITOR
25 #include <script/scriptholder.h>
26 #endif
27 
31 struct Bookmark
32 {
34  double x;
35  double y;
36 };
37 
38 #ifdef PGE_EDITOR
39 
42 class CrashData
43 {
44 public:
48  explicit CrashData();
53  CrashData(const CrashData &_cd);
58  CrashData(CrashData &_cd);
62  void reset();
64  bool used;
66  bool untitled;
68  bool modifyed;
70  PGESTRING fullPath;
72  PGESTRING path;
74  PGESTRING filename;
75 };
76 #endif
77 
81 struct MetaData
82 {
84  PGEVECTOR<Bookmark> bookmarks;
85 
86  /* For Editor application only*/
87  #ifdef PGE_EDITOR
88  CrashData crash;
90  //only for level
92  ScriptHolder* script;
93  #endif
94 
104 };
105 
106 #endif // META_FILEDATA_H
Position bookmark entry structure.
Definition: meta_filedata.h:31
#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
double y
Bookmarked Y position of the camera.
Definition: meta_filedata.h:35
double x
Bookmarked X position of the camera.
Definition: meta_filedata.h:34
PGESTRING ERROR_linedata
[Used by file parses] Contains data of line in the file where error was occopued
Definition: meta_filedata.h:101
bool ReadFileValid
Definition: meta_filedata.h:97
Contains additional helpful meda-data used by PGE Applications.
Definition: meta_filedata.h:81
PGESTRING bookmarkName
Name of bookmark.
Definition: meta_filedata.h:33
int ERROR_linenum
[Used by file parses] Contains number of line in the file where error was occouped ...
Definition: meta_filedata.h:103
PGEVECTOR< Bookmark > bookmarks
Array of all position bookmarks presented in the opened file.
Definition: meta_filedata.h:84
PGESTRING ERROR_info
[Used by file parses] Contains description of error
Definition: meta_filedata.h:99
Contains internal settings and references for PGE File Library.