added queuing push and pop logic and having fun with c# integration
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
#include <memory>
|
||||
#include <sandbox2d.hpp>
|
||||
#include <sandbox.hpp>
|
||||
#include <control_layer.hpp>
|
||||
#include <modding.hpp>
|
||||
|
||||
#include <open_engine/entry_point.hpp>
|
||||
|
||||
Sandbox::Sandbox()
|
||||
{
|
||||
PushLayer(new SandboxLayer());
|
||||
OpenEngine::Ref<Sandbox2DLayer> initial_layer = std::make_shared<Sandbox2DLayer>();
|
||||
OpenEngine::Ref<ControlLayer> control_layer = std::make_shared<ControlLayer>(initial_layer);
|
||||
OpenEngine::Ref<Modding> modding_layer = std::make_shared<Modding>();
|
||||
|
||||
QueueLayerPush(modding_layer);
|
||||
QueueLayerPush(control_layer);
|
||||
QueueLayerPush(initial_layer);
|
||||
}
|
||||
|
||||
Sandbox::~Sandbox()
|
||||
|
||||
Reference in New Issue
Block a user