//---------------------------------------------------------------------------------------------------- /// <summary> /// 파티를 얻어온다. /// </summary> /// <param name="party_id">얻어올 파티 아이디.</param> /// <param name="party">출력될 파티 객체.</param> /// <returns>성공 유무.</returns> //---------------------------------------------------------------------------------------------------- public bool GetParty( uint party_id, out cParty party ) { lock(m_parties) { return m_parties.TryGetValue( party_id, out party ); } }
//---------------------------------------------------------------------------------------------------- /// <summary> /// 파티 : 추가 /// </summary> /// <returns>파티 객체</returns> //---------------------------------------------------------------------------------------------------- public cParty AddParty( byte max_user ) { lock(m_parties) { cParty party = new cParty(max_user); m_parties.Add( party.PartyID, party ); return party; } }