优化聊天部分

This commit is contained in:
2025-09-16 16:55:39 +08:00
parent 76bd04b9f4
commit 9a3525afd3
16 changed files with 1442 additions and 553 deletions
+11 -3
View File
@@ -4,16 +4,24 @@ export interface Dialog {
isLoading?: boolean;
}
export class DemoData {
export class DiaLogData {
public Dialogs: Dialog[] = [];
public cleanDialog() {
this.Dialogs = [];
}
public pushDialog(isPlayer: boolean, str: string, isLoading: boolean = false) {
public pushDialog(
isPlayer: boolean,
str: string,
isLoading: boolean = false
) {
if (!this.Dialogs) this.Dialogs = [];
this.Dialogs.push({ isPlayer: isPlayer, content: str, isLoading: isLoading });
this.Dialogs.push({
isPlayer: isPlayer,
content: str,
isLoading: isLoading,
});
}
public GetDialogs() {