-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.cpp
More file actions
22 lines (19 loc) · 768 Bytes
/
application.cpp
File metadata and controls
22 lines (19 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "Cardinal/Global/DI.hpp"
#include "Cardinal/Core.hpp"
#include "vendor/boost/di.hpp"
#include "Cardinal/Service/Services.hpp"
#include "Cardinal/Event/TestEvent.hpp"
#include "Cardinal/Event/Player/Movement.hpp"
#include "Cardinal/Component/Event/Registry.hpp"
int main()
{
// Register event.
Cardinal::Component::Event::Registry::Register<Cardinal::Event::TestEvent>();
Cardinal::Component::Event::Registry::Register<Cardinal::Event::Player::Movement>();
// Currently, this will auto-start the framework.
auto di = std::make_shared<Cardinal::Global::DI>();
// @todo: Starting the framework should be a separate step.
// Start framework.
// Cardinal::Core::Start(di);
// cardinalFramework->Init(); // Start framework.
}