Changeset 256 for trunk/nv/root.hh


Ignore:
Timestamp:
06/14/14 21:06:00 (11 years ago)
Author:
epyon
Message:
  • various minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/root.hh

    r215 r256  
    2222                virtual void child_added( object* ) {}
    2323                virtual void child_removed( object* ) {}
     24                virtual void object_created( object* o );
     25                virtual void object_destroyed( object* o );
    2426                lua::state*    get_lua_state()     const { return m_lua_state; }
    2527                uid_store*     get_uid_store()     const { return m_uid_store; }
    26                 virtual ~root() { destroy_children(); }
     28                virtual ~root()
     29                {
     30                        object_destroyed( this );
     31                        destroy_children();
     32                        m_root = nullptr;
     33                }
    2734        protected:
    2835                lua::state*    m_lua_state;
Note: See TracChangeset for help on using the changeset viewer.