Esempio n. 1
0
        public static DeclareEquip Create(string in_attribute1, int in_bind, int in_classlevel, int in_confirm, string in_describe, int in_diamond_Number, int in_drop_model, int in_effect, int in_equip_Dismantling, int in_gender, int in_grade, int in_icon, int in_id, int in_if_common, int in_isCheck, int in_level, int in_levelmax, int in_militaryRank, int in_model_id, string in_name, int in_part, string in_price, int in_pvp_produce_Equip, int in_quality, string in_quality1, string in_quality2, string in_quality3, string in_quality4, string in_recommended_tips, string in_refiningConsumption, int in_refiningProbability, string in_resetProps, int in_score, int in_seal_exp, string in_skill_Bandom, string in_skill_lock, int in_skill_Number, string in_strengthening, string in_technicalQuality, int in_type, int in_type1, int in_warehouse_integral)
        {
            DeclareEquip tmp = new DeclareEquip();

            tmp._attribute1        = in_attribute1;
            tmp._bind              = in_bind;
            tmp._classlevel        = in_classlevel;
            tmp._confirm           = in_confirm;
            tmp._describe          = in_describe;
            tmp._diamond_Number    = in_diamond_Number;
            tmp._drop_model        = in_drop_model;
            tmp._effect            = in_effect;
            tmp._equip_Dismantling = in_equip_Dismantling;
            tmp._gender            = in_gender;
            tmp._grade             = in_grade;
            tmp._icon              = in_icon;
            tmp._id                  = in_id;
            tmp._if_common           = in_if_common;
            tmp._isCheck             = in_isCheck;
            tmp._level               = in_level;
            tmp._levelmax            = in_levelmax;
            tmp._militaryRank        = in_militaryRank;
            tmp._model_id            = in_model_id;
            tmp._name                = in_name;
            tmp._part                = in_part;
            tmp._price               = in_price;
            tmp._pvp_produce_Equip   = in_pvp_produce_Equip;
            tmp._quality             = in_quality;
            tmp._quality1            = in_quality1;
            tmp._quality2            = in_quality2;
            tmp._quality3            = in_quality3;
            tmp._quality4            = in_quality4;
            tmp._recommended_tips    = in_recommended_tips;
            tmp._refiningConsumption = in_refiningConsumption;
            tmp._refiningProbability = in_refiningProbability;
            tmp._resetProps          = in_resetProps;
            tmp._score               = in_score;
            tmp._seal_exp            = in_seal_exp;
            tmp._skill_Bandom        = in_skill_Bandom;
            tmp._skill_lock          = in_skill_lock;
            tmp._skill_Number        = in_skill_Number;
            tmp._strengthening       = in_strengthening;
            tmp._technicalQuality    = in_technicalQuality;
            tmp._type                = in_type;
            tmp._type1               = in_type1;
            tmp._warehouse_integral  = in_warehouse_integral;

            return(tmp);
        }
Esempio n. 2
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquip");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataEquip = require 'Lua/Config/DataEquip'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquip");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareEquip>(5910);
                    foreach (var item in dic)
                    {
                        DeclareEquip tmp = new DeclareEquip();
                        tmp.Attribute1       = CfgStringLua.Get(item.Value[0]);
                        tmp.Bind             = item.Value[1];
                        tmp.Classlevel       = item.Value[2];
                        tmp.Confirm          = item.Value[3];
                        tmp.Describe         = CfgStringLua.Get(item.Value[4]);
                        tmp.DiamondNumber    = item.Value[5];
                        tmp.DropModel        = item.Value[6];
                        tmp.Effect           = item.Value[7];
                        tmp.EquipDismantling = item.Value[8];
                        tmp.Gender           = item.Value[9];
                        tmp.Grade            = item.Value[10];
                        tmp.Icon             = item.Value[11];
                        tmp.Id                  = item.Value[12];
                        tmp.IfCommon            = item.Value[13];
                        tmp.IsCheck             = item.Value[14];
                        tmp.Level               = item.Value[15];
                        tmp.Levelmax            = item.Value[16];
                        tmp.MilitaryRank        = item.Value[17];
                        tmp.ModelId             = item.Value[18];
                        tmp.Name                = CfgStringLua.Get(item.Value[19]);
                        tmp.Part                = item.Value[20];
                        tmp.Price               = CfgStringLua.Get(item.Value[21]);
                        tmp.PvpProduceEquip     = item.Value[22];
                        tmp.Quality             = item.Value[23];
                        tmp.Quality1            = CfgStringLua.Get(item.Value[24]);
                        tmp.Quality2            = CfgStringLua.Get(item.Value[25]);
                        tmp.Quality3            = CfgStringLua.Get(item.Value[26]);
                        tmp.Quality4            = CfgStringLua.Get(item.Value[27]);
                        tmp.RecommendedTips     = CfgStringLua.Get(item.Value[28]);
                        tmp.RefiningConsumption = CfgStringLua.Get(item.Value[29]);
                        tmp.RefiningProbability = item.Value[30];
                        tmp.ResetProps          = CfgStringLua.Get(item.Value[31]);
                        tmp.Score               = item.Value[32];
                        tmp.SealExp             = item.Value[33];
                        tmp.SkillBandom         = CfgStringLua.Get(item.Value[34]);
                        tmp.SkillLock           = CfgStringLua.Get(item.Value[35]);
                        tmp.SkillNumber         = item.Value[36];
                        tmp.Strengthening       = CfgStringLua.Get(item.Value[37]);
                        tmp.TechnicalQuality    = CfgStringLua.Get(item.Value[38]);
                        tmp.Type                = item.Value[39];
                        tmp.Type1               = item.Value[40];
                        tmp.WarehouseIntegral   = item.Value[41];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Equip");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareEquip>(5910);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Equip");
                }
            }
        }