Added IF Event Parsing
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
#include "VNGoToMarkerEventParser.hpp"
|
||||
#include "VNChoiceEventParser.hpp"
|
||||
#include "VNChoiceSetEventParser.hpp"
|
||||
#include "VNIfEventParser.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
struct VNSceneEvent;
|
||||
@ -30,12 +31,19 @@ namespace Dawn {
|
||||
VN_SCENE_EVENT_TYPE_MARKER,
|
||||
VN_SCENE_EVENT_TYPE_GOTO_MARKER,
|
||||
VN_SCENE_EVENT_TYPE_CHOICES,
|
||||
VN_SCENE_EVENT_TYPE_CHOICE_SET
|
||||
VN_SCENE_EVENT_TYPE_CHOICE_SET,
|
||||
VN_SCENE_EVENT_TYPE_IF
|
||||
};
|
||||
|
||||
struct VNParallelEvent {
|
||||
struct VNSceneEventList events;
|
||||
};
|
||||
|
||||
struct VNIfEvent {
|
||||
std::string key;
|
||||
std::string value;
|
||||
struct VNSceneEventList events;
|
||||
};
|
||||
|
||||
struct VNSceneEvent {
|
||||
enum VNSceneEventType type;
|
||||
@ -49,6 +57,7 @@ namespace Dawn {
|
||||
struct VNGoToMarkerEvent gotoMarker;
|
||||
struct VNChoiceEvent choices;
|
||||
struct VNChoiceSetEvent choiceSet;
|
||||
struct VNIfEvent ifEvent;
|
||||
};
|
||||
|
||||
class VNSceneEventsParser : public XmlParser<struct VNSceneEventList> {
|
||||
|
Reference in New Issue
Block a user