2023-05-01 12:55:49 +00:00
|
|
|
#ifndef ENGINE_INCLUDE_SYSTEMS_TRANSFORM_H_
|
|
|
|
#define ENGINE_INCLUDE_SYSTEMS_TRANSFORM_H_
|
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-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-02-24 15:16:30 +00:00
|
|
|
} // namespace engine
|
2023-01-02 17:24:20 +00:00
|
|
|
|
2023-05-01 12:55:49 +00:00
|
|
|
#endif
|