Changeset 266 for trunk/nv/root.hh
- Timestamp:
- 06/19/14 03:49:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/root.hh
r264 r266 20 20 { 21 21 public: 22 root() : m_lua_state( nullptr ), m_uid_store( nullptr ) {} 23 lua::state* get_lua_state() const { return m_lua_state; } 24 uid_store* get_uid_store() const { return m_uid_store; } 22 root() {} 25 23 template < typename T > 26 24 object* create_object( const std::string& id ) … … 30 28 return o; 31 29 } 32 void register_with_lua( object* o, const char* lua_name, const char* storage );33 30 void destroy_children( object* o ); 34 31 virtual void destroy_object( object* o ); 35 32 virtual ~root() {} 36 33 protected: 37 virtual void object_created( object* o ); 38 39 lua::state* m_lua_state; 40 uid_store* m_uid_store; 34 virtual void object_created( object* ) {} 41 35 }; 42 36
Note: See TracChangeset
for help on using the changeset viewer.