remove some bloated namespacing

This commit is contained in:
Benjamin Kyd
2022-05-19 23:47:04 +01:00
parent 19cacf248d
commit 411200ddaa
17 changed files with 49 additions and 48 deletions

View File

@@ -3,21 +3,21 @@
#include <Aeon/Aeon.hpp>
#include <Aeon/Core/Events.hpp>
class BackgroundLevel : public Aeon::Core::GameLayer {
class BackgroundLevel : public Core::GameLayer {
};
class Level : public Aeon::Core::GameLayer
class Level : public Core::GameLayer
{
public:
Level()
{
PushThisAsSink("ENGINE_INPUT_KEYBOARD");
Aeon::Core::EventManager::GetInstance().DebugPrint();
{
Core::EventManager::GetInstance().DebugPrint();
}
void Attach() override
{
}
void FrameTick() override
@@ -30,13 +30,8 @@ public:
}
bool EventRecieved( Aeon::Core::GenericEvent& e ) override
bool EventRecieved( Core::GenericEvent& e ) override
{
std::cout << "FROM LEVEL " << e.Type << " " << (char)e.keyCode << std::endl;
if ( e.keyMods & Aeon::Input::EModCode::SHIFT ) {
std::cout << "Shift" << std::endl;
}
return false;
}
@@ -47,14 +42,14 @@ public:
}
};
class ExampleGame : public Aeon::Core::App
class ExampleGame : public Core::App
{
public:
ExampleGame()
: App( { "Example" }, { "Game with AEON!" } )
{
Level* level = new Level;
PushLayer( (Aeon::Core::GameLayer*)level );
PushLayer( (Core::GameLayer*)level );
Run();
delete level;
}