more consistent naming
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
|
||||
@@ -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
10
Aeon/Entity/Entity.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
namespace EC
|
||||
{
|
||||
|
||||
struct Entity
|
||||
{
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
}
|
||||
4
Aeon/Entity/EntityController.cpp
Normal file
4
Aeon/Entity/EntityController.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
8
Aeon/Entity/EntityController.hpp
Normal file
8
Aeon/Entity/EntityController.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
namespace EC
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "Aeon/Singleton.hpp"
|
||||
#include "Aeon/Core/Events.hpp"
|
||||
|
||||
namespace Input {
|
||||
namespace Input
|
||||
{
|
||||
|
||||
class InputController : public Helpers::Singleton<InputController>
|
||||
{
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#ifndef AEON_SINGLETON_H_
|
||||
#define AEON_SINGLETON_H_
|
||||
|
||||
namespace Helpers {
|
||||
namespace Helpers
|
||||
{
|
||||
|
||||
template <class T>
|
||||
class Singleton
|
||||
|
||||
Reference in New Issue
Block a user