You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
486 B
23 lines
486 B
#pragma once |
|
|
|
#include <memory> // std::shared_ptr |
|
|
|
#include "entt/entity/registry.hpp" // entt::entity, entt::registry |
|
#include "ruc/singleton.h" |
|
|
|
namespace Inferno { |
|
|
|
class TransformSystem final : public ruc::Singleton<TransformSystem> { |
|
public: |
|
TransformSystem(s); |
|
virtual ~TransformSystem(); |
|
|
|
void update(); |
|
|
|
void setRegistry(std::shared_ptr<entt::registry> registry) { m_registry = registry; }; |
|
|
|
private: |
|
std::shared_ptr<entt::registry> m_registry; |
|
}; |
|
|
|
} // namespace Inferno
|
|
|