Example #1
0
        private static string GetConfigName(BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = string.Empty;

            switch (battleType)
            {
            case BattleEnum.Enum_BattleType.Normal:
                cfgName = "SceneNormal_Client";
                break;
            }
            return(cfgName);
        }
Example #2
0
        private static string GetLanConfigName(BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = string.Empty;

            switch (battleType)
            {
            case BattleEnum.Enum_BattleType.Normal:
                cfgName = "Lan_City_Common";
                break;
            }
            return(cfgName);
        }
Example #3
0
        public static string GetLevel(int iSectionId, BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = GetConfigName(battleType);

            return(ConfigData.GetValue(cfgName, iSectionId.ToString(), "Level"));
        }
Example #4
0
        public static string GetSceneSpawn(int iSectionId, BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = GetConfigName(battleType);

            return(ConfigData.GetValue(cfgName, iSectionId.ToString(), "SpawnPath"));
        }
Example #5
0
        public static string GetMonsterSpawns(int iSectionId, BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = GetConfigName(battleType);

            return("2006;3|2016;1");           //ConfigData.GetValue(cfgName, iSectionId.ToString(), "MonsterSpawns");
        }
Example #6
0
        public static string GetSectionDescription(int iSectionId, BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = GetLanConfigName(battleType);

            return(ConfigData.GetValue(cfgName, iSectionId.ToString(), "PassDes"));
        }
Example #7
0
        public static ConfigRow GetSectionRow(int iSectionId, BattleEnum.Enum_BattleType battleType)
        {
            string cfgName = GetConfigName(battleType);

            return(ConfigData.GetValue(cfgName, iSectionId.ToString()));
        }