engine/include/systems/transform.h
2024-02-24 15:16:30 +00:00

24 lines
580 B
C++

#ifndef ENGINE_INCLUDE_SYSTEMS_TRANSFORM_H_
#define ENGINE_INCLUDE_SYSTEMS_TRANSFORM_H_
#include "ecs.h"
namespace engine {
class TransformSystem : public System {
public:
TransformSystem(Scene* scene);
void OnUpdate(float ts) override;
/*
* 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);
};
} // namespace engine
#endif