Changeset 266 for trunk/nv/root.hh


Ignore:
Timestamp:
06/19/14 03:49:49 (11 years ago)
Author:
epyon
Message:
  • decoupling - uid_store independent of nv::object
  • decoupling - nv::object no longer linked with lua in any way
  • decoupling - gui::element related object methods moved to element
  • uid_store can operate on void* or specialized base class
  • root class no longer carries uid store nor lua state (will be removed later)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/root.hh

    r264 r266  
    2020        {
    2121        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() {}
    2523                template < typename T >
    2624                object* create_object( const std::string& id )
     
    3028                        return o;
    3129                }
    32                 void register_with_lua( object* o, const char* lua_name, const char* storage );
    3330                void destroy_children( object* o );
    3431                virtual void destroy_object( object* o );
    3532                virtual ~root() {}
    3633        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* ) {}
    4135        };
    4236       
Note: See TracChangeset for help on using the changeset viewer.