private void SwitchAssetBundleDatasLocation(ResourceEditorAssetBundleData assetBundleEditorData, LocationType locationType)
        {
            if (locationType == assetBundleEditorData.Location)
            {
                return;
            }

            assetBundleEditorData.Location = locationType;

            if (locationType == LocationType.ODR)
            {
                assetBundleEditorData.OdrTag = "odr_" + assetBundleEditorData.Id;
            }
        }
        private void FillAssetBundleLocationInfo(ResourceEditorAssetBundleData data, ConfigData configData)
        {
            if (configData == null)
            {
                return;
            }

            var assetBundleData = configData.GetAssetBundleData(data.Id);

            if (assetBundleData == null || assetBundleData.InLocation == null)
            {
                return;
            }

            data.Location = assetBundleData.InLocation.Location;
            if (data.Location == LocationType.ODR)
            {
                data.OdrTag = assetBundleData.InLocation.Id;
            }
        }
        public List <ResourceEditorAssetBundleData> InitAssetBundleDatas(string[] assetBundleNames, ConfigData configData)
        {
            var assetBundleEditorDatas = new List <ResourceEditorAssetBundleData> ();

            if (assetBundleNames == null)
            {
                return(assetBundleEditorDatas);
            }

            foreach (var assetBundleName in assetBundleNames)
            {
                var assetBundleEditorData = new ResourceEditorAssetBundleData {
                    Id = assetBundleName
                };
                FillAssetBundleLocationInfo(assetBundleEditorData, configData);
                assetBundleEditorDatas.Add(assetBundleEditorData);
            }

            return(assetBundleEditorDatas);
        }