using System; using System.Collections.Generic; using System.Text; namespace ET { public enum TeamRequstType { Request, Invite } public enum TeamState { None, Fight, Transfer } public enum TeamType { Self, Target, } public class Team:Entity { public long LeaderId { get; set; } public int MemberCount => teamMemberList.Count; public TeamState TeamState { get; set; } //public Dictionary teamMemberDic = new Dictionary(); public List teamMemberIds = new List(); public HashSet offLineUnits = new HashSet(); public HashSet voteList = new HashSet(); public LinkedList teamMemberList = new(); public override string ToString() { string name = null; foreach (var u in teamMemberList) { name += $"【{ UserComponent.Instance.Get(u.Id)?.NickName}({u.Id})】"; } return name; } } }