Reset: event manager can be unbound.
This commit is contained in:
@@ -38,6 +38,12 @@ void SGTimer::run()
|
|||||||
(*callback)();
|
(*callback)();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SGEventMgr::unbind()
|
||||||
|
{
|
||||||
|
_freezeProp.clear();
|
||||||
|
_rtProp.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void SGEventMgr::update(double delta_time_sec)
|
void SGEventMgr::update(double delta_time_sec)
|
||||||
{
|
{
|
||||||
_simQueue.update(delta_time_sec);
|
_simQueue.update(delta_time_sec);
|
||||||
|
|||||||
@@ -73,7 +73,8 @@ public:
|
|||||||
|
|
||||||
virtual void init() {}
|
virtual void init() {}
|
||||||
virtual void update(double delta_time_sec);
|
virtual void update(double delta_time_sec);
|
||||||
|
virtual void unbind();
|
||||||
|
|
||||||
void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
|
void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user