/**
         * @brief 提取数据
         *
         * @param node
         *
         * @return
         */
        public IData ExtractData(DataMap_Type type, int id)
        {
            IData result = null;

            switch (type)
            {
            case DataMap_Type.DT_Unit:
            {
                result = m_UnitMgr.GetDataById(id);
            } break;

            case DataMap_Type.DT_SceneLogic: {
                result = m_SceneLogicMgr.GetDataById(id);
            } break;

            case DataMap_Type.DT_All:
            case DataMap_Type.DT_None:
            default:
            {
                result = null;
            } break;
            }

            return(result);
        }
Exemple #2
0
        /**
         * @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);
        }