1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System.Collections.Generic;
- using ET;
- namespace GFGGame
- {
- public class LeagueDataManager : SingletonBase<LeagueDataManager>
- {
- public int Type = 2;// 1:已经加入军团 2:未加入军团
- public LeagueData LeagueData;//联盟信息
- public Dictionary<long, LeagueListData> ListDatas = new Dictionary<long, LeagueListData>();//联盟列表
- public Dictionary<long, OtherRoleInfoData> ListApplyDatas = new Dictionary<long, OtherRoleInfoData>();//联盟申请列表
- public List<LeagueLogData> ListLogDatas = new List<LeagueLogData>();//日志数据
- 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;
- }
- }
- }
|