Esempio n. 1
0
        public static RandomNameData GetRandomNameData()
        {
            if (_randomNameDataList == null)
            {
#if UNITY_EDITOR
                string localPath = "config/names";
#else
                string localPath = "config/csv/names";
#endif
                if (Common.ResMgr.ResUtil.ExistsInLocal(localPath + ".csv"))
                {
                    _randomNameDataList = CSVUtil.Parse <RandomNameData>(localPath);
                }
                else
                {
                    _randomNameDataList = CSVUtil.Parse <RandomNameData>("config/names");
                }
            }
            if (_randomNameDataList.Count > 0)
            {
                return(_randomNameDataList[0]);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
		public static Dictionary<int, IllustratedData> GetIllustratedDataDicionary ()
		{
			if (_illustratedDataDictionary == null)
			{
				_illustratedDataDictionary = CSVUtil.Parse<int, IllustratedData>("config/csv/atlas", "id");
//				_illustratedDataDictionary = new Dictionary<int, IllustratedData>();
//				LuaTable luaTable = LuaScriptMgr.Instance.GetLuaTable("gamemanager");
//				object[] objs = LuaScriptMgr.Instance.CallLuaFunction("gamemanager.GetData","illustration_data");
//				LuaTable datas = objs[0] as LuaTable;
//				foreach(DictionaryEntry kvp in datas.ToDictTable())
//				{
//					LuaTable data = kvp.Value as LuaTable;
//					if(data == null)
//						continue;
//					IllustratedData illusData = new IllustratedData();
//					illusData.id = data["id"].ToString().ToInt32();
//					illusData.type = data["type"].ToString().ToInt32();
//					illusData.type_name = data["type_name"].ToString();
//					illusData.sheet = data["sheet"].ToString().ToInt32();
//					illusData.sheet_name = data["sheet_name"].ToString();
//					illusData.hero_id = data["hero_id"].ToString().ToInt32();
//					illusData.hero_star = data["hero_star"].ToString().ToInt32();
//					_illustratedDataDictionary.Add(illusData.id,illusData);
//				}

			}
			return _illustratedDataDictionary;
		}
 public static Dictionary <int, HeroCombineNeedData> GetHeroCombineNeedDatas()
 {
     if (_heroCombineNeedDataDictionary == null)
     {
         _heroCombineNeedDataDictionary = CSVUtil.Parse <int, HeroCombineNeedData>("config/csv/compose_need", "star");
     }
     return(_heroCombineNeedDataDictionary);
 }
Esempio n. 4
0
 public static Dictionary <int, BroadCastData> GetBroadcastDatas()
 {
     if (_broadcastDataDictionary == null)
     {
         _broadcastDataDictionary = CSVUtil.Parse <int, BroadCastData>("config/csv/broadcast", "id");
     }
     return(_broadcastDataDictionary);
 }
Esempio n. 5
0
 public static Dictionary <int, HeroData> GetHeroDatas()
 {
     if (_heroDataDictionary == null)
     {
         _heroDataDictionary = CSVUtil.Parse <int, HeroData>("config/csv/hero", "id");
     }
     return(_heroDataDictionary);
 }
Esempio n. 6
0
 public static Dictionary <int, PrizeData> GetPrizeDatas()
 {
     if (_prizeDataDictionary == null)
     {
         _prizeDataDictionary = CSVUtil.Parse <int, PrizeData>("config/csv/prize", "id");
     }
     return(_prizeDataDictionary);
 }
Esempio n. 7
0
 public static Dictionary <int, ShopCardRandomData> GetShopCardRandomDataDictionary()
 {
     if (_shopCardRandomDataDictionary == null)
     {
         _shopCardRandomDataDictionary = CSVUtil.Parse <int, ShopCardRandomData>("config/csv/shop_card_random", "id");
     }
     return(_shopCardRandomDataDictionary);
 }
Esempio n. 8
0
 public static Dictionary <int, FormationData> GetFormationDatas()
 {
     if (_formationDataDictionary == null)
     {
         _formationDataDictionary = CSVUtil.Parse <int, FormationData>("config/csv/formation", "id");
     }
     return(_formationDataDictionary);
 }
Esempio n. 9
0
 public static Dictionary <int, HeroStrengthenNeedData> GetStrengthenNeedDatas()
 {
     if (_heroDataDictionary == null)
     {
         _heroDataDictionary = CSVUtil.Parse <int, HeroStrengthenNeedData>("config/csv/aggr_need", "aggr_lv");
     }
     return(_heroDataDictionary);
 }
Esempio n. 10
0
 public static Dictionary <int, PayCallbackData> GetPayCallbackData()
 {
     if (_serverDataDictionary == null)
     {
         _serverDataDictionary = CSVUtil.Parse <int, PayCallbackData>("config/csv/paycallback", "id");
     }
     return(_serverDataDictionary);
 }
Esempio n. 11
0
 public static Dictionary <int, HeroAdvanceData> GetHeroAdvanceDatas()
 {
     if (_heroAdvanceDataDictionary == null)
     {
         _heroAdvanceDataDictionary = CSVUtil.Parse <int, HeroAdvanceData>("config/csv/advance", "star");
     }
     return(_heroAdvanceDataDictionary);
 }
Esempio n. 12
0
 public static Dictionary <int, HeroTransformData> GetHeroTransformDataDicionary()
 {
     if (_heroTransformDataDictionary == null)
     {
         _heroTransformDataDictionary = CSVUtil.Parse <int, HeroTransformData>("config/csv/hero_transform", "id");
     }
     return(_heroTransformDataDictionary);
 }
Esempio n. 13
0
 public static Dictionary <int, FunctionData> GetFunctionDatas()
 {
     if (_FunctionDataDictionary == null)
     {
         _FunctionDataDictionary = CSVUtil.Parse <int, FunctionData>("config/csv/newfunction", "id");
     }
     return(_FunctionDataDictionary);
 }
Esempio n. 14
0
 public static Dictionary <int, BlackMarketRuleData> GetBlackMarketRuleDatas()
 {
     if (_blackmarketRuleDataDictionary == null)
     {
         _blackmarketRuleDataDictionary = CSVUtil.Parse <int, BlackMarketRuleData>("config/csv/market_rule", "id");
     }
     return(_blackmarketRuleDataDictionary);
 }
Esempio n. 15
0
 public static Dictionary <uint, AnimationData> GetAnimationDatas()
 {
     if (_animationDataDic == null)
     {
         _animationDataDic = CSVUtil.Parse <uint, AnimationData>("config/csv/animation", "SkillId");
     }
     return(_animationDataDic);
 }
 public static Dictionary <int, EquipmentStrengthenNeedData> GetEquipmentStrengthenNeedDatas()
 {
     if (_equipmentStrengthenNeedDataDictionary == null)
     {
         _equipmentStrengthenNeedDataDictionary = CSVUtil.Parse <int, EquipmentStrengthenNeedData>("config/csv/equip_aggr_need", "aggr_lv");
     }
     return(_equipmentStrengthenNeedDataDictionary);
 }
Esempio n. 17
0
 public static List <PrizeElementData> GetPrizeElementDatas()
 {
     if (_prizeElementDataList == null)
     {
         _prizeElementDataList = CSVUtil.Parse <PrizeElementData>("config/csv/prize_element");
     }
     return(_prizeElementDataList);
 }
Esempio n. 18
0
 public static Dictionary <int, ShopItemData> GetShopItemData()
 {
     if (_shopItemDataDictionary == null)
     {
         _shopItemDataDictionary = CSVUtil.Parse <int, ShopItemData>("config/csv/shop_item", "id");
     }
     return(_shopItemDataDictionary);
 }
Esempio n. 19
0
 public static Dictionary <uint, SkillData> GetSkillDatas()
 {
     if (_skillDataDic == null)
     {
         _skillDataDic = CSVUtil.Parse <uint, SkillData>("config/csv/skill", "SkillId");
     }
     return(_skillDataDic);
 }
Esempio n. 20
0
 public static Dictionary <int, TaskData> GetTaskDataDicionary()
 {
     if (_taskDataDictionary == null)
     {
         _taskDataDictionary = CSVUtil.Parse <int, TaskData>("config/csv/task", "id");
     }
     return(_taskDataDictionary);
 }
Esempio n. 21
0
 public static Dictionary <int, ExpeditionData> GetExpeditionDatas()
 {
     if (_expeditionDataDictionary == null)
     {
         _expeditionDataDictionary = CSVUtil.Parse <int, ExpeditionData>("config/csv/faraway_expedition", "id");
     }
     return(_expeditionDataDictionary);
 }
 public static Dictionary <int, HeroStrengthenProvideData> GetStrengthProvideDatas()
 {
     if (_heroDataDictionary == null)
     {
         _heroDataDictionary = CSVUtil.Parse <int, HeroStrengthenProvideData>("config/csv/aggr", "star");
     }
     return(_heroDataDictionary);
 }
Esempio n. 23
0
 public static Dictionary <int, AudioData> GetAudioDatas()
 {
     if (_audioDataDic == null)
     {
         _audioDataDic = CSVUtil.Parse <int, AudioData>("config/csv/audio", "id");
     }
     return(_audioDataDic);
 }
Esempio n. 24
0
 public static Dictionary <uint, AvatarData> GetAvatarDatas()
 {
     if (_avatarDataDictionary == null)
     {
         _avatarDataDictionary = CSVUtil.Parse <uint, AvatarData>("config/csv/avatar", "Id");
     }
     return(_avatarDataDictionary);
 }
Esempio n. 25
0
 public static Dictionary <uint, PassiveData> GetPassiveDatas()
 {
     if (_passiveDataDic == null)
     {
         _passiveDataDic = CSVUtil.Parse <uint, PassiveData>("config/csv/passive", "SkillId");
     }
     return(_passiveDataDic);
 }
Esempio n. 26
0
 public static Dictionary <int, DungeonStarData> GetDungeonStarDataDictionary()
 {
     if (_dungeonStarDataDictionary == null)
     {
         _dungeonStarDataDictionary = CSVUtil.Parse <int, DungeonStarData>("config/csv/dungeon_star", "id");
     }
     return(_dungeonStarDataDictionary);
 }
Esempio n. 27
0
 private static Dictionary <int, ConsumeTipData> GetConsumeTipDataDicionary()
 {
     if (_consumeTipDataDictionary == null)
     {
         _consumeTipDataDictionary = CSVUtil.Parse <int, ConsumeTipData>("config/csv/consumer_tips", "function_id");
     }
     return(_consumeTipDataDictionary);
 }
Esempio n. 28
0
 public static Dictionary <int, SignInData> GetSignInDatas()
 {
     if (_SignInDataDictionary == null)
     {
         _SignInDataDictionary = CSVUtil.Parse <int, SignInData>("config/csv/sign", "sign_id");
     }
     return(_SignInDataDictionary);
 }
Esempio n. 29
0
 public static Dictionary <uint, TeamData> GetTeamDatas()
 {
     if (_teamDataDictionary == null)
     {
         _teamDataDictionary = CSVUtil.Parse <uint, TeamData>("config/csv/team", "team_id");
     }
     return(_teamDataDictionary);
 }
Esempio n. 30
0
 public static Dictionary <uint, MechanicsData> GetMechanicsDatas()
 {
     if (_mechanicsDataDic == null)
     {
         _mechanicsDataDic = CSVUtil.Parse <uint, MechanicsData>("config/csv/mechanics", "Id");
     }
     return(_mechanicsDataDic);
 }