Beispiel #1
0
        public static DeclareStrengthenVfx Create(int in_level, int in_vfx, int in_vfx1, int in_vfx2, int in_vfx3)
        {
            DeclareStrengthenVfx tmp = new DeclareStrengthenVfx();

            tmp._level = in_level;
            tmp._vfx   = in_vfx;
            tmp._vfx1  = in_vfx1;
            tmp._vfx2  = in_vfx2;
            tmp._vfx3  = in_vfx3;

            return(tmp);
        }
Beispiel #2
0
 public static void Convert(Dictionary <int, DeclareStrengthenVfx> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(4, DeclareStrengthenVfx.Create(4, 400001, 400101, 400201, 400301));
     data.Add(8, DeclareStrengthenVfx.Create(8, 400002, 400102, 400202, 400302));
     data.Add(16, DeclareStrengthenVfx.Create(16, 400003, 400103, 400203, 400303));
     data.Add(24, DeclareStrengthenVfx.Create(24, 400004, 400104, 400204, 400304));
     data.Add(32, DeclareStrengthenVfx.Create(32, 400005, 400105, 400205, 400305));
     data.Add(40, DeclareStrengthenVfx.Create(40, 400006, 400106, 400206, 400306));
     data.Add(48, DeclareStrengthenVfx.Create(48, 400007, 400107, 400207, 400307));
     data.Add(56, DeclareStrengthenVfx.Create(56, 400008, 400108, 400208, 400308));
     data.Add(64, DeclareStrengthenVfx.Create(64, 400009, 400109, 400209, 400309));
     data.Add(72, DeclareStrengthenVfx.Create(72, 400010, 400110, 400210, 400310));
     data.Add(80, DeclareStrengthenVfx.Create(80, 400011, 400111, 400211, 400311));
 }
Beispiel #3
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[]> >("DataStrengthenVfx");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataStrengthenVfx = require 'Lua/Config/DataStrengthenVfx'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataStrengthenVfx");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareStrengthenVfx>(11);
                    foreach (var item in dic)
                    {
                        DeclareStrengthenVfx tmp = new DeclareStrengthenVfx();
                        tmp.Level = item.Value[0];
                        tmp.Vfx   = item.Value[1];
                        tmp.Vfx1  = item.Value[2];
                        tmp.Vfx2  = item.Value[3];
                        tmp.Vfx3  = item.Value[4];

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