feat : 파티 정보 업데이트 기능 추가

This commit is contained in:
qornwh1
2026-03-11 15:09:06 +09:00
parent 1487082cc6
commit 056ec8d0c3
4 changed files with 79 additions and 1 deletions

View File

@@ -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()
{