public void InitAchieveObjiects() { List <Achieve> Achievelist = new List <Achieve>(); var tpls = CSTable.StaticDataManager.AchieveTpl.Dict; foreach (var i in tpls) { Achieve ai = new Achieve(mRole, i.Value); AcceptAchieveData data = GetAchieveData(i.Key); ai.Init(data); Achievelist.Add(ai); } AchieveDict[CSCommon.eAchieveType.Achieve] = Achievelist; List <Achieve> Achievelist2 = new List <Achieve>(); var tpls2 = CSTable.StaticDataManager.AchieveName.Dict; foreach (var i in tpls2) { Achieve ai = new Achieve(mRole, i.Value); AcceptAchieveData data = GetAchieveData(i.Key); ai.Init(data); Achievelist2.Add(ai); } AchieveDict[CSCommon.eAchieveType.AchieveName] = Achievelist2; }
/// <summary> /// 目标完成 /// </summary> public override bool OnFinish(Achieve data) { if (null == data || null == data.mOwner) { return(false); } data.mOwner.RemoveEventListener(EventType.SelectCamp, data, _Common_Listener); return(true); }
/// <summary> /// 目标完成 /// </summary> public override bool OnFinish(Achieve data) { if (null == data || null == data.mOwner) { return(false); } data.mOwner.RemoveEventListener(EventType.UpLevel, data, _UpLevel_Listener); return(true); }
/// <summary> /// 初始化 /// </summary> public override bool OnInit(Achieve data) { if (null == data || null == data.mOwner) { return(false); } data.mOwner.AddEventListener(EventType.Kill, data, __Kill_Listener); return(true); }
/// <summary> /// 目标完成 /// </summary> public virtual bool OnFinish(Achieve data) { return(true); }
/// <summary> /// 初始化 /// </summary> public virtual bool OnInit(Achieve data) { return(true); }