Esempio n. 1
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            Id      = DBCUtil.ExtractNumeric(node, "Id", 0, true);
            MaxRank = DBCUtil.ExtractNumeric(node, "MaxRank", 0, true);
            List <int> num_list = new List <int>();

            num_list = DBCUtil.ExtractNumericList(node, "MaxParterLimit", 0, true);
            if (num_list != null)
            {
                MaxParterLimit = num_list.ToArray();
            }
            MaxBattleCount        = DBCUtil.ExtractNumeric(node, "MaxBattleCount", 0, true);
            BattleCd              = DBCUtil.ExtractNumeric(node, "BattleCd", 0, true);
            MaxFightTime          = DBCUtil.ExtractNumeric(node, "MaxFightTime", 30000, true);
            MaxHistoryCount       = DBCUtil.ExtractNumeric(node, "MaxHistoryCount", 10, true);
            AIId                  = DBCUtil.ExtractNumeric(node, "AIId", 0, true);
            BattleCountResetTime  = ConvertToSimpleTime(DBCUtil.ExtractString(node, "BattleCountResetTime", "00:00", true));
            PrizeSettlementTime   = ConvertToSimpleTime(DBCUtil.ExtractString(node, "PrizeSettlementTime", "00:00", true));
            PrizePresentTime      = ConvertToSimpleTime(DBCUtil.ExtractString(node, "PrizePresentTime", "00:00", true));
            QueryTopRankCount     = DBCUtil.ExtractNumeric(node, "QueryTopRank", 10, true);
            QueryFrontRankCount   = DBCUtil.ExtractNumeric(node, "QueryFrontRank", 5, true);
            QueryBehindRankCount  = DBCUtil.ExtractNumeric(node, "QueryFehindRank", 5, true);
            InfoRefreshTime       = DBCUtil.ExtractNumeric <long>(node, "InfoRefreshTime", 600000, true);
            TopRankRefreshTime    = DBCUtil.ExtractNumeric <long>(node, "RankRefreshTime", 600000, true);
            MatchGroupRefreshTime = DBCUtil.ExtractNumeric <long>(node, "MatchGroupRefreshTime", 600000, true);
            PrizeRetainDays       = DBCUtil.ExtractNumeric(node, "PrizeRetainDays", 7, true);
            return(true);
        }
 public bool CollectDataFromDBC(DBC_Row node)
 {
     Id        = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     Describe  = DBCUtil.ExtractString(node, "Describe", "", false);
     SkillList = DBCUtil.ExtractNumericList <int>(node, "SkillCombo", 0, false);
     return(true);
 }
Esempio n. 3
0
 public bool CollectDataFromDBC(DBC_Row node)
 {
     Id             = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     Name           = DBCUtil.ExtractString(node, "Name", "", false);
     Story          = DBCUtil.ExtractString(node, "Story", "", false);
     LinkId         = DBCUtil.ExtractNumeric <int>(node, "LinkId", 0, false);
     PartnerFragId  = DBCUtil.ExtractNumeric <int>(node, "PartnerFragId", 0, false);
     PartnerFragNum = DBCUtil.ExtractNumeric <int>(node, "PartnerFragNum", 0, false);
     InheritAttackAttrPercentList  = DBCUtil.ExtractNumericList <float>(node, "InheritAttackAttrPercent", 0.0f, false);
     InheritDefenceAttrPercentList = DBCUtil.ExtractNumericList <float>(node, "InheritDefenseAttrPercent", 0.0f, false);
     BornSkill       = DBCUtil.ExtractNumeric <int>(node, "BornSkill", -1, false);
     MaxImproveLevel = DBCUtil.ExtractNumeric <int>(node, "MaxImproveLevel", 0, false);
     AttrAppendList  = DBCUtil.ExtractNumericList <int>(node, "AttrAppend", 0, false);
     CoolDown        = DBCUtil.ExtractNumeric <float>(node, "CoolDown", 0, false);
     Duration        = DBCUtil.ExtractNumeric <float>(node, "Duration", 0, false);
     for (int i = 0; i <= 3; ++i)
     {
         SkillList.Add(DBCUtil.ExtractNumericList <int>(node, "SkillList" + i, 0, false));
     }
     LevelUpItemId     = DBCUtil.ExtractNumeric <int>(node, "LevelUpItemId", 0, false);
     StageUpItemId     = DBCUtil.ExtractNumeric <int>(node, "StageUpItemId", 0, false);
     Ailogic           = DBCUtil.ExtractNumeric <int>(node, "AiLogicId", 0, false);
     AiParam           = DBCUtil.ExtractNumeric <int>(node, "AiParam", 0, false);
     AtlasPath         = DBCUtil.ExtractString(node, "AtlasPath", "", false);
     Icon0             = DBCUtil.ExtractString(node, "Icon0", "", false);
     Icon1             = DBCUtil.ExtractString(node, "Icon1", "", false);
     Icon2             = DBCUtil.ExtractString(node, "Icon2", "", false);
     Icon3             = DBCUtil.ExtractString(node, "Icon3", "", false);
     StageDescription0 = DBCUtil.ExtractString(node, "Desc0", "", false);
     StageDescription1 = DBCUtil.ExtractString(node, "Desc1", "", false);
     StageDescription2 = DBCUtil.ExtractString(node, "Desc2", "", false);
     StageDescription3 = DBCUtil.ExtractString(node, "Desc3", "", false);
     return(true);
 }
Esempio n. 4
0
        /**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public bool CollectDataFromDBC(DBC_Row node)
        {
            ImpactId          = DBCUtil.ExtractNumeric <int>(node, "Id", -1, true);
            ImpactLogicId     = DBCUtil.ExtractNumeric <int>(node, "LogicId", -1, true);
            ImpactGfxLogicId  = DBCUtil.ExtractNumeric <int>(node, "GfxLogicId", -1, true);
            ImpactDescription = DBCUtil.ExtractString(node, "Description", "", false);
            ImpactType        = DBCUtil.ExtractNumeric <int>(node, "ImpactType", -1, true);
            BreakSuperArmor   = DBCUtil.ExtractBool(node, "BreakSuperArmor", false, false);
            BreakParry        = DBCUtil.ExtractBool(node, "BreakParry", false, false);
            IgnoreBlock       = DBCUtil.ExtractBool(node, "IgnoreBlock", true, false);
            TargetFigure      = DBCUtil.ExtractNumericList <int>(node, "TargetFigure", 0, false);
            ImpactTime        = DBCUtil.ExtractNumeric <int>(node, "ImpactTime", -1, false);
            BuffDataId        = DBCUtil.ExtractNumeric <int>(node, "BuffDataId", -1, false);
            MaxRank           = DBCUtil.ExtractNumeric <int>(node, "MaxRank", -1, false);
            AnimationInfo     = DBCUtil.ExtractString(node, "AnimationInfo", "", false);
            LockFrameInfo     = DBCUtil.ExtractString(node, "LockFrameInfo", "", false);
            CurveMoveInfo     = DBCUtil.ExtractString(node, "CurveMove", "", false);
            MoveMode          = DBCUtil.ExtractNumeric <int>(node, "MoveMode", -1, false);
            AdjustPoint       = DBCUtil.ExtractString(node, "AdjustPoint", "", false);
            AdjustAppend      = DBCUtil.ExtractNumeric <float>(node, "AdjustAppend", 0.0f, false);
            AdjustDegreeXZ    = DBCUtil.ExtractNumeric <float>(node, "AdjustDegreeXZ", 0.0f, false);
            AdjustDegreeY     = DBCUtil.ExtractNumeric <float>(node, "AdjustDegreeY", 0.0f, false);
            MaxDist           = DBCUtil.ExtractNumeric <float>(node, "MaxDist", 0.0f, false);
            DamageType        = DBCUtil.ExtractNumeric <int>(node, "DamageType", 0, false);
            ElementType       = DBCUtil.ExtractNumeric <int>(node, "ElementType", 0, false);
            DamageValue       = DBCUtil.ExtractNumeric <int>(node, "DamageValue", 0, false);
            DamageRate        = DBCUtil.ExtractNumeric <float>(node, "DamageRate", 1.0f, false);
            LevelRate         = DBCUtil.ExtractNumeric <float>(node, "LevelRate", 0.0f, false);
            IsDeadDisappear   = DBCUtil.ExtractBool(node, "IsDeadDisappear", false, false);
            CanBeCancel       = DBCUtil.ExtractBool(node, "CanBeCancel", false, false);
            IsAbsorbHurt      = DBCUtil.ExtractBool(node, "IsAbsorbHurt", false, false);
            IsReflect         = DBCUtil.ExtractBool(node, "IsReflect", false, false);
            FallDownTime      = DBCUtil.ExtractNumeric <float>(node, "FallDownTime", -1.0f, false);
            OnGroundTime      = DBCUtil.ExtractNumeric <float>(node, "OnGroundTime", 0.3f, false);
            GetUpTime         = DBCUtil.ExtractNumeric <float>(node, "GetUpTime", -1.0f, false);
            IsDamageDisappear = DBCUtil.ExtractBool(node, "IsDamageDisappear", false, false);
            IsFightDisappear  = DBCUtil.ExtractBool(node, "IsFightDisappear", false, false);
            IsShootDisappear  = DBCUtil.ExtractBool(node, "IsShootDisappear", false, false);
            IsSkillDisappear  = DBCUtil.ExtractBool(node, "IsSkillDisappear", false, false);
            HitSoundProb      = DBCUtil.ExtractNumeric <float>(node, "HitSoundProb", 0.1f, false);

            for (int i = 0; i < EffectCount; ++i)
            {
                string key = "Effect" + i.ToString();
                EffectList.Add(Converter.ConvertNumericList <int>(DBCUtil.ExtractString(node, key, "", false)));
            }
            ActionList = DBCUtil.ExtractNumericList <int>(node, "AnimationType", 0, false);
            ParamNum   = DBCUtil.ExtractNumeric <int>(node, "ParamNum", 0, false);
            ExtraParams.Clear();
            if (ParamNum > 0)
            {
                for (int i = 0; i < ParamNum; ++i)
                {
                    string key = "Param" + i.ToString();
                    ExtraParams.Insert(i, DBCUtil.ExtractString(node, key, "", false));
                }
            }

            return(true);
        }
 public bool CollectDataFromDBC(DBC_Row node)
 {
     m_Id            = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     m_LinkId        = DBCUtil.ExtractNumericList <int>(node, "LinkId", 0, true);
     m_FightingScore = DBCUtil.ExtractNumeric <int>(node, "FightingScore", 0, true);
     m_Type          = (MonsterType)DBCUtil.ExtractNumeric <int>(node, "MonsterType", 0, true);
     m_AttributeId   = DBCUtil.ExtractNumericList <int>(node, "AttributeId", 0, true);
     return(true);
 }
Esempio n. 6
0
        /**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public bool CollectDataFromDBC(DBC_Row node)
        {
            SkillId              = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            SkillDataFile        = DBCUtil.ExtractString(node, "LogicDataFile", "", false);
            SkillDescription     = DBCUtil.ExtractString(node, "Description", "", true);
            SkillTrueDescription = DBCUtil.ExtractString(node, "TrueDescription", "", false);
            ActivateLevel        = DBCUtil.ExtractNumeric <int>(node, "ActivateLevel", 0, true);
            SkillPassivity       = (Passivity)DBCUtil.ExtractNumeric <int>(node, "Passivity", 0, true);
            SkillCoefficient     = DBCUtil.ExtractNumeric <float>(node, "SkillCoefficient", 0, true);
            SkillRangeMin        = DBCUtil.ExtractNumeric <float>(node, "RangeMin", 0.0f, false);
            SkillRangeMax        = DBCUtil.ExtractNumeric <float>(node, "RangeMax", 3.0f, false);
            TargetType           = (TargType)DBCUtil.ExtractNumeric <int>(node, "TargetType", 0, true);
            TargetSelectType     = (TargSelectType)DBCUtil.ExtractNumeric <int>(node, "TargetSelectType", 0, true);
            CoolDownTime         = DBCUtil.ExtractNumeric <float>(node, "CD", 0, true);
            CastTime             = DBCUtil.ExtractNumeric <float>(node, "CastTime", 0, true);
            MinusCD              = DBCUtil.ExtractNumericList <int>(node, "MinusCD", 0, false);
            CostHp         = DBCUtil.ExtractNumeric <int>(node, "CostHp", 0, false);
            CostRage       = DBCUtil.ExtractNumeric <int>(node, "CostRage", 0, false);
            CostEnergy     = DBCUtil.ExtractNumeric <int>(node, "CostEnergy", 0, false);
            CostEnergyCore = DBCUtil.ExtractNumeric <int>(node, "CostEnergyCore", 0, false);
            CostItemId     = DBCUtil.ExtractNumeric <int>(node, "CostItemId", 0, false);

            LevelUpCostType  = DBCUtil.ExtractNumeric <int>(node, "LevelUpCostType", 1, false);
            LevelUpVigorType = DBCUtil.ExtractNumeric <int>(node, "LevelUpVigorType", 1, false);

            CanStartWhenStiffness = DBCUtil.ExtractBool(node, "CanStartWhenStiffness", false, false);
            CanStartWhenHitFly    = DBCUtil.ExtractBool(node, "CanStartWhenHitFly", false, false);
            CanStartWhenKnockDown = DBCUtil.ExtractBool(node, "CanStartWhenKnockDown", false, false);
            BreakType             = DBCUtil.ExtractNumeric <int>(node, "BreakType", 0, false);
            Category            = (SkillCategory)DBCUtil.ExtractNumeric <int>(node, "Category", 0, false);
            NextSkillId         = DBCUtil.ExtractNumeric <int>(node, "NextSkillId", -1, false);
            LiftSkillId         = DBCUtil.ExtractNumeric <int>(node, "LiftSkillId", -1, false);
            LiftCostItemList    = DBCUtil.ExtractNumericList <int>(node, "LiftCostItem", 0, false);
            LiftCostItemNumList = DBCUtil.ExtractNumericList <int>(node, "LiftCostItemNum", 0, false);
            QSkillId            = DBCUtil.ExtractNumeric <int>(node, "QSKillId", -1, false);
            ESkillId            = DBCUtil.ExtractNumeric <int>(node, "ESKillId", -1, false);
            LockInputTime       = DBCUtil.ExtractNumeric <float>(node, "LockInputTime", 0, false);;
            NextInputTime       = DBCUtil.ExtractNumeric <float>(node, "NextInputTime", 0, false);;
            TargetChooseRange   = DBCUtil.ExtractNumeric <float>(node, "TargetChooseRange", 0, false);;
            ShowName            = DBCUtil.ExtractString(node, "ShowName", "", false);
            ShowHitNum          = DBCUtil.ExtractNumeric <int>(node, "ShowHitNum", 0, false);
            ShowScore           = DBCUtil.ExtractNumeric <int>(node, "ShowScore", 0, false);
            ShowDescription     = DBCUtil.ExtractString(node, "ShowDescription", "", false);
            ShowCd         = DBCUtil.ExtractNumeric <float>(node, "ShowCD", 0, false);   //
            ShowCostEnergy = DBCUtil.ExtractNumeric <int>(node, "ShowCostEnergy", 0, false);
            ShowSteps      = DBCUtil.ExtractNumeric <int>(node, "ShowSteps", 0, false);
            ShowSteps2Des  = DBCUtil.ExtractString(node, "ShowSteps2Dec", "", false);
            ShowSteps3Des  = DBCUtil.ExtractString(node, "ShowSteps3Dec", "", false);
            ShowSteps4Des  = DBCUtil.ExtractString(node, "ShowSteps4Dec", "", false);
            DamagePerLevel = DBCUtil.ExtractNumeric <float>(node, "ShowDamagePerLevel", 0f, false);
            ShowBaseDamage = DBCUtil.ExtractNumeric <float>(node, "ShowDamage", 0f, false);
            ShowIconName   = DBCUtil.ExtractString(node, "ShowIconName", "", false);
            ShowAtlasPath  = DBCUtil.ExtractString(node, "ShowAtlasPath", "", false);
            return(true);
        }
Esempio n. 7
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            Id                  = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            Describe            = DBCUtil.ExtractString(node, "Describe", "", false);
            ActionList          = DBCUtil.ExtractNumericList <int>(node, "ActionList", 0, false);
            MaxControlTime      = DBCUtil.ExtractNumeric <int>(node, "MaxControlTime", -1, false);
            MaxControlEvent     = DBCUtil.ExtractNumericList <int>(node, "MaxControlEvent", 0, false);
            MaxControlEventPlus = DBCUtil.ExtractNumericList <int>(node, "MaxControlEventPlus", 0, false);
            GetUpEvent          = DBCUtil.ExtractNumericList <int>(node, "GetUpEvent", 0, false);

            return(true);
        }
Esempio n. 8
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_ItemId = DBCUtil.ExtractNumeric <int>(node, "ItemId", 0, true);
            List <int> list = DBCUtil.ExtractNumericList <int>(node, "ExperienceProvideItems", 0, false);

            if (list.Count > 0)
            {
                m_ExperienceProvideItems = list.ToArray();
            }
            m_MaxLevel        = DBCUtil.ExtractNumeric <int>(node, "MaxLevel", 1, false);
            m_LevelExperience = ExtractLevelExperience(node);
            return(true);
        }
Esempio n. 9
0
 public bool CollectDataFromDBC(DBC_Row node)
 {
     Id         = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     m_ItemId   = DBCUtil.ExtractNumeric <int>(node, "ItemID", 0, false);
     m_DayLimit = DBCUtil.ExtractNumeric <int>(node, "DayLimit", 0, false);
     if (m_DayLimit == 0)
     {
         m_HaveDayLimit = false;
     }
     m_Price    = DBCUtil.ExtractNumericList <int>(node, "Price", 0, false);
     m_ItemNum  = DBCUtil.ExtractNumeric <int>(node, "ItemNum", 0, false);
     m_Currency = DBCUtil.ExtractNumeric <int>(node, "Currency", 0, false);
     return(true);
 }
Esempio n. 10
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_Id                   = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            m_SceneName            = DBCUtil.ExtractString(node, "Name", "", false);
            m_ChapterName          = DBCUtil.ExtractString(node, "ChapterName", "", false);
            m_SceneDescription     = DBCUtil.ExtractString(node, "Description", "", false);
            m_Type                 = DBCUtil.ExtractNumeric <int>(node, "Type", 0, true);
            m_SubType              = DBCUtil.ExtractNumeric <int>(node, "SubType", 0, true);
            m_Chapter              = DBCUtil.ExtractNumeric <int>(node, "Chapter", 0, true);
            m_Order                = DBCUtil.ExtractNumeric <int>(node, "Order", 0, true);
            m_UnitFile             = DBCUtil.ExtractString(node, "UnitFile", "", false);
            m_SceneLogicFile       = DBCUtil.ExtractString(node, "SceneLogicFile", "", false);
            m_StoryDslFile         = DBCUtil.ExtractStringList(node, "StoryDslFile", "", false);
            m_ClientSceneFile      = DBCUtil.ExtractString(node, "ClientSceneFile", "", true);
            m_ObstacleFile         = DBCUtil.ExtractString(node, "ObstacleFile", "", false);
            m_BlockInfoFile        = DBCUtil.ExtractString(node, "BlockInfoFile", "", false);
            m_TiledDataScale       = DBCUtil.ExtractNumeric <float>(node, "TiledDataScale", 0, false);
            m_DropId               = DBCUtil.ExtractNumeric <int>(node, "DropId", 0, false);
            m_BkMusic              = DBCUtil.ExtractString(node, "BkMusic", "", false);
            m_BkMusicVolume        = DBCUtil.ExtractNumeric <float>(node, "BkMusicVolume", 1f, false);
            m_StoryMusic           = DBCUtil.ExtractString(node, "StoryMusic", "", false);
            m_StoryMusicVolume     = DBCUtil.ExtractNumeric <float>(node, "StoryMusicVolume", 1f, false);
            m_CompletedRewards     = DBCUtil.ExtractNumericList <int>(node, "CompletedReward", 0, false);
            m_CompletedTime        = DBCUtil.ExtractNumeric <int>(node, "CompletedTime", 0, false);
            m_CompletedHitCount    = DBCUtil.ExtractNumeric <int>(node, "CompletedHitCount", 0, false);
            m_CostStamina          = DBCUtil.ExtractNumeric <int>(node, "CostStamina", 0, false);
            m_RecommendFighting    = DBCUtil.ExtractNumeric <int>(node, "RecommendFighting", 0, false);
            m_AtlasPath            = DBCUtil.ExtractString(node, "AtlasPath", "", false);
            m_SceneIconName        = DBCUtil.ExtractString(node, "SceneIconName", "", false);
            m_RecoverHpCoefficient = DBCUtil.ExtractNumeric <float>(node, "RecoverHpCoefficient", 1, false);
            m_RecoverMpCoefficient = DBCUtil.ExtractNumeric <float>(node, "RecoverMpCoefficient", 1, false);
            m_BossLinkId           = DBCUtil.ExtractNumeric <int>(node, "BossLinkId", -1, false);
            List <float> coords = DBCUtil.ExtractNumericList <float>(node, "ReachableSet", 0, false);

            m_RelatedMainCity = DBCUtil.ExtractNumeric <int>(node, "RelatedMainCity", 0, false);
            if (coords.Count > 0)
            {
                m_ReachableSet = new Vector3[coords.Count / 2];
                for (int i = 0; i < coords.Count - 1; i += 2)
                {
                    m_ReachableSet[i / 2] = new Vector3(coords[i], 0, coords[i + 1]);
                }
            }
            else
            {
                m_ReachableSet = null;
            }
            return(true);
        }
Esempio n. 11
0
 public bool CollectDataFromDBC(DBC_Row node)
 {
     m_Id           = DBCUtil.ExtractNumeric <int>(node, "ID", 0, true);
     m_WindowName   = DBCUtil.ExtractString(node, "WindowName", "", true);
     m_WindowPath   = DBCUtil.ExtractString(node, "WindowPath", "", true);
     m_OffsetLeft   = DBCUtil.ExtractNumeric <int>(node, "OffsetLeft", -1, false);
     m_OffsetRight  = DBCUtil.ExtractNumeric <int>(node, "OffsetRight", -1, false);
     m_OffsetTop    = DBCUtil.ExtractNumeric <int>(node, "OffsetTop", -1, false);
     m_OffsetBottom = DBCUtil.ExtractNumeric <int>(node, "OffsetBottom", -1, false);
     m_IsExclusion  = DBCUtil.ExtractBool(node, "IsExclusion", false, false);
     m_IsDynamic    = DBCUtil.ExtractBool(node, "IsDynamic", false, false);
     m_ShowType     = DBCUtil.ExtractNumeric <int>(node, "ShowType", 0, true);
     //m_OwnToSceneId = DBCUtil.ExtractNumeric<int>(node, "SceneType", 0, true);
     m_OwnToSceneList = DBCUtil.ExtractNumericList <int>(node, "SceneType", int.MinValue, false);
     m_Group          = DBCUtil.ExtractNumeric <int>(node, "Group", 0, false);
     return(true);
 }
Esempio n. 12
0
        /**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_Id        = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            m_LinkId    = DBCUtil.ExtractNumeric <int>(node, "LinkId", 0, true);
            m_CampId    = DBCUtil.ExtractNumeric <int>(node, "CampId", 0, true);
            m_Pos       = Converter.ConvertVector3D(DBCUtil.ExtractString(node, "Pos", "0.0,0.0,0.0", true));
            m_Pos2      = Converter.ConvertVector3D(DBCUtil.ExtractString(node, "Pos2", "0.0,0.0,0.0", false));
            m_RotAngle  = DBCUtil.ExtractNumeric <float>(node, "RotAngle", 0.0f, true) * (float)Math.PI / 180;
            m_IsEnable  = DBCUtil.ExtractBool(node, "IsEnable", false, true);
            m_AiLogic   = DBCUtil.ExtractNumeric <int>(node, "AiLogic", 0, false);
            m_IdleAnims = DBCUtil.ExtractNumericList <int>(node, "IdleAnimSet", 0, false);
            for (int i = 0; i < c_MaxAiParamNum; ++i)
            {
                m_AiParam[i] = DBCUtil.ExtractString(node, "AiParam" + i, "", false);
            }

            return(true);
        }
Esempio n. 13
0
 public bool CollectDataFromDBC(DBC_Row node)
 {
     Id             = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     MissionType    = DBCUtil.ExtractNumeric <int>(node, "Type", 0, true);
     Name           = DBCUtil.ExtractString(node, "Name", "", true);
     Description    = DBCUtil.ExtractString(node, "Description", "", false);
     FollowMissions = DBCUtil.ExtractNumericList <int>(node, "FollowId", 0, false);
     LevelLimit     = DBCUtil.ExtractNumeric <int>(node, "LevelLimit", 0, false);
     SceneId        = DBCUtil.ExtractNumeric <int>(node, "SceneId", 0, true);
     Condition      = DBCUtil.ExtractNumeric <int>(node, "Condition", 0, true);
     Args0          = DBCUtil.ExtractNumeric <int>(node, "Args0", 0, false);
     Args1          = DBCUtil.ExtractNumeric <int>(node, "Args1", 0, false);
     DropId         = DBCUtil.ExtractNumeric <int>(node, "DropId", 0, false);
     TriggerGuides  = DBCUtil.ExtractNumericList <int>(node, "TriggerGuide", 0, false);
     UnlockLegacyId = DBCUtil.ExtractNumeric <int>(node, "UnlockLegacyId", 0, false);
     IsBornAccept   = DBCUtil.ExtractBool(node, "IsBornMission", false, false);
     TargetUI       = DBCUtil.ExtractNumeric <int>(node, "TargetUI", 0, false);
     return(true);
 }
Esempio n. 14
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_ItemId            = DBCUtil.ExtractNumeric <int>(node, "ItemId", 0, true);
            m_ItemName          = DBCUtil.ExtractString(node, "ItemName", "", true);
            m_ItemTrueName      = DBCUtil.ExtractString(node, "ItemTrueName", "", true);
            m_ItemCategory      = DBCUtil.ExtractNumeric <int>(node, "ItemCategory", -1, false);
            m_ItemType          = DBCUtil.ExtractString(node, "ItemType", "", true);
            m_Description       = DBCUtil.ExtractString(node, "Description", "", false);
            m_Grade             = DBCUtil.ExtractNumeric <int>(node, "Grade", 0, false);
            m_ExperienceProvide = DBCUtil.ExtractNumeric <int>(node, "ExperienceProvide", 0, false);
            m_UseLogicId        = DBCUtil.ExtractNumeric <int>(node, "UseLogicId", 0, false);
            List <string> strList = DBCUtil.ExtractStringList(node, "UseResultData", "", false);

            if (strList.Count > 0)
            {
                m_UseResultData = strList.ToArray();
            }
            List <int> list = DBCUtil.ExtractNumericList <int>(node, "ActiveBuffOnLevel", 0, false);

            if (list.Count > 0)
            {
                m_ActiveBuffOnLevel = list.ToArray();
            }
            m_UseIconOnLevel  = DBCUtil.ExtractString(node, "UseIconOnLevel", "", false).Split('|');
            m_UseModelOnLevel = DBCUtil.ExtractString(node, "UseModelOnLevel", "", false).Split('|');
            list = DBCUtil.ExtractNumericList <int>(node, "AddBuffOnEquiping", 0, false);
            if (list.Count > 0)
            {
                m_AddBuffOnEquiping = list.ToArray();
            }
            list = DBCUtil.ExtractNumericList <int>(node, "AddSkillOnEquiping", 0, false);
            if (list.Count > 0)
            {
                m_AddSkillOnEquiping = list.ToArray();
            }
            m_ShowInShop = (0 != DBCUtil.ExtractNumeric <int>(node, "ShowInShop", 0, false));
            m_Model      = DBCUtil.ExtractString(node, "Model", "", false);
            m_UiModel    = DBCUtil.ExtractString(node, "UiModel", "", false);
            m_MaxStack   = DBCUtil.ExtractNumeric <int>(node, "MaxStackNum", 1, false);
            list         = DBCUtil.ExtractNumericList <int>(node, "ConsumeItems", 0, false);
            if (list.Count > 0)
            {
                m_ConsumeItems = list.ToArray();
            }
            else
            {
                m_ConsumeItems = new int[] { 0, 0, 0 };
            }
            m_ConsumeMoney    = DBCUtil.ExtractNumeric <int>(node, "ConsumeMoney", 0, false);
            m_PropertyRank    = DBCUtil.ExtractNumeric <int>(node, "PropertyRank", 0, true);
            m_AddExp          = DBCUtil.ExtractNumeric <int>(node, "AddExp", 0, false);
            m_AddMoney        = DBCUtil.ExtractNumeric <int>(node, "AddMoney", 0, false);
            m_AddBuff         = DBCUtil.ExtractNumeric <int>(node, "AddBuffer", 0, false);
            m_Introduce       = DBCUtil.ExtractString(node, "Introduce", "", false);
            m_ItemSkillFirst  = DBCUtil.ExtractNumeric <int>(node, "ItemSkillFirst", 0, false);
            m_ItemSkillSecond = DBCUtil.ExtractNumeric <int>(node, "ItemSkillSecond", 0, false);
            m_ItemSkillThird  = DBCUtil.ExtractNumeric <int>(node, "ItemSkillThird", 0, false);
            m_NormalIcon      = DBCUtil.ExtractString(node, "NormalIcon", "", false);
            m_BigIcon         = DBCUtil.ExtractString(node, "BigIcon", "", false);
            m_AttrData.CollectDataFromDBC(node);
            m_CanWear          = DBCUtil.ExtractNumeric <bool>(node, "CanWear", false, false);
            m_WearParts        = DBCUtil.ExtractNumeric <int>(node, "WearParts", -1, false);
            m_WearLevel        = DBCUtil.ExtractNumeric <int>(node, "WearLevel", 1, false);
            m_WearNodeAndName  = DBCUtil.ExtractString(node, "WearNodeAndName", "", false);
            m_CanUpgrade       = DBCUtil.ExtractNumeric <bool>(node, "CanUpgrade", false, false);
            m_CanDeve          = DBCUtil.ExtractNumeric <bool>(node, "CanDeve", false, false);
            m_AttachedProperty = DBCUtil.ExtractNumericList(node, "AttachedProperty", 0, false);
            m_TalentType       = DBCUtil.ExtractNumeric <int>(node, "TalentType", 1, false);
            m_TalentAttributes = DBCUtil.ExtractNumericList(node, "TalentAttributes", 0, false);
            m_ActiveAttributes = DBCUtil.ExtractNumericList(node, "ActiveAttributes", 0, false);
            m_CompoundItemId   = DBCUtil.ExtractNumericList(node, "CompoundItemId", 0, false);
            m_Inlay            = DBCUtil.ExtractString(node, "Inlay", "", false);
            m_Weight           = DBCUtil.ExtractNumeric <int>(node, "Weight", -1, false);
            m_SellingPrice     = DBCUtil.ExtractNumeric <int>(node, "SellingPrice", 0, false);
            m_SellGainGoldProb = DBCUtil.ExtractNumeric <float>(node, "SellGainGoldProb", 0f, false);
            m_SellGainGoldNum  = DBCUtil.ExtractNumeric <int>(node, "SellGainGoldNum", 0, false);
            m_DamageType       = (ElementDamageType)DBCUtil.ExtractNumeric <int>(node, "ElementType", 0, false);
            m_ItemSourceScene  = DBCUtil.ExtractNumericList <int>(node, "ItemSourceScene", int.MinValue, false);
            m_ItemSourceDesc   = DBCUtil.ExtractString(node, "ItemSourceDesc", "", false);
            m_ShowType         = DBCUtil.ExtractNumeric <int>(node, "ShowType", 0, false);
            m_SkeletonSource   = DBCUtil.ExtractString(node, "SkeletonSource", "", false);
            return(true);
        }
Esempio n. 15
0
        /**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_Id      = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            m_Name    = DBCUtil.ExtractString(node, "Name", "", true);
            m_Scale   = DBCUtil.ExtractNumeric <float>(node, "Scale", 1.0f, false);
            m_AiLogic = DBCUtil.ExtractNumeric <int>(node, "AiLogic", 0, false);

            m_AttrData.CollectDataFromDBC(node);
            //m_SuperArmor = DBCUtil.ExtractNumeric<bool>(node, "SuperArmor", false, false);
            m_ViewRange   = DBCUtil.ExtractNumeric <float>(node, "ViewRange", -1, true);
            m_ReleaseTime = DBCUtil.ExtractNumeric <long>(node, "ReleaseTime", 0, false);
            m_CostType    = DBCUtil.ExtractNumeric <int>(node, "CostType", 0, false);

            m_PreSkillList    = DBCUtil.ExtractNumericList <int>(node, "PreSkillList", 0, false);
            m_FixedSkillList  = DBCUtil.ExtractNumericList <int>(node, "FixedSkillList", 0, false);
            m_ActionList      = DBCUtil.ExtractNumericList <int>(node, "ActionId", 0, false);
            m_NoviceEquipList = DBCUtil.ExtractNumericList <int>(node, "NoviceEquipList", 0, false);
            m_InitXSoulPart   = DBCUtil.ExtractNumericList <int>(node, "InitXSoulPart", 0, false);

            m_Model        = DBCUtil.ExtractString(node, "Model", "", false);
            m_Skeleton     = DBCUtil.ExtractString(node, "Skeleton", "", false);
            m_DefaultModel = DBCUtil.ExtractString(node, "DefaultModel", "", false);
            LoadDefaultModelData(m_DefaultModel);
            m_DeathModel = DBCUtil.ExtractString(node, "DeathModel", "", false);
            m_ActionFile = DBCUtil.ExtractString(node, "ActionFile", "", false);
            m_AnimPath   = DBCUtil.ExtractString(node, "AnimPath", "", false);

            m_Portrait        = DBCUtil.ExtractString(node, "Portrait", "", false);
            m_PortraitForCell = DBCUtil.ExtractString(node, "PortraitForCell", "", false);
            m_Radius          = DBCUtil.ExtractNumeric <float>(node, "Radius", 1.0f, false);
            m_AvoidanceRadius = DBCUtil.ExtractNumeric <int>(node, "AvoidanceRadius", 1, false);

            List <int> list = DBCUtil.ExtractNumericList <int>(node, "RecommendEquipment", 0, false);

            if (list.Count == 6)
            {
                m_RecommendEquipment = list.ToArray();
            }
            else
            {
                m_RecommendEquipment = new int[] { 0, 0, 0, 0, 0, 0 };
            }

            list = DBCUtil.ExtractNumericList <int>(node, "AiEquipment", 0, false);
            if (list.Count == 6)
            {
                m_AiEquipment = list.ToArray();
            }
            else
            {
                m_AiEquipment = new int[] { 0, 0, 0, 0, 0, 0 }
            };
            list = DBCUtil.ExtractNumericList <int>(node, "AiAttackSkill", 0, false);
            if (list.Count > 0)
            {
                m_AiAttackSkill = list.ToArray();
            }
            list = DBCUtil.ExtractNumericList <int>(node, "AiMoveSkill", 0, false);
            if (list.Count > 0)
            {
                m_AiMoveSkill = list.ToArray();
            }
            list = DBCUtil.ExtractNumericList <int>(node, "AiControlSkill", 0, false);
            if (list.Count > 0)
            {
                m_AiControlSkill = list.ToArray();
            }
            list = DBCUtil.ExtractNumericList <int>(node, "AiSelfAssitSkill", 0, false);
            if (list.Count > 0)
            {
                m_AiSelfAssitSkill = list.ToArray();
            }
            list = DBCUtil.ExtractNumericList <int>(node, "AiTeamAssitSkill", 0, false);
            if (list.Count > 0)
            {
                m_AiTeamAssitSkill = list.ToArray();
            }

            m_Cross2StandTime = DBCUtil.ExtractNumeric <float>(node, "Cross2StandTime", 0.5f, false);
            m_Cross2RunTime   = DBCUtil.ExtractNumeric <float>(node, "Cross2RunTime", 0.3f, false);

            m_Combat2IdleTime        = DBCUtil.ExtractNumeric <float>(node, "Comabat2IdleTime", 3, false);
            m_Combat2IdleSkill       = DBCUtil.ExtractNumeric <int>(node, "Combat2IdleSkill", 0, false);
            m_Idle2CombatWeaponMoves = DBCUtil.ExtractString(node, "Idle2CombatWeaponMoves", "", false);
            m_IndicatorEffect        = DBCUtil.ExtractString(node, "IndicatorEffect", "", false);
            m_IndicatorShowDis       = DBCUtil.ExtractNumeric <float>(node, "IndicatorDis", 10.0f, false);
            m_HeroIntroduce1         = DBCUtil.ExtractString(node, "HeroIntroduce1", "", false);
            m_HeroIntroduce2         = DBCUtil.ExtractString(node, "HeroIntroduce2", "", false);
            m_DamageRagePercent      = DBCUtil.ExtractNumeric <float>(node, "DamageRagePercent", 0f, false);
            return(true);
        }
Esempio n. 16
0
 public bool CollectDataFromDBC(DBC_Row node)
 {
     Id         = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
     Operations = DBCUtil.ExtractNumericList <int>(node, "Operation", 0, true);
     return(true);
 }
Esempio n. 17
0
        /**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public bool CollectDataFromDBC(DBC_Row node)
        {
            m_Id            = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            m_Name          = DBCUtil.ExtractString(node, "Name", "", true);
            m_ShowName      = DBCUtil.ExtractBool(node, "ShowName", false, false);
            m_NpcType       = DBCUtil.ExtractNumeric <int>(node, "NpcType", 0, true);
            m_NpcFigure     = DBCUtil.ExtractNumeric <int>(node, "NpcFigure", 0, false);
            m_Level         = DBCUtil.ExtractNumeric <int>(node, "Level", 0, true);
            m_Scale         = DBCUtil.ExtractNumeric <float>(node, "Scale", 1.0f, false);
            m_ParticleScale = DBCUtil.ExtractNumeric <float>(node, "ParticleScale", 1.0f, false);
            m_Portrait      = DBCUtil.ExtractString(node, "Portrait", "", false);

            m_AttrData.CollectDataFromDBC(node);
            m_CauseStiff        = DBCUtil.ExtractBool(node, "CauseStiff", true, false);
            m_AcceptStiff       = DBCUtil.ExtractBool(node, "AcceptStiff", true, false);
            m_AcceptStiffEffect = DBCUtil.ExtractBool(node, "AcceptStiffEffect", true, false);
            //m_SuperArmor = DBCUtil.ExtractNumeric<bool>(node, "SuperArmor", false, false);
            m_ViewRange   = DBCUtil.ExtractNumeric <float>(node, "ViewRange", -1, true);
            m_GohomeRange = DBCUtil.ExtractNumeric <float>(node, "GohomeRange", -1, true);
            m_ReleaseTime = DBCUtil.ExtractNumeric <long>(node, "ReleaseTime", 0, true);

            m_SkillList  = DBCUtil.ExtractNumericList <int>(node, "SkillList", 0, false);
            m_DeadSkill  = DBCUtil.ExtractNumeric <int>(node, "DeadSkill", -1, false);
            m_ActionList = DBCUtil.ExtractNumericList <int>(node, "ActionId", 0, false);

            m_Model = DBCUtil.ExtractString(node, "Model", "", false);

            m_BornEffect      = DBCUtil.ExtractString(node, "BornEffect", "", false);
            m_BornEffectTime  = DBCUtil.ExtractNumeric <float>(node, "BornEffectTime", -1, false);
            m_MeetEnemyImpact = DBCUtil.ExtractNumeric <int>(node, "MeetEnemyImpact", 0, false);
            m_BornAnimTime    = DBCUtil.ExtractNumeric <int>(node, "BornAnimTime", 400, false);

            m_AvoidanceRadius = DBCUtil.ExtractNumeric <int>(node, "AvoidanceRadius", 1, false);
            m_CanMove         = DBCUtil.ExtractBool(node, "CanMove", false, false);
            m_CanHitMove      = DBCUtil.ExtractBool(node, "CanHitMove", true, false);
            m_CanRotate       = DBCUtil.ExtractBool(node, "CanRotate", true, false);

            m_IsAttachControler = DBCUtil.ExtractBool(node, "IsAttachControler", false, false);
            m_AttachNodeName    = DBCUtil.ExtractString(node, "AttachNodeName", "", false);

            m_Cross2StandTime = DBCUtil.ExtractNumeric <float>(node, "Cross2StandTime", 0.5f, false);
            m_Cross2Runtime   = DBCUtil.ExtractNumeric <float>(node, "Cross2RunTime", 0.3f, false);
            m_DeadAnimTime    = DBCUtil.ExtractNumeric <float>(node, "DeadAnimTime", 1.4f, false);

            m_TauntSound = Converter.ConvertStringList(DBCUtil.ExtractString(node, "TauntSound", "", false));
            m_HitSounds  = Converter.ConvertStringList(DBCUtil.ExtractString(node, "HitSound", "", false));
            m_DeadSound  = Converter.ConvertStringList(DBCUtil.ExtractString(node, "DeadSound", "", false));

            string shapeType     = DBCUtil.ExtractString(node, "ShapeType", "", true);
            int    shapeParamNum = DBCUtil.ExtractNumeric <int>(node, "ShapeParamNum", 0, true);

            if (shapeParamNum > 0)
            {
                string[] shapeParams = new string[shapeParamNum];
                for (int i = 0; i < shapeParamNum; ++i)
                {
                    shapeParams[i] = DBCUtil.ExtractString(node, "ShapeParam" + i, "", false);
                }

                if (0 == string.Compare("Circle", shapeType, true))
                {
                    m_Shape = new Circle(new Vector3(0, 0, 0), float.Parse(shapeParams[0]));
                }
                else if (0 == string.Compare("Line", shapeType, true))
                {
                    Vector3 start = Converter.ConvertVector3D(shapeParams[0]);
                    Vector3 end   = Converter.ConvertVector3D(shapeParams[1]);
                    m_Shape = new Line(start, end);
                }
                else if (0 == string.Compare("Rect", shapeType, true))
                {
                    float width  = float.Parse(shapeParams[0]);
                    float height = float.Parse(shapeParams[1]);
                    m_Shape = new ArkCrossEngineSpatial.Rect(width, height);
                }
                else if (0 == string.Compare("Polygon", shapeType, true))
                {
                    Polygon polygon = new Polygon();
                    foreach (string s in shapeParams)
                    {
                        Vector3 pt = Converter.ConvertVector3D(s);
                        polygon.AddVertex(pt);
                    }
                    m_Shape = polygon;
                }
            }

            return(true);
        }
Esempio n. 18
0
        public bool CollectDataFromDBC(DBC_Row node)
        {
            Id = DBCUtil.ExtractNumeric <int>(node, "Id", 0, true);
            m_TriggerLevelMini   = DBCUtil.ExtractNumeric <int>(node, "TriggerLevelMini", 100000, false);
            m_TriggerLevelMax    = DBCUtil.ExtractNumeric <int>(node, "TriggerLevelMax", 100000, false);
            m_TriggerSceneId     = DBCUtil.ExtractNumeric <int>(node, "TriggerSceneId", -1, false);
            m_GroupId            = DBCUtil.ExtractNumeric <int>(node, "GroupId", -1, false);
            m_GroupIndex         = DBCUtil.ExtractNumeric <int>(node, "GroupIndex", -1, false);
            m_ResetToGuideId     = DBCUtil.ExtractNumeric <int>(node, "ResetToGuideId", -1, false);
            m_TriggerUiId        = DBCUtil.ExtractNumeric <int>(node, "TriggerUiId", -1, false);
            m_TargetChildPath    = DBCUtil.ExtractString(node, "TargetChildPath", "", true);
            m_GuideUiPath        = DBCUtil.ExtractString(node, "GuideUiPath", "", true);
            m_TargetChildIndex   = DBCUtil.ExtractNumeric <int>(node, "TargetChildIndex", -1, false);
            m_NeedGuideDlg       = DBCUtil.ExtractBool(node, "NeedGuideDlg", true, false);
            m_AlwaysNeedGuideDlg = DBCUtil.ExtractBool(node, "AlwaysNeedGuideDlg", false, false);
            m_IsSpeakerAtLeft    = DBCUtil.ExtractBool(node, "IsSpeakerAtLeft", true, false);
            m_Words = DBCUtil.ExtractString(node, "Words", "", false);
            List <float> RelativePos = DBCUtil.ExtractNumericList <float>(node, "ScreenPosition", 0, false);

            if (RelativePos.Count >= 2)
            {
                m_RelativeScreenPos[0] = RelativePos[0];
                m_RelativeScreenPos[1] = RelativePos[1];
            }
            List <float> list = DBCUtil.ExtractNumericList <float>(node, "Rotate", 0, false);
            int          num  = list.Count;

            if (num > 0)
            {
                m_RotateThree[0] = list[0];
            }
            if (num > 1)
            {
                m_RotateThree[1] = list[1];
            }
            if (num > 2)
            {
                m_RotateThree[2] = list[2];
            }

            m_Visible         = DBCUtil.ExtractNumeric <bool>(node, "Visible", false, false);
            m_Type            = DBCUtil.ExtractNumeric <int>(node, "Type", 0, true);
            m_PreviousGuideId = DBCUtil.ExtractNumeric <int>(node, "PreviousGuideId", 0, true);

            list = DBCUtil.ExtractNumericList <float>(node, "LocalPosition", 0, false);
            num  = list.Count;
            if (num > 0)
            {
                m_LocalPosition[0] = list[0];
            }
            if (num > 1)
            {
                m_LocalPosition[1] = list[1];
            }
            if (num > 2)
            {
                m_LocalPosition[2] = list[2];
            }

            m_ChildNumber = DBCUtil.ExtractNumeric <int>(node, "ChildNumber", 0, true);
            m_ChildName   = DBCUtil.ExtractString(node, "ChildName", "", true);

            list = DBCUtil.ExtractNumericList <float>(node, "Scale", 0, false);
            num  = list.Count;
            if (num > 0)
            {
                m_Scale[0] = list[0];
            }
            if (num > 1)
            {
                m_Scale[1] = list[1];
            }
            if (num > 2)
            {
                m_Scale[2] = list[2];
            }
            return(true);
        }