using System; using KKSG; namespace XMainClient { internal struct XUnitAppearanceTeam { public bool bHasTeam { get { return this.teamID > 0u; } } public uint teamID; public bool bPwd; public void SetData(UnitAppearanceTeam data) { bool flag = data == null; if (flag) { this.teamID = 0u; this.bPwd = false; } else { this.teamID = data.teamid; this.bPwd = data.haspassword; } } } }