First real pass at VN Event Parsing

This commit is contained in:
2023-04-22 22:50:20 -07:00
parent 72a0bb9192
commit c269841236
27 changed files with 476 additions and 60 deletions

View File

@ -12,6 +12,7 @@
#include "games/vn/events/VNTextEvent.hpp"
#include "games/vn/events/VNPositionEvent.hpp"
#include "games/vn/events/VNSetEvent.hpp"
#include "games/vn/events/VNChoiceEvent.hpp"
namespace Dawn {
class HelloWorldScene : public Scene {
@ -47,10 +48,19 @@ namespace Dawn {
setPropertyEvent->modifies = &test;
setPropertyEvent->to = 10;
auto choiceEvent = vnManager->createEvent<VNChoiceEvent>();
choiceEvent->text = "Choice?";
choiceEvent->choices["state0"] = "State 0";
choiceEvent->choices["state1"] = "State 1";
choiceEvent->choices["state2"] = "State 2";
choiceEvent->choices["state3"] = "State 3";
eventTest
->then(positionEvent)
->then(vnTextEvent)
->then(setPropertyEvent)
->then(choiceEvent)
;
vnManager->setEvent(eventTest);
}