feat : 파티 정보 업데이트 기능 추가
This commit is contained in:
@@ -119,6 +119,27 @@ public class PartyManager
|
||||
return true;
|
||||
}
|
||||
|
||||
// 파티 업데이트
|
||||
public bool UpdateParty(int leaderId, int partyId, out PartyInfo? party)
|
||||
{
|
||||
party = null;
|
||||
|
||||
if (!parties.TryGetValue(partyId, out party))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (party.LeaderId != leaderId)
|
||||
{
|
||||
party = null;
|
||||
return false; // 리더만 업데이트 가능
|
||||
}
|
||||
|
||||
// 파티 이름 변경
|
||||
party.PartyName = party.PartyName;
|
||||
return true;
|
||||
}
|
||||
|
||||
// 전체 파티 목록 조회
|
||||
public IEnumerable<PartyInfo> GetAllParties()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user