more consistent naming

This commit is contained in:
benkyd
2022-06-07 19:01:13 +00:00
parent 430e3e5e69
commit 86d71b1167
8 changed files with 37 additions and 4 deletions

View File

@@ -9,11 +9,16 @@
#include "Aeon/Core/GameLayer.hpp"
#include "Aeon/Input/Input.hpp"
namespace Core {
namespace Core
{
// NOTE: Derivations / children of "App" cannot attatch
// event listeners to themselves, the programmer must
// first add a gamelayer to handle events
// App stores the GLOBAL gamestate
// It is OK to store this globally
// every component needs to use state
class App : public EventListener
{
public:

View File

@@ -7,6 +7,9 @@ using Core::EventListener;
using Core::EventDispatcher;
using Core::EventManager;
// TODO: Events should use pre-allocated memory ALWAYS!
// TODO: Look into Bump Allocation
EventListener::EventListener()
{

View File

@@ -22,7 +22,8 @@
#include "Aeon/Singleton.hpp"
#include "Aeon/Input/InputMap.hpp"
namespace Core {
namespace Core
{
// THis needs some redesigning so i can do this.AttachSpecificListener(Type, Action, [&] => {...})
// More specifically to support enumerator calling AND custom defined string calling

10
Aeon/Entity/Entity.hpp Normal file
View File

@@ -0,0 +1,10 @@
namespace EC
{
struct Entity
{
uint32_t id;
};
}

View File

@@ -0,0 +1,4 @@

View File

@@ -0,0 +1,8 @@
namespace EC
{
}

View File

@@ -8,7 +8,8 @@
#include "Aeon/Singleton.hpp"
#include "Aeon/Core/Events.hpp"
namespace Input {
namespace Input
{
class InputController : public Helpers::Singleton<InputController>
{

View File

@@ -1,7 +1,8 @@
#ifndef AEON_SINGLETON_H_
#define AEON_SINGLETON_H_
namespace Helpers {
namespace Helpers
{
template <class T>
class Singleton