mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
24 lines
510 B
C
24 lines
510 B
C
|
#ifndef ENGINE_INCLUDE_CUSTOM_BEHAVIOUR_H_
|
||
|
#define ENGINE_INCLUDE_CUSTOM_BEHAVIOUR_H_
|
||
|
|
||
|
#include "ecs_system.h"
|
||
|
|
||
|
/* This system allows for one-off custom components that execute arbitrary code
|
||
|
* It is similar to Unity's 'MonoBehavior' system */
|
||
|
|
||
|
namespace engine {
|
||
|
|
||
|
class CustomBehaviourSystem : public System {
|
||
|
public:
|
||
|
CustomBehaviourSystem(Scene* scene);
|
||
|
~CustomBehaviourSystem();
|
||
|
|
||
|
void OnUpdate(float ts) override;
|
||
|
|
||
|
private:
|
||
|
|
||
|
};
|
||
|
|
||
|
} // namespace engine
|
||
|
|
||
|
#endif
|