mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-26 19:54:30 +08:00
feat: 存档界面接口
This commit is contained in:
1 parent
99432d4fd3
commit
da05785694
13 files changed
+86
-30
No files matched your search
@@ -169,3 +169,24 @@ export async function syncFromServer(
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//#region 存读档操作
|
||||
|
||||
export const enum LoadMode {
|
||||
Load,
|
||||
ReplayFrom,
|
||||
ContinueReplayFrom,
|
||||
ContinueReplayTo
|
||||
}
|
||||
|
||||
/**
|
||||
* 对当前状态存档并存档至目标索引
|
||||
* @param index 存档至的索引
|
||||
*/
|
||||
export function saveTo(index: number) {}
|
||||
|
||||
/**
|
||||
* 从指定索引读档
|
||||
* @param index 从哪个索引读档
|
||||
*/
|
||||
export function loadFrom(index: number, mode: LoadMode) {}
|
||||
Reference in new issue
Block a user