Added IF Event Parsing

This commit is contained in:
2023-04-25 23:06:23 -07:00
parent ce2ac8ba1c
commit 60d4b53a33
10 changed files with 127 additions and 16 deletions

View File

@ -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> {