//---------------------------------------------------------------------------------------------------- /// <summary> /// 자식 오브젝트를 얻어온다. /// </summary> /// <param name="id">얻어올 오브젝트 아이디.</param> /// <param name="value">출력될 오브젝트.</param> /// <returns>성공 유무.</returns> //---------------------------------------------------------------------------------------------------- public bool GetChild( uint id, out cObject value ) { lock(m_children) { return m_children.TryGetValue( id, out value ); } }
//---------------------------------------------------------------------------------------------------- /// <summary> /// 자식 오브젝트 추가. /// </summary> /// <param name="id">아이디.</param> /// <param name="value">오브젝트 인스턴스.</param> /// <returns>결과</returns> //---------------------------------------------------------------------------------------------------- public bool AddChild( uint id, cObject value ) { lock(m_children) { if( m_children.ContainsKey( id ) ) return false; m_children.Add( id, value ); return true; } }