ksys: Add Event (stub)

This commit is contained in:
Léo Lam 2020-11-17 01:27:48 +01:00
parent 4d4edbfe87
commit 5879dbb073
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
4 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,6 @@
add_subdirectory(ActorSystem)
add_subdirectory(Ecosystem)
add_subdirectory(Event)
add_subdirectory(Damage)
add_subdirectory(Framework)
add_subdirectory(GameData)

View File

@ -0,0 +1,4 @@
target_sources(uking PRIVATE
evtManager.cpp
evtManager.h
)

View File

@ -0,0 +1,7 @@
#include "KingSystem/Event/evtManager.h"
namespace ksys::evt {
SEAD_SINGLETON_DISPOSER_IMPL(Manager)
} // namespace ksys::evt

View File

@ -0,0 +1,21 @@
#pragma once
#include <heap/seadDisposer.h>
namespace ksys::evt {
class Event;
// TODO
class Manager {
SEAD_SINGLETON_DISPOSER(Manager)
Manager();
virtual ~Manager();
public:
void init(sead::Heap* heap);
Event* getActiveEvent() const;
};
} // namespace ksys::evt