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 PartyMemberIds { get; set; } = new List(); 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(); } }