53 lines
991 B
C#
53 lines
991 B
C#
namespace MMOserver.Game.Party;
|
|
|
|
public class PartyInfo
|
|
{
|
|
public static readonly int partyMemberMax = 3;
|
|
|
|
public int PartyId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int LeaderId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public List<int> PartyMemberIds
|
|
{
|
|
get;
|
|
set;
|
|
} = new List<int>();
|
|
|
|
public string PartyName
|
|
{
|
|
get;
|
|
set;
|
|
} = "";
|
|
|
|
public int GetPartyMemberCount()
|
|
{
|
|
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>();
|
|
}
|
|
}
|