feat : 보스전 채널 생성, 파티 함께 채널 이동 구현
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user