/** * @brief 读取数据 * * @param node * * @return */ public bool CollectData(DataMap_Type type, string file, string rootLabel) { bool result = false; switch (type) { case DataMap_Type.DT_Unit: { result = m_UnitMgr.CollectDataFromDBC(file, rootLabel); } break; case DataMap_Type.DT_SceneLogic: { result = m_SceneLogicMgr.CollectDataFromDBC(file, rootLabel); } break; case DataMap_Type.DT_All: case DataMap_Type.DT_None: default: { } break; } return(result); }
/** * @brief 读取数据 * * @param node * * @return */ public bool CollectData(SkillConfigType type, string file, string rootLabel) { bool result = false; switch (type) { case SkillConfigType.SCT_SKILL: { result = skillLogicDataMgr.CollectDataFromDBC(file, rootLabel); } break; case SkillConfigType.SCT_IMPACT: { result = impactLogicDataMgr.CollectDataFromDBC(file, rootLabel); } break; case SkillConfigType.SCT_EFFECT: { result = effectLogicDataMgr.CollectDataFromDBC(file, rootLabel); } break; case SkillConfigType.SCT_SOUND: { result = soundLogicDataMgr.CollectDataFromDBC(file, rootLabel); } break; default: { LogSystem.Assert(false, "SkillConfigProvider.CollectData type error!"); } break; } return(result); }