25 lines
660 B
C++
25 lines
660 B
C++
#include "HydraTickActorsSystem.h"
|
|
#include "../../actor/HydraActorManager.h"
|
|
#include "../components/HydraTickComponent.h"
|
|
#include "../HydraECS.h"
|
|
|
|
void HydraTickActorsSystem::FixedUpdate(float delta_t_seconds)
|
|
{
|
|
HydraActorManager* actor_manager = GetEngine()->ActorManager();
|
|
HydraECS* ecs = GetEngine()->ECS();
|
|
|
|
|
|
for(HydraID entity_id:Entities)
|
|
{
|
|
HydraTickComponent tick_comp = ecs->GetComponent<HydraTickComponent>(entity_id);
|
|
if(tick_comp.fixed)
|
|
{
|
|
actor_manager->FixedTickActor(entity_id, delta_t_seconds);
|
|
}
|
|
}
|
|
}
|
|
|
|
void HydraTickActorsSystem::UpdateSystem(float delta_t_seconds)
|
|
{
|
|
|
|
} |