feat : 보스전 채널 생성, 파티 함께 채널 이동 구현

This commit is contained in:
qornwh1
2026-03-12 13:23:30 +09:00
parent 4956a2e26d
commit 0ebe269146
8 changed files with 268 additions and 27 deletions

View File

@@ -32,4 +32,21 @@ public class PartyInfo
{
return PartyMemberIds.Count;
}
public void DeepCopy(PartyInfo other)
{
this.PartyId = other.PartyId;
this.PartyName = other.PartyName;
this.LeaderId = other.LeaderId;
this.PartyMemberIds.Clear();
this.PartyMemberIds.AddRange(other.PartyMemberIds);
}
public void DeepCopySemi(PartyInfo other)
{
this.PartyId = other.PartyId;
this.PartyName = other.PartyName;
this.LeaderId = other.LeaderId;
this.PartyMemberIds = new List<int>();
}
}

View File

@@ -13,7 +13,7 @@ public class PartyManager
private readonly Dictionary<int, int> playerPartyMap = new();
// 파티 생성
public bool CreateParty(int leaderId, string partyName, out PartyInfo? party)
public bool CreateParty(int leaderId, string partyName, out PartyInfo? party, List<int>? memeberIds = null)
{
party = null;
@@ -23,11 +23,18 @@ public class PartyManager
}
int partyId = partyUuidGenerator.Create();
if (memeberIds == null)
{
memeberIds = new List<int>();
}
party = new PartyInfo
{
PartyId = partyId,
LeaderId = leaderId,
PartyName = partyName,
PartyMemberIds = memeberIds
};
party.PartyMemberIds.Add(leaderId);