Removed Initialize function for systems.
This commit is contained in:
@@ -15,7 +15,6 @@ public:
|
||||
, m_ComponentType(componentType)
|
||||
{ }
|
||||
|
||||
virtual void Initialize() { }
|
||||
virtual void Update(World* world, ComponentWrapper& component, double dt) = 0;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -21,16 +21,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
for (auto& pair : m_Systems) {
|
||||
auto& systems = pair.second;
|
||||
for (auto& system : systems) {
|
||||
system->Initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T, typename... Arguments>
|
||||
void AddSystem(Arguments... args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user