public void Store( Type key, IEntity obj, bool cache ) { if ( cache ) m_Table[key] = obj; if ( obj is Item ) AddItem( (Item)obj ); else if ( obj is Mobile ) m_Mobiles.Add( (Mobile)obj ); }