Releases: michael811125/OxGFrame
Releases · michael811125/OxGFrame
Release v2.7.10
[2.7.10] - 2023-09-11
- Added more check methods for AssetObject.
public bool IsRawFileOperationHandleValid()
public bool IsSceneOperationHandleValid()
public bool IsAssetOperationHandleValid()
- Modified RefineResourcesPath and RefineBuildScenePath solution.
- Modified AssetObject to optmize determines.
- Modified CacheBundle determines and use package.CheckLocationValid of YooAsset to make sure asset does exist.
- Optimized AssetLoaders (CacheResource and CacheBundle).
Release v2.7.9
[2.7.9] - 2023-09-10
- Fixed AssetLoader retry counter determine bug issue.
- Fixed CacheBundle wrong unload type while doing retry.
- Modified Progression name of params (corrected reqSize to currentCount, totalSize to totalCount).
Release v2.7.8
[2.7.8] - 2023-09-09
- Added retry counter for AssetLoader (can set maxRetryCount via API).
- Modified AcaxAsync can return text.
- Optimized Hotfixer.
- Optimized code.
Release v2.7.7
[2.7.7] - 2023-08-27
- Updated YooAsset to 1.5.4-perview.
- Installed OxGKit.LoggingSystem for all modules log print.
- Add https://github.com/michael811125/OxGKit.git?path=Assets/OxGKit/LoggingSystem/Scripts to Package Manager
Note: Must install OxGKit.LoggingSystem, becuase all modules log are dependent it.
Release v2.7.6
[2.7.6] - 2023-08-24
- Optimized AudioBase and VideoBase of MediaFrame update behaviour call by MediaManager.
- Updated YooAsset new commit files.
Release v2.7.5
[2.7.5] - 2023-08-23
- Optimized UIBase and SRBase of CoreFrame update behaviour call by FrameManager.
- Optimized CPBase of CoreFrame update behaviour, if need to update have to call by self to drive.
- Added DriveSelfUpdate(float dt) method in CPBase (drive by self).
public class NewTplCP : CPBase
{
private void Update()
{
this.DriveSelfUpdate(Time.deltaTime);
}
}
Release v2.7.4
[2.7.4] - 2023-08-15
- Fixed DeliveryQueryService is null bug issue.
- Modified InitAppPackage, InitDlcPackage, InitCustomPackage param of methods, add IDeliveryQueryServices interface.
Release v2.7.3
[2.7.3] - 2023-08-14
- Updated YooAsset (new commits).
- Updated part of UniFramework.
CoreFrames (UIFrame, SRFrame)
- Added API.
public static void SendRefreshData(string assetName, object data = null)
public static void SendRefreshData(string[] assetNames, object[] data = null)
AssetPatcher
- Added API.
Common
public struct DownloadInfo
{
public int totalCount;
public ulong totalBytes;
}
public static ResourcePackage[] GetPackages(params string[] packageNames)
public static async UniTask<bool> BeginDownloadWithCombineDownloaders(ResourceDownloaderOperation[] downloaders, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
Get Downloader
// All
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackages(ResourcePackage[] packages)
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackages(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount)
// Tags
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByTags(ResourcePackage[] packages, params string[] tags)
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByTags(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, params string[] tags)
// AssetNames
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByAssetNames(ResourcePackage[] packages, params string[] assetNames)
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByAssetNames(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, params string[] assetNames)
// AssetInfos
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByAssetInfos(ResourcePackage[] packages, params AssetInfo[] assetInfos)
public static ResourceDownloaderOperation[] GetDownloadersWithCombinePackagesByAssetInfos(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, params AssetInfo[] assetInfos)
Begin Download
// All
public static async UniTask<bool> BeginDownloadWithCombinePackages(ResourcePackage[] packages, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
public static async UniTask<bool> BeginDownloadWithCombinePackages(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
// Tags
public static async UniTask<bool> BeginDownloadWithCombinePackagesByTags(ResourcePackage[] packages, string[] tags = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
public static async UniTask<bool> BeginDownloadWithCombinePackagesByTags(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, string[] tags = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
// AssetNames
public static async UniTask<bool> BeginDownloadWithCombinePackagesByAssetNames(ResourcePackage[] packages, string[] assetNames = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
public static async UniTask<bool> BeginDownloadWithCombinePackagesByAssetNames(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, string[] assetNames = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
// AssetInfos
public static async UniTask<bool> BeginDownloadWithCombinePackagesByAssetInfos(ResourcePackage[] packages, AssetInfo[] assetInfos = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
public static async UniTask<bool> BeginDownloadWithCombinePackagesByAssetInfos(ResourcePackage[] packages, int maxConcurrencyDownloadCount, int failedRetryCount, AssetInfo[] assetInfos = null, OnDownloadSpeedProgress onDownloadSpeedProgress = null, OnDownloadError onDownloadError = null)
Get Download Info
// All
public static DownloadInfo GetDownloadInfoWithCombinePackages(ResourcePackage[] packages)
// Tags
public static DownloadInfo GetDownloadInfoWithCombinePackagesByTags(ResourcePackage[] packages, params string[] tags)
// AssetNames
public static DownloadInfo GetDownloadInfoWithCombinePackagesByAssetNames(ResourcePackage[] packages, params string[] assetNames)
// AssetInfos
public static DownloadInfo GetDownloadInfoWithCombinePackagesByAssetInfos(ResourcePackage[] packages, params AssetInfo[] assetInfos)
Release v2.7.2
[2.7.2] - 2023-08-07
- Added CheckPackageHasAnyFilesInLocal(string packageName).
- Added GetPackageSizeInLocal(string packageName).
Release v2.7.1
[2.7.1] - 2023-08-05
- Added Default API in GSIManagerBase (protected GetInstance() method).
public static int GetCurrentId()
public static U GetStage<U>() where U : GSIBase
public static U GetStage<U>(int id) where U : GSIBase
public static void AddStage<U>() where U : GSIBase, new()
public static void AddStage<U>(int id) where U : GSIBase, new()
public static void AddStage(int id, GSIBase gameStage)
public static void ChangeStage<U>(bool force = false) where U : GSIBase
public static void ChangeStage(int id, bool force = false)
public static void Start()
public static void Update(float dt = 0.0f)
- Added Default API in CenterBase (removed Default API from subtype).
public static void Add<UClass>() where UClass : TClass, new()
public static void Add<UClass>(int id) where UClass : TClass, new()
public static void Add(int id, TClass @class)
public static UClass Find<UClass>() where UClass : TClass
public static UClass Find<UClass>(int id) where UClass : TClass