diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/GameCode/DestroyDelayed.h |
Diffstat (limited to 'Runtime/GameCode/DestroyDelayed.h')
-rw-r--r-- | Runtime/GameCode/DestroyDelayed.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Runtime/GameCode/DestroyDelayed.h b/Runtime/GameCode/DestroyDelayed.h new file mode 100644 index 0000000..f017887 --- /dev/null +++ b/Runtime/GameCode/DestroyDelayed.h @@ -0,0 +1,10 @@ +#ifndef DESTROYDELAYED_H +#define DESTROYDELAYED_H + +class Object; + +/// Destroys object in time seconds +/// If time is not specified will be destroyed at the end of the frame +void DestroyObjectDelayed (Object* o, float time = -100.0F); + +#endif |