public static DeclareGuildFightReward Create(int in_area, string in_auction, int in_num, int in_outcome, string in_reward_item, int in_reward_title)
        {
            DeclareGuildFightReward tmp = new DeclareGuildFightReward();

            tmp._area         = in_area;
            tmp._auction      = in_auction;
            tmp._num          = in_num;
            tmp._outcome      = in_outcome;
            tmp._reward_item  = in_reward_item;
            tmp._reward_title = in_reward_title;

            return(tmp);
        }
 public static void Convert(Dictionary <int, DeclareGuildFightReward> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1, DeclareGuildFightReward.Create(1, StringDefines.Key_50135, 1, 1, StringDefines.Key_50136, 14));
     data.Add(2, DeclareGuildFightReward.Create(1, StringDefines.Key_50137, 2, 2, StringDefines.Key_50138, 13));
     data.Add(3, DeclareGuildFightReward.Create(2, StringDefines.Key_20, 3, 1, StringDefines.Key_50138, 12));
     data.Add(4, DeclareGuildFightReward.Create(2, StringDefines.Key_20, 4, 2, StringDefines.Key_16865, 0));
     data.Add(5, DeclareGuildFightReward.Create(3, StringDefines.Key_20, 5, 1, StringDefines.Key_16865, 0));
     data.Add(6, DeclareGuildFightReward.Create(3, StringDefines.Key_20, 6, 2, StringDefines.Key_12611, 0));
     data.Add(7, DeclareGuildFightReward.Create(10, StringDefines.Key_50139, 7, 1, StringDefines.Key_50136, 0));
     data.Add(8, DeclareGuildFightReward.Create(10, StringDefines.Key_50140, 8, 2, StringDefines.Key_50138, 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[]> >("DataGuildFightReward");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGuildFightReward = require 'Lua/Config/DataGuildFightReward'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGuildFightReward");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGuildFightReward>(8);
                    foreach (var item in dic)
                    {
                        DeclareGuildFightReward tmp = new DeclareGuildFightReward();
                        tmp.Area        = item.Value[0];
                        tmp.Auction     = CfgStringLua.Get(item.Value[1]);
                        tmp.Num         = item.Value[2];
                        tmp.Outcome     = item.Value[3];
                        tmp.RewardItem  = CfgStringLua.Get(item.Value[4]);
                        tmp.RewardTitle = item.Value[5];

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