Moved more files around, working on VN engine
This commit is contained in:
@ -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>())
|
||||
;
|
||||
|
Reference in New Issue
Block a user