First real pass at VN Event Parsing
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user