Refactored existing systems to register their own components and resource types.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#include "FreeSteeringSystem.h"
|
||||
#include "World.h"
|
||||
|
||||
Systems::FreeSteeringSystem::FreeSteeringSystem(World* world) : System(world)
|
||||
void Systems::FreeSteeringSystem::RegisterComponents(ComponentFactory* cf)
|
||||
{
|
||||
|
||||
cf->Register("FreeSteering", []() { return new Components::FreeSteering(); });
|
||||
}
|
||||
|
||||
void Systems::FreeSteeringSystem::Update(double dt)
|
||||
@@ -68,4 +68,4 @@ void Systems::FreeSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit
|
||||
// TOUCHING THIS CODE MIGHT CAUSE THE UNIVERSE TO IMPLODE, ALSO DRAGONS
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user