Пример #1
0
 public static void Convert(Dictionary <int, DeclareSevendaypartygroup> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1, DeclareSevendaypartygroup.Create(StringDefines.Key_19974, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_19977, StringDefines.Key_19978, 1, 1, StringDefines.Key_19979, StringDefines.Key_19974, StringDefines.Key_19980, 1));
     data.Add(2, DeclareSevendaypartygroup.Create(StringDefines.Key_19981, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_19982, StringDefines.Key_19983, 2, 2, StringDefines.Key_19984, StringDefines.Key_19985, StringDefines.Key_19986, 3));
     data.Add(3, DeclareSevendaypartygroup.Create(StringDefines.Key_19987, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_19988, StringDefines.Key_19983, 3, 3, StringDefines.Key_19989, StringDefines.Key_19990, StringDefines.Key_19991, 2));
     data.Add(4, DeclareSevendaypartygroup.Create(StringDefines.Key_19992, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_19993, StringDefines.Key_19994, 4, 4, StringDefines.Key_19995, StringDefines.Key_18636, StringDefines.Key_19996, 4));
     data.Add(5, DeclareSevendaypartygroup.Create(StringDefines.Key_19997, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_19998, StringDefines.Key_19978, 5, 5, StringDefines.Key_14937, StringDefines.Key_18653, StringDefines.Key_19999, 5));
     data.Add(6, DeclareSevendaypartygroup.Create(StringDefines.Key_20000, StringDefines.Key_19975, StringDefines.Key_19976, StringDefines.Key_20001, StringDefines.Key_20002, 6, 6, StringDefines.Key_20003, StringDefines.Key_20000, StringDefines.Key_20004, 6));
 }
Пример #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[]> >("DataSevendaypartygroup");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataSevendaypartygroup = require 'Lua/Config/DataSevendaypartygroup'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataSevendaypartygroup");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareSevendaypartygroup>(6);
                    foreach (var item in dic)
                    {
                        DeclareSevendaypartygroup tmp = new DeclareSevendaypartygroup();
                        tmp.Award   = CfgStringLua.Get(item.Value[0]);
                        tmp.Desc1   = CfgStringLua.Get(item.Value[1]);
                        tmp.Desc2   = CfgStringLua.Get(item.Value[2]);
                        tmp.Desc3   = CfgStringLua.Get(item.Value[3]);
                        tmp.Desc4   = CfgStringLua.Get(item.Value[4]);
                        tmp.Icon    = item.Value[5];
                        tmp.Id      = item.Value[6];
                        tmp.Name    = CfgStringLua.Get(item.Value[7]);
                        tmp.Strong  = CfgStringLua.Get(item.Value[8]);
                        tmp.Texture = CfgStringLua.Get(item.Value[9]);
                        tmp.Type    = item.Value[10];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Sevendaypartygroup");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareSevendaypartygroup>(6);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Sevendaypartygroup");
                }
            }
        }
Пример #3
0
        public static DeclareSevendaypartygroup Create(string in_award, string in_desc1, string in_desc2, string in_desc3, string in_desc4, int in_icon, int in_id, string in_name, string in_strong, string in_texture, int in_type)
        {
            DeclareSevendaypartygroup tmp = new DeclareSevendaypartygroup();

            tmp._award   = in_award;
            tmp._desc1   = in_desc1;
            tmp._desc2   = in_desc2;
            tmp._desc3   = in_desc3;
            tmp._desc4   = in_desc4;
            tmp._icon    = in_icon;
            tmp._id      = in_id;
            tmp._name    = in_name;
            tmp._strong  = in_strong;
            tmp._texture = in_texture;
            tmp._type    = in_type;

            return(tmp);
        }