public static DeclareGoddessbadge Create(string in_accomplishments, int in_badgeId, string in_boss, string in_des, string in_equip, int in_id, string in_item, string in_reward, string in_showDes)
        {
            DeclareGoddessbadge tmp = new DeclareGoddessbadge();

            tmp._accomplishments = in_accomplishments;
            tmp._badgeId         = in_badgeId;
            tmp._boss            = in_boss;
            tmp._des             = in_des;
            tmp._equip           = in_equip;
            tmp._id      = in_id;
            tmp._item    = in_item;
            tmp._reward  = in_reward;
            tmp._showDes = in_showDes;

            return(tmp);
        }
        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[]> >("DataGoddessbadge");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGoddessbadge = require 'Lua/Config/DataGoddessbadge'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGoddessbadge");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGoddessbadge>(29);
                    foreach (var item in dic)
                    {
                        DeclareGoddessbadge tmp = new DeclareGoddessbadge();
                        tmp.Accomplishments = CfgStringLua.Get(item.Value[0]);
                        tmp.BadgeId         = item.Value[1];
                        tmp.Boss            = CfgStringLua.Get(item.Value[2]);
                        tmp.Des             = CfgStringLua.Get(item.Value[3]);
                        tmp.Equip           = CfgStringLua.Get(item.Value[4]);
                        tmp.Id      = item.Value[5];
                        tmp.Item    = CfgStringLua.Get(item.Value[6]);
                        tmp.Reward  = CfgStringLua.Get(item.Value[7]);
                        tmp.ShowDes = CfgStringLua.Get(item.Value[8]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Goddessbadge");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGoddessbadge>(29);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Goddessbadge");
                }
            }
        }
Exemple #3
0
 public static void Convert(Dictionary <int, DeclareGoddessbadge> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1001, DeclareGoddessbadge.Create(StringDefines.Key_49883, 101, StringDefines.Key_20, StringDefines.Key_49884, StringDefines.Key_49885, 1001, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1002, DeclareGoddessbadge.Create(StringDefines.Key_49888, 101, StringDefines.Key_20, StringDefines.Key_49889, StringDefines.Key_49890, 1002, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1003, DeclareGoddessbadge.Create(StringDefines.Key_49891, 101, StringDefines.Key_20, StringDefines.Key_49892, StringDefines.Key_49893, 1003, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1004, DeclareGoddessbadge.Create(StringDefines.Key_49894, 101, StringDefines.Key_20, StringDefines.Key_49895, StringDefines.Key_49896, 1004, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1005, DeclareGoddessbadge.Create(StringDefines.Key_49897, 101, StringDefines.Key_20, StringDefines.Key_49898, StringDefines.Key_49899, 1005, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1006, DeclareGoddessbadge.Create(StringDefines.Key_49900, 101, StringDefines.Key_20, StringDefines.Key_49901, StringDefines.Key_49902, 1006, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1007, DeclareGoddessbadge.Create(StringDefines.Key_49903, 101, StringDefines.Key_20, StringDefines.Key_49904, StringDefines.Key_49905, 1007, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(1008, DeclareGoddessbadge.Create(StringDefines.Key_49906, 101, StringDefines.Key_20, StringDefines.Key_49907, StringDefines.Key_49908, 1008, StringDefines.Key_20, StringDefines.Key_49886, StringDefines.Key_49887));
     data.Add(2001, DeclareGoddessbadge.Create(StringDefines.Key_49909, 201, StringDefines.Key_20, StringDefines.Key_49910, StringDefines.Key_49911, 2001, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(2002, DeclareGoddessbadge.Create(StringDefines.Key_49912, 201, StringDefines.Key_20, StringDefines.Key_49913, StringDefines.Key_49914, 2002, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(2003, DeclareGoddessbadge.Create(StringDefines.Key_49915, 201, StringDefines.Key_20, StringDefines.Key_49916, StringDefines.Key_49917, 2003, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(2004, DeclareGoddessbadge.Create(StringDefines.Key_49918, 201, StringDefines.Key_20, StringDefines.Key_49919, StringDefines.Key_49920, 2004, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(2005, DeclareGoddessbadge.Create(StringDefines.Key_49921, 201, StringDefines.Key_20, StringDefines.Key_49922, StringDefines.Key_49923, 2005, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(2006, DeclareGoddessbadge.Create(StringDefines.Key_49924, 201, StringDefines.Key_20, StringDefines.Key_49925, StringDefines.Key_49926, 2006, StringDefines.Key_20, StringDefines.Key_30810, StringDefines.Key_49887));
     data.Add(3001, DeclareGoddessbadge.Create(StringDefines.Key_49927, 301, StringDefines.Key_49928, StringDefines.Key_49929, StringDefines.Key_20, 3001, StringDefines.Key_20, StringDefines.Key_12611, StringDefines.Key_49930));
     data.Add(3002, DeclareGoddessbadge.Create(StringDefines.Key_49931, 301, StringDefines.Key_49932, StringDefines.Key_49929, StringDefines.Key_20, 3002, StringDefines.Key_20, StringDefines.Key_12611, StringDefines.Key_49930));
     data.Add(3003, DeclareGoddessbadge.Create(StringDefines.Key_49933, 301, StringDefines.Key_49934, StringDefines.Key_49929, StringDefines.Key_20, 3003, StringDefines.Key_20, StringDefines.Key_12611, StringDefines.Key_49930));
     data.Add(3004, DeclareGoddessbadge.Create(StringDefines.Key_49935, 301, StringDefines.Key_49936, StringDefines.Key_49929, StringDefines.Key_20, 3004, StringDefines.Key_20, StringDefines.Key_12611, StringDefines.Key_49930));
     data.Add(3005, DeclareGoddessbadge.Create(StringDefines.Key_49937, 301, StringDefines.Key_49938, StringDefines.Key_49939, StringDefines.Key_20, 3005, StringDefines.Key_20, StringDefines.Key_16865, StringDefines.Key_49930));
     data.Add(4001, DeclareGoddessbadge.Create(StringDefines.Key_9764, 401, StringDefines.Key_20, StringDefines.Key_49940, StringDefines.Key_20, 4001, StringDefines.Key_49941, StringDefines.Key_12611, StringDefines.Key_49942));
     data.Add(4002, DeclareGoddessbadge.Create(StringDefines.Key_9767, 401, StringDefines.Key_20, StringDefines.Key_49943, StringDefines.Key_20, 4002, StringDefines.Key_49941, StringDefines.Key_12611, StringDefines.Key_49942));
     data.Add(4003, DeclareGoddessbadge.Create(StringDefines.Key_9770, 401, StringDefines.Key_20, StringDefines.Key_49944, StringDefines.Key_20, 4003, StringDefines.Key_49941, StringDefines.Key_12611, StringDefines.Key_49942));
     data.Add(4004, DeclareGoddessbadge.Create(StringDefines.Key_9773, 401, StringDefines.Key_20, StringDefines.Key_49945, StringDefines.Key_20, 4004, StringDefines.Key_49941, StringDefines.Key_12611, StringDefines.Key_49942));
     data.Add(4005, DeclareGoddessbadge.Create(StringDefines.Key_9776, 401, StringDefines.Key_20, StringDefines.Key_49946, StringDefines.Key_20, 4005, StringDefines.Key_49941, StringDefines.Key_12611, StringDefines.Key_49942));
     data.Add(5001, DeclareGoddessbadge.Create(StringDefines.Key_49947, 501, StringDefines.Key_20, StringDefines.Key_49948, StringDefines.Key_20, 5001, StringDefines.Key_49949, StringDefines.Key_49886, StringDefines.Key_49950));
     data.Add(5002, DeclareGoddessbadge.Create(StringDefines.Key_49951, 501, StringDefines.Key_20, StringDefines.Key_49952, StringDefines.Key_20, 5002, StringDefines.Key_49953, StringDefines.Key_13609, StringDefines.Key_49950));
     data.Add(5003, DeclareGoddessbadge.Create(StringDefines.Key_49954, 501, StringDefines.Key_20, StringDefines.Key_49955, StringDefines.Key_20, 5003, StringDefines.Key_49956, StringDefines.Key_13609, StringDefines.Key_49950));
     data.Add(5004, DeclareGoddessbadge.Create(StringDefines.Key_49957, 501, StringDefines.Key_20, StringDefines.Key_49958, StringDefines.Key_20, 5004, StringDefines.Key_49959, StringDefines.Key_12611, StringDefines.Key_49950));
     data.Add(5005, DeclareGoddessbadge.Create(StringDefines.Key_49960, 501, StringDefines.Key_20, StringDefines.Key_49961, StringDefines.Key_20, 5005, StringDefines.Key_49962, StringDefines.Key_12611, StringDefines.Key_49950));
 }