22 lines
397 B
TypeScript
22 lines
397 B
TypeScript
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;
|
|
}
|
|
}
|