added TickObject
This commit is contained in:
parent
d07baa9c71
commit
11e32b77f1
25
inc/hgl/type/object/TickObject.h
Normal file
25
inc/hgl/type/object/TickObject.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#pragma once
|
||||||
|
#include<hgl/type/object/Object.h>
|
||||||
|
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user