代码结构整理

This commit is contained in:
2025-08-11 16:08:59 +08:00
parent ab4d0093d9
commit dad0f47974
81 changed files with 2408 additions and 1179 deletions
+21
View File
@@ -0,0 +1,21 @@
export interface Dialog {
isPlayer: boolean;
content: string;
}
export class DemoData {
public Dialogs: Dialog[] = [];
public cleanDialog() {
this.Dialogs = [];
}
public pushDialog(isPlayer: boolean, str: string) {
if (!this.Dialogs) this.Dialogs = [];
this.Dialogs.push({ isPlayer: isPlayer, content: str });
}
public GetDialogs() {
return this.Dialogs;
}
}