This commit is contained in:
2025-07-21 22:14:06 +08:00
parent 2f7eb16f22
commit a90dce06f3
16 changed files with 1229 additions and 174 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;
}
}