30 lines
888 B
C#
30 lines
888 B
C#
using UnityEngine;
|
|
|
|
namespace PerfectWorld.Addressable
|
|
{
|
|
/// <summary>
|
|
/// Configuration for the Addressable system
|
|
/// </summary>
|
|
public static class AddressableConfig
|
|
{
|
|
// CDN base URL for downloading bundles
|
|
public const string CDN_BASE_URL = "https://your-cdn.com/bundles/";
|
|
|
|
// Maximum retry attempts for failed downloads
|
|
public const int MAX_RETRIES = 3;
|
|
|
|
// Delay between retry attempts in seconds
|
|
public const float RETRY_DELAY = 2f;
|
|
|
|
// Download timeout in seconds
|
|
public const int DOWNLOAD_TIMEOUT = 30;
|
|
|
|
// Cache location for downloaded bundles
|
|
public static string CachePath => Application.persistentDataPath + "/AddressableBundles";
|
|
|
|
// Catalog file name
|
|
public const string CATALOG_FILENAME = "catalog.json";
|
|
}
|
|
}
|
|
|