Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 2, 2016, 8:59:12 PM (8 years ago)
Author:
landauf
Message:

I think it's sufficient if Timer is a Listable. A timer is often used as a member object in other classes, so it's probably a bad idea to make it a Destroyable since it will neither be deleted with destroy() nor will it survive the lifespan of its parent even if a StrongPtr references it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/tools/Timer.h

    r9667 r11018  
    7979#include "tools/ToolsPrereqs.h"
    8080
    81 #include "core/class/OrxonoxClass.h"
     81#include "core/object/Listable.h"
    8282#include "core/command/ExecutorPtr.h"
    8383
     
    102102        on the game time.
    103103    */
    104     class _ToolsExport Timer : public OrxonoxClass
     104    class _ToolsExport Timer : public Listable
    105105    {
    106106        public:
Note: See TracChangeset for help on using the changeset viewer.