2022-10-17 14:43:13 +08:00
|
|
|
|
|
2022-09-28 14:39:58 +08:00
|
|
|
|
namespace YooAsset
|
|
|
|
|
|
{
|
2022-09-29 18:40:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 运行模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum EPlayMode
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 编辑器下的模拟模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
EditorSimulateMode,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 离线运行模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
OfflinePlayMode,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 联机运行模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
HostPlayMode,
|
2023-07-18 14:27:33 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// WebGL运行模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
WebPlayMode,
|
2022-09-29 18:40:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-09-28 14:39:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 初始化参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public abstract class InitializeParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件解密服务接口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IDecryptionServices DecryptionServices = null;
|
|
|
|
|
|
|
2023-07-05 14:52:13 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 内置文件的根路径
|
|
|
|
|
|
/// 注意:当参数为空的时候会使用默认的根目录。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string BuildinRootDirectory = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 沙盒文件的根路径
|
|
|
|
|
|
/// 注意:当参数为空的时候会使用默认的根目录。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SandboxRootDirectory = string.Empty;
|
|
|
|
|
|
|
2022-09-28 14:39:58 +08:00
|
|
|
|
/// <summary>
|
2023-03-24 17:01:35 +08:00
|
|
|
|
/// 资源加载每帧处理的最大时间片段
|
2022-09-29 18:40:43 +08:00
|
|
|
|
/// 注意:默认值为MaxValue
|
2022-09-28 14:39:58 +08:00
|
|
|
|
/// </summary>
|
2023-03-24 17:01:35 +08:00
|
|
|
|
public long LoadingMaxTimeSlice = long.MaxValue;
|
|
|
|
|
|
|
2023-03-22 17:14:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下载失败尝试次数
|
2023-03-24 17:01:35 +08:00
|
|
|
|
/// 注意:默认值为MaxValue
|
2023-03-22 17:14:58 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int DownloadFailedTryAgain = int.MaxValue;
|
2022-09-28 14:39:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 编辑器下模拟运行模式的初始化参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class EditorSimulateModeParameters : InitializeParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用于模拟运行的资源清单路径
|
|
|
|
|
|
/// </summary>
|
2023-03-11 00:06:40 +08:00
|
|
|
|
public string SimulateManifestFilePath = string.Empty;
|
2022-09-28 14:39:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 离线运行模式的初始化参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class OfflinePlayModeParameters : InitializeParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 联机运行模式的初始化参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class HostPlayModeParameters : InitializeParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2023-07-12 19:15:10 +08:00
|
|
|
|
/// 内置资源查询服务接口
|
2022-09-28 14:39:58 +08:00
|
|
|
|
/// </summary>
|
2023-08-14 12:27:43 +08:00
|
|
|
|
public IBuildinQueryServices BuildinQueryServices = null;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分发资源查询服务接口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IDeliveryQueryServices DeliveryQueryServices = null;
|
2022-09-28 14:39:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-07-12 19:15:10 +08:00
|
|
|
|
/// 远端资源地址查询服务类
|
2022-09-28 14:39:58 +08:00
|
|
|
|
/// </summary>
|
2023-07-12 19:15:10 +08:00
|
|
|
|
public IRemoteServices RemoteServices = null;
|
2022-09-28 14:39:58 +08:00
|
|
|
|
}
|
2023-07-18 14:27:33 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// WebGL运行模式的初始化参数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class WebPlayModeParameters : InitializeParameters
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 内置资源查询服务接口
|
|
|
|
|
|
/// </summary>
|
2023-08-14 12:27:43 +08:00
|
|
|
|
public IBuildinQueryServices BuildinQueryServices = null;
|
2023-07-18 14:27:33 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 远端资源地址查询服务类
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IRemoteServices RemoteServices = null;
|
|
|
|
|
|
}
|
2022-09-28 14:39:58 +08:00
|
|
|
|
}
|