update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user