Exemplo n.º 1
0
        public static DeclareKaifuActivityBOSS Create(int in_bOSSID, int in_id, int in_maps, int in_openUI, int in_position, int in_profit_num, string in_reward, int in_tapy, int in_zoom)
        {
            DeclareKaifuActivityBOSS tmp = new DeclareKaifuActivityBOSS();

            tmp._bOSSID     = in_bOSSID;
            tmp._id         = in_id;
            tmp._maps       = in_maps;
            tmp._openUI     = in_openUI;
            tmp._position   = in_position;
            tmp._profit_num = in_profit_num;
            tmp._reward     = in_reward;
            tmp._tapy       = in_tapy;
            tmp._zoom       = in_zoom;

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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareKaifuActivityBOSS>(28);
                    foreach (var item in dic)
                    {
                        DeclareKaifuActivityBOSS tmp = new DeclareKaifuActivityBOSS();
                        tmp.BOSSID    = item.Value[0];
                        tmp.Id        = item.Value[1];
                        tmp.Maps      = item.Value[2];
                        tmp.OpenUI    = item.Value[3];
                        tmp.Position  = item.Value[4];
                        tmp.ProfitNum = item.Value[5];
                        tmp.Reward    = CfgStringLua.Get(item.Value[6]);
                        tmp.Tapy      = item.Value[7];
                        tmp.Zoom      = item.Value[8];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "KaifuActivityBOSS");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareKaifuActivityBOSS>(28);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "KaifuActivityBOSS");
                }
            }
        }
Exemplo n.º 3
0
 public static void Convert(Dictionary <int, DeclareKaifuActivityBOSS> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(101, DeclareKaifuActivityBOSS.Create(50001, 101, 350, 1046000, 1, 1, StringDefines.Key_34592, 3, 280));
     data.Add(102, DeclareKaifuActivityBOSS.Create(50002, 102, 350, 1046000, 1, 1, StringDefines.Key_34592, 3, 280));
     data.Add(103, DeclareKaifuActivityBOSS.Create(50003, 103, 350, 1046000, 1, 1, StringDefines.Key_34592, 3, 245));
     data.Add(104, DeclareKaifuActivityBOSS.Create(50004, 104, 350, 1046000, 1, 1, StringDefines.Key_34592, 3, 280));
     data.Add(105, DeclareKaifuActivityBOSS.Create(50005, 105, 350, 1046000, 1, 1, StringDefines.Key_34592, 3, 420));
     data.Add(201, DeclareKaifuActivityBOSS.Create(50003, 201, 350, 1046000, 2, 1, StringDefines.Key_34593, 3, 245));
     data.Add(202, DeclareKaifuActivityBOSS.Create(50004, 202, 350, 1046000, 2, 1, StringDefines.Key_34593, 3, 280));
     data.Add(203, DeclareKaifuActivityBOSS.Create(50005, 203, 350, 1046000, 2, 1, StringDefines.Key_34593, 3, 420));
     data.Add(204, DeclareKaifuActivityBOSS.Create(50006, 204, 350, 1046000, 2, 1, StringDefines.Key_34593, 3, 910));
     data.Add(205, DeclareKaifuActivityBOSS.Create(50007, 205, 351, 1046000, 2, 1, StringDefines.Key_34593, 3, 322));
     data.Add(206, DeclareKaifuActivityBOSS.Create(50008, 206, 350, 1046000, 2, 1, StringDefines.Key_34593, 3, 217));
     data.Add(301, DeclareKaifuActivityBOSS.Create(50006, 301, 350, 1046000, 3, 1, StringDefines.Key_34594, 3, 910));
     data.Add(302, DeclareKaifuActivityBOSS.Create(50007, 302, 351, 1046000, 3, 1, StringDefines.Key_34594, 3, 322));
     data.Add(303, DeclareKaifuActivityBOSS.Create(50008, 303, 350, 1046000, 3, 1, StringDefines.Key_34594, 3, 217));
     data.Add(304, DeclareKaifuActivityBOSS.Create(50009, 304, 351, 1046000, 3, 1, StringDefines.Key_34594, 3, 266));
     data.Add(305, DeclareKaifuActivityBOSS.Create(50010, 305, 351, 1046000, 3, 1, StringDefines.Key_34594, 3, 189));
     data.Add(306, DeclareKaifuActivityBOSS.Create(50011, 306, 352, 1046000, 3, 1, StringDefines.Key_34594, 3, 560));
     data.Add(307, DeclareKaifuActivityBOSS.Create(50012, 307, 352, 1046000, 3, 1, StringDefines.Key_34594, 3, 287));
     data.Add(401, DeclareKaifuActivityBOSS.Create(50007, 401, 351, 1046000, 4, 1, StringDefines.Key_34595, 2, 322));
     data.Add(402, DeclareKaifuActivityBOSS.Create(50008, 402, 350, 1046000, 4, 1, StringDefines.Key_34595, 2, 217));
     data.Add(403, DeclareKaifuActivityBOSS.Create(50009, 403, 351, 1046000, 4, 1, StringDefines.Key_34595, 2, 266));
     data.Add(404, DeclareKaifuActivityBOSS.Create(50010, 404, 351, 1046000, 4, 1, StringDefines.Key_34595, 2, 189));
     data.Add(405, DeclareKaifuActivityBOSS.Create(50011, 405, 352, 1046000, 4, 1, StringDefines.Key_34595, 2, 560));
     data.Add(406, DeclareKaifuActivityBOSS.Create(50012, 406, 352, 1046000, 4, 1, StringDefines.Key_34595, 2, 287));
     data.Add(407, DeclareKaifuActivityBOSS.Create(64005, 407, 5100, 1043000, 4, 0, StringDefines.Key_34595, 1, 350));
     data.Add(408, DeclareKaifuActivityBOSS.Create(64006, 408, 5100, 1043000, 4, 0, StringDefines.Key_34595, 1, 280));
     data.Add(409, DeclareKaifuActivityBOSS.Create(64007, 409, 5100, 1043000, 4, 0, StringDefines.Key_34595, 1, 280));
     data.Add(410, DeclareKaifuActivityBOSS.Create(64008, 410, 5100, 1043000, 4, 0, StringDefines.Key_34595, 1, 245));
 }