Moved more files around, working on VN engine

This commit is contained in:
2023-04-20 14:08:02 -07:00
parent 6d86fc10bc
commit cacda495d3
5 changed files with 103 additions and 11 deletions

View File

@ -9,6 +9,7 @@
#include "prefabs/SimpleSpinningCubePrefab.hpp"
#include "games/vn/components/VNManager.hpp"
#include "games/vn/events/VNDummyEvent.hpp"
#include "games/vn/events/VNPositionEvent.hpp"
namespace Dawn {
class HelloWorldScene : public Scene {
@ -29,7 +30,14 @@ namespace Dawn {
auto vnManager = vnItem->addComponent<VNManager>();
auto eventTest = vnManager->createEvent<VNDummyEvent>();
auto positionEvent = vnManager->createEvent<VNPositionEvent>();
positionEvent->x = 2.0f;
positionEvent->item = cube;
positionEvent->duration = 3.0f;
eventTest
->then(positionEvent)
->then(vnManager->createEvent<VNDummyEvent>())
->then(vnManager->createEvent<VNDummyEvent>())
;