72 lines
1.5 KiB
TypeScript
72 lines
1.5 KiB
TypeScript
const { ccclass, property } = cc._decorator;
|
|
export module Enum_HUDM {
|
|
|
|
//#region Enum
|
|
|
|
//#endregion
|
|
|
|
//#region Class
|
|
|
|
// /** BaseBundle資料 */
|
|
// @ccclass("BaseBundleObj")
|
|
// export class BaseBundleObj {
|
|
// @property({ displayName: "Bundle名稱", tooltip: "Bundle名稱" })
|
|
// public BundleName: string = "";
|
|
|
|
// @property({ displayName: "優先度", tooltip: "優先度", type: cc.Integer })
|
|
// public Priority: number = 1;
|
|
// }
|
|
|
|
class BundleDictionary<T> {
|
|
[x: string]: T;
|
|
}
|
|
|
|
/** VerList資料 */
|
|
@ccclass("VerListObj")
|
|
export class VerListObj extends BundleDictionary<BundleDataObj> {
|
|
}
|
|
|
|
/** Bundle資料 */
|
|
@ccclass("BundleDataObj")
|
|
export class BundleDataObj {
|
|
public Version: string = "0";
|
|
|
|
public ApkVersion: string = "0";
|
|
|
|
public UseLocal: boolean = false;
|
|
|
|
/** 有沒有包到Bundle */
|
|
public HasBundle: boolean = true;
|
|
}
|
|
|
|
/** Bundle資料 */
|
|
@ccclass("NeedUpdateDataObj")
|
|
export class NeedUpdateDataObj {
|
|
|
|
/** 是否需要更新 */
|
|
public IsNeedUpdate: boolean;
|
|
|
|
/** 更新大小 */
|
|
public TotalBytes: string;
|
|
|
|
constructor(...params: any[]) {
|
|
this.IsNeedUpdate = params[0];
|
|
this.TotalBytes = params[1] ? params[1] : null;
|
|
}
|
|
}
|
|
|
|
/** Bundle資料 */
|
|
@ccclass("UpdateingDataObj")
|
|
export class UpdateingDataObj {
|
|
|
|
/** 是否更新完成 */
|
|
public IsUpdatecomplete: boolean;
|
|
|
|
constructor(...params: any[]) {
|
|
this.IsUpdatecomplete = params[0];
|
|
}
|
|
}
|
|
|
|
//#endregion
|
|
}
|
|
export default Enum_HUDM; |