예제 #1
0
    static int ReadConfig(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        StarAttrConfig obj = (StarAttrConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "StarAttrConfig");

        obj.ReadConfig();
        return(0);
    }
예제 #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);
        }
    }