Ejemplo n.º 1
0
    static int ReadConfig(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        TourConfig obj = (TourConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "TourConfig");

        obj.ReadConfig();
        return(0);
    }
Ejemplo n.º 2
0
    public void ParseCommonConfig()
    {
        try
        {
            while (true)
            {
                AnnouncementConfigData.ReadConfig();
                BadgeAttrConfigData.ReadConfig();
                ConstStringConfigData.ReadConfig();
                CommonConfig.ReadConfig();
                TrainingConfig.ReadConfig();
                TattooConfig.ReadConfig();
                EquipmentConfigData.ReadConfig();
                starAttrConfig.ReadConfig();
                qualityAttrCorConfig.ReadConfig();
                FightingCapacityConfig.ReadConfig();
                HedgingConfig.ReadConfig();
                roleGiftConfig.ReadConfig();
                shootGameConfig.ReadConfig();
                TourConfig.ReadConfig();
                GuideConfig.ReadConfig();
                DebugConfig.ReadConfig();
                talentConfig.ReadConfig();
                ladderConfig.ReadConfig();


                lock (LockObject)
                {
                    //Debug.Log("ParseCommonConfig --- readConfigCnt : " + readConfigCnt);
                    if (loadConfigCnt > 30 && loadConfigCnt == readConfigCnt)
                    {
                        return;
                    }
                }
                Thread.Sleep(15);
            }
        }
        catch (System.Exception ex)
        {
            //Debug.LogError("Config parse error: " + ex.Message + "" + LogType.Exception + ex.StackTrace);
        }
    }