mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
21 lines
496 B
C++
21 lines
496 B
C++
#pragma once
|
|
|
|
#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
|