Ejemplo n.º 1
0
        public void OnUpdateFinalStatusData()
        {
            AllFinalStatusDataList.Clear();
            ArrayList battleFieldList;

            DataLookupsCache.Instance.SearchDataByID <ArrayList>("allianceWar.semiOrFinalStatus", out battleFieldList);
            if (battleFieldList != null)
            {
                for (int i = 0; i < battleFieldList.Count; i++)
                {
                    FinalStatusData data = new FinalStatusData();
                    data.Parse(battleFieldList[i]);
                    AllFinalStatusDataList.Add(data);
                }
            }
        }
Ejemplo n.º 2
0
        private FinalStatusData Parse(object value, int id)
        {
            if (value == null)
            {
                return(new FinalStatusData());
            }
            FinalStatusData item = new FinalStatusData();

            item.Parse(value);

            /*item.FieldNumber = EB.Dot.Integer("fieldNumber", value, item.FieldNumber);
             * int temp= EB.Dot.Integer("type", value, 3);
             * item .Type=(LegionWarField)temp;
             * item.Status = EB.Dot.Integer("status", value, -1);
             * item.Aids = Hotfix_LT.EBCore.Dot.Array<int>("aids", value, item.Aids, delegate (object val) { return int.Parse(val.ToString()); }); ;
             * item.WinAid = EB.Dot.Integer("winAid", value, -1);
             * item.CombatId = EB.Dot.Integer("battleId", value, 0);
             * item.redPaperEventOpen = EB.Dot.Bool("redPaperEventOpen", value, false);
             * if (LTRedPacketHudController.Instance != null&& LTLegionWarManager .Instance .SemiFinalField==item.FieldNumber && LTLegionWarManager.Instance.FieldType == temp)
             * {
             *  LTRedPacketHudController.Instance.redPaperEventOpen = item.redPaperEventOpen;
             * }*/
            return(item);
        }