diff --git a/inc/hgl/type/object/TickObject.h b/inc/hgl/type/object/TickObject.h new file mode 100644 index 0000000..5caedb4 --- /dev/null +++ b/inc/hgl/type/object/TickObject.h @@ -0,0 +1,25 @@ +#pragma once +#include + +namespace hgl +{ + /** + */ + class TickObject + { + bool tick; + + public: + + const bool IsTickable()const{return tick;} + + void SetTickEnable(bool t){tick=t;} + + public: + + TickObject(); + virtual ~TickObject(); + + virtual void Tick(double delta_time)=0; + };//class TickObject +}//namespcae hgl