using System.Collections.Generic; using ET; namespace GFGGame { public class LeagueDataManager : SingletonBase { public int Type = 2;// 1:已经加入军团 2:未加入军团 public LeagueData LeagueData;//联盟信息 public Dictionary ListDatas = new Dictionary();//联盟列表 public Dictionary ListApplyDatas = new Dictionary();//联盟申请列表 public List ListLogDatas = new List();//日志数据 public void Clear() { Type = 2; ListDatas.Clear(); LeagueData = null; ListApplyDatas.Clear(); ListLogDatas.Clear(); } public void UpdateNumeric(int type, long value) { switch (type) { case LeagueNumericType.HallLevel: LeagueData.HallLevel = (int)value; break; case LeagueNumericType.HotelLevel: LeagueData.HotelLevel = (int)value; break; case LeagueNumericType.StoreLevel: LeagueData.StoreLevel = (int)value; break; case LeagueNumericType.LowKeepDay: LeagueData.LowKeepDay = value; break; case LeagueNumericType.LeagueCoin: LeagueData.LeagueCoin = value; break; case LeagueNumericType.DayAdd: LeagueData.DayAdd = value; break; case LeagueNumericType.NeedAudit: LeagueData.NeedAudit = value == 0 ? false : true; //0不用 1需要 break; } } public string GetMemberTitle(int pos) { string title = ""; switch (pos) { case LeaguePos.Owner: title = "会长"; break; case LeaguePos.SubOwner: title = "副会长"; break; case LeaguePos.Flower: title = "会花"; break; case LeaguePos.Member: title = "成员"; break; } return title; } } }