using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using UnityEngine; using AssetBundleBrowser.AssetBundleModel; namespace Assets.AssetBundles_Browser.Editor.Tests.Util { class ABModelUtil { /// /// Empty texutre for testing purposes /// public static Texture2D FakeTexture2D { get { return new Texture2D(16, 16); } } /// /// This is the Models root folder object. /// public static BundleFolderConcreteInfo Root { get { FieldInfo rootFieldInfo = typeof(Model).GetField("s_RootLevelBundles", BindingFlags.NonPublic | BindingFlags.Static); BundleFolderConcreteInfo concreteFolder = rootFieldInfo.GetValue(null) as BundleFolderConcreteInfo; return concreteFolder; } } public static List BundlesToUpdate { get { FieldInfo info = typeof(Model).GetField("s_BundlesToUpdate", BindingFlags.NonPublic | BindingFlags.Static); List bundleInfo = info.GetValue(null) as List; return bundleInfo; } } public static IList MoveData { get { FieldInfo info = typeof(Model).GetField("s_MoveData", BindingFlags.NonPublic | BindingFlags.Static); var moveData = info.GetValue(null) as IList; return moveData; } } } }