// ReSharper disable once UnusedMember.Global // ReSharper disable once MemberCanBePrivate.Global public static void LoadMap(Map __instance, int _no) { if (__instance.no == _no || !Singleton <Info> .Instance.dicMapLoadInfo.TryGetValue(_no, out var data) || Cursed.IsCursedManifest(data.manifest)) { return; } Dependency.LoadDependency(data.bundlePath, data.manifest); }
// ReSharper disable once UnusedMember.Global public static void GetLoadInfo(int _group, int _category, int _no) { if (!Singleton <Info> .Instance.dicItemLoadInfo.TryGetValue(_group, out var dictionary) || !dictionary.TryGetValue(_category, out var dictionary2) || !dictionary2.TryGetValue(_no, out var result) || Cursed.IsCursedManifest(result.manifest)) { return; } Dependency.LoadDependency(result.bundlePath, result.manifest); }
// ReSharper disable once UnusedMember.Global public static void ChangeAsync(int _no, FadeCanvas.Fade fadeType = FadeCanvas.Fade.InOut, bool isForce = false) { if (!(ReferenceEquals(BaseMap.mapRoot, null) || BaseMap.no != _no || isForce) || !BaseMap.infoTable.TryGetValue(_no, out var info) || info == null || !ManifestInfo.Get(info.AssetBundleName, info.AssetName, out var manifest) || Cursed.IsCursedManifest(manifest)) { return; } Dependency.LoadDependency(info.AssetBundleName, manifest); }
public static bool Get(string bundle, string asset, out string result) { result = null; if (!Data.TryGetValue(bundle, out var assetDict) || assetDict == null || !assetDict.TryGetValue(asset, out var manifest) || Cursed.IsCursedManifest(manifest)) { return(false); } result = manifest; return(true); }