public override bool ReloadData(Hashtable table) { #if true //正常代码 if (this.data == null) { return(true); } CacheManager.GetCacheManager().Global_Args_Table = table["globe_args"] as Hashtable; ActionExp[] exps = (this.data as ActionData).ActionExpArray; if (exps != null) { foreach (ActionExp exp in exps) { ExpManager.ReloadExp(exp); } } ScanConst(table); return(true); #else //兼容代码 if (this.data == null) { return(true); } ActionExp[] exps = this.data as ActionExp[]; if (exps != null) { foreach (ActionExp exp in exps) { ExpManager.ReloadExp(exp); } } ScanConst(table); return(true); #endif }
public override bool ReloadData(Hashtable table) { CacheManager.GetCacheManager().Global_Args_Table = table["globe_args"] as Hashtable; Exp exp = this.data as Exp; if (exp != null) { ExpManager.ReloadExp(exp); } ScanConst(table); return(true); }
public override bool ReloadData(Hashtable table) { ConditionData cd = this.data as ConditionData; CacheManager.GetCacheManager().Global_Args_Table = table["globe_args"] as Hashtable; if (cd != null) { object[] olist = cd.datalist; if (olist != null) { Exp exp = olist[0] as Exp; List <Exp> elist = olist[1] as List <Exp>; ExpManager.ReloadExp(exp); foreach (Exp ex in elist) { ExpManager.ReloadExp(ex); } } } ScanConst(table); return(true); }