예제 #1
0
        // 初始化csv表
        protected void InitClanConfigCsv(string stPath)
        {
            ScpReader reader = new ScpReader(stPath, true, 2);

            tClanConfig = new SSchemeClanConfig();

            for (int i = 0; i < (int)ClanConfigRow.EMT_ROW_MAX; i++)
            {
                switch (i)
                {
                case (int)ClanConfigRow.EMT_ROW_CLAN_DISMISSING_LIFE:
                {
                    tClanConfig.nDismissingLife = reader.GetInt(i, 1, 0);
                }
                break;

                case (int)ClanConfigRow.EMT_ROW_CLAN_TIP:
                {
                    tClanConfig.sClanTip = reader.GetString(i, 1, string.Empty);
                }
                break;

                default:
                    break;
                }
            }
        }
예제 #2
0
        public void UnLoad()
        {
            if (tClanConfig != null)
            {
                tClanConfig = null;
            }

            if (tClanLevelMap != null)
            {
                tClanLevelMap.Clear();
                tClanLevelMap = null;
            }

            singleton = null;
        }