ScreenOptionsMaster::~ScreenOptionsMaster()
{
	FOREACH( OptionRow*, m_Rows, r )
		(*r)->DetachHandler();
	FOREACH( OptionRowHandler*, OptionRowHandlers, h )
		SAFE_DELETE( *h );
	OptionRowHandlers.clear();
}
Пример #2
0
		void PhysicalGroup::AttachHandler(PhysicsHandler *handler)
		{
			if(m_physicsHandler != handler)
			{
				DetachHandler();

				m_physicsHandler = handler;
				handler->m_referenceGroup = this;
				handler->Initialize();
			}
		}