Game Develop Core: Serialization.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
Serialization.h
Go to the documentation of this file.
1
5 #ifndef GDCORE_EVENTS_SERIALIZATION_H
6 #define GDCORE_EVENTS_SERIALIZATION_H
7 #include "GDCore/TinyXml/tinyxml.h"
8 #include "GDCore/Events/Event.h"
9 #include "GDCore/Events/Instruction.h"
10 #include <boost/shared_ptr.hpp>
11 #include <vector>
12 class TiXmlElement;
13
14 namespace gd
15 {
16
20 class GD_CORE_API EventsListSerialization
21 {
22 public:
29 static void LoadEventsFromXml(gd::Project & project, std::vector < boost::shared_ptr<gd::BaseEvent> > & list, const TiXmlElement * events);
30
36 static void SaveEventsToXml(const std::vector < boost::shared_ptr<gd::BaseEvent> > & list, TiXmlElement * events);
37
41 static void OpenConditions(gd::Project & project, std::vector < gd::Instruction > & list, const TiXmlElement * elem);
42
46 static void OpenActions(gd::Project & project, std::vector < gd::Instruction > & list, const TiXmlElement * elem);
47
51 static void SaveConditions(const std::vector < gd::Instruction > & list, TiXmlElement * elem);
52
56 static void SaveActions(const std::vector < gd::Instruction > & list, TiXmlElement * elem);
57
63 static void UpdateInstructionsFromGD2x(gd::Project & project, std::vector < gd::Instruction > & list, bool instructionsAreActions);
64
70 static void UpdateInstructionsFromGD31x(gd::Project & project, std::vector < gd::Instruction > & list, bool instructionsAreActions);
71 };
72
73 }
74
75 #endif // GDCORE_EVENTS_SERIALIZATION_H