mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] Update LoadData
[+] Update LoadData
This commit is contained in:
@@ -2,27 +2,36 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// APP更新类型。
|
||||
/// </summary>
|
||||
public enum UpdateType
|
||||
{
|
||||
None = 0,
|
||||
//底包更新
|
||||
PackageUpdate = 1,
|
||||
//资源更新
|
||||
ResourceUpdate = 2,
|
||||
ResourceUpdate = 1,
|
||||
//底包更新
|
||||
PackageUpdate = 2,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 强制更新类型。
|
||||
/// </summary>
|
||||
public enum UpdateStyle
|
||||
{
|
||||
None = 0,
|
||||
Froce = 1, //强制
|
||||
Optional = 2,//非强制
|
||||
Force = 1, //强制(不更新无法进入游戏。)
|
||||
Optional = 2, //非强制(不更新可以进入游戏。)
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否提示更新。
|
||||
/// </summary>
|
||||
public enum UpdateNotice
|
||||
{
|
||||
None = 0,
|
||||
Notice = 1, //提示
|
||||
NoNotice = 2,//非提示
|
||||
Notice = 1, //提示
|
||||
NoNotice = 2, //非提示
|
||||
}
|
||||
|
||||
public enum GameStatus
|
||||
@@ -31,6 +40,27 @@ public enum GameStatus
|
||||
AssetLoad = 1
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 版本更新数据。
|
||||
/// </summary>
|
||||
public class UpdateData
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否底包更新。
|
||||
/// </summary>
|
||||
public UpdateType UpdateType;
|
||||
|
||||
/// <summary>
|
||||
/// 是否强制更新。
|
||||
/// </summary>
|
||||
public UpdateStyle UpdateStyle;
|
||||
|
||||
/// <summary>
|
||||
/// 是否提示。
|
||||
/// </summary>
|
||||
public UpdateNotice UpdateNotice;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 资源存放地
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user