engine/include/systems/transform.h

21 lines
496 B
C
Raw Permalink Normal View History

2024-03-31 10:11:22 +00:00
#pragma once
2023-01-02 17:24:20 +00:00
2023-09-19 07:40:45 +00:00
#include "ecs.h"
2023-01-02 17:24:20 +00:00
namespace engine {
2024-02-24 15:16:30 +00:00
class TransformSystem : public System {
2023-01-02 17:24:20 +00:00
2024-02-24 15:16:30 +00:00
public:
TransformSystem(Scene* scene);
2023-01-02 17:24:20 +00:00
2024-02-24 15:16:30 +00:00
void OnUpdate(float ts) override;
2023-01-02 17:24:20 +00:00
2024-03-31 10:11:22 +00:00
/*
2024-02-24 15:16:30 +00:00
* Linear-searches for an entity that matches the arguments' criteria.
* Take care not to create multiple entities under a parent with the same tag, as this search will only find the first in the list.
*/
Entity GetChildEntity(Entity parent, const std::string& tag);
};
2023-01-02 17:24:20 +00:00
2024-03-31 10:11:22 +00:00
} // namespace engine