More work on State System

This commit is contained in:
2023-03-01 08:03:03 -08:00
parent dfcc14f2a7
commit c658fdd08f
6 changed files with 167 additions and 48 deletions

View File

@ -4,16 +4,9 @@
// https://opensource.org/licenses/MIT
#pragma once
#include "assert/assert.hpp"
#include "StateInterfaces.hpp"
namespace Dawn {
class IStateProperty {
public:
std::vector<std::function<void()>> _effectListners;
std::vector<std::function<std::function<void()>()>> _effectListnersWithTeardown;
std::vector<std::function<void()>> _effectTeardowns;
};
template<class V>
class StateProperty : public IStateProperty {
private: