From 619d5bbae10b4273565966480b6c6ef9120cedfb Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Sat, 2 Oct 2021 19:37:09 +0200 Subject: [PATCH] Rename Message.message to .content --- src/shark/Message.ts | 6 +++--- src/shark/SaveHandler.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shark/Message.ts b/src/shark/Message.ts index f634e20..5aa6314 100644 --- a/src/shark/Message.ts +++ b/src/shark/Message.ts @@ -10,17 +10,17 @@ export enum MessageType { export class Message { static even = true; isEven: boolean; - message: string; + content: string; type: MessageType; constructor(message: string, type: MessageType = MessageType.message) { - this.message = message; + this.content = message; this.isEven = Message.even; this.type = type; Message.even = !Message.even; } toString(): string { - return this.message; + return this.content; } } diff --git a/src/shark/SaveHandler.ts b/src/shark/SaveHandler.ts index 4c4d4a2..b6994ae 100644 --- a/src/shark/SaveHandler.ts +++ b/src/shark/SaveHandler.ts @@ -10,7 +10,7 @@ type Version0Save = typeof __EMPTY_OBJECT; type Version1Save = Version0Save & { version: 1; messages: { - message: string; + content: string; type: MessageType; }[]; selectedTab: keyof typeof TabHandler["AllTabs"]; @@ -72,7 +72,7 @@ export class SaveHandler extends StaticClass { settings: saveSettings, messages: messages.map((message) => { return { - message: message.message, + content: message.content, type: message.type, }; }), @@ -120,7 +120,7 @@ export class SaveHandler extends StaticClass { game.Log.reset(); fullSave.messages.forEach((message) => { - game.Log.addMessage(message.message, message.type); + game.Log.addMessage(message.content, message.type); }); game.TabHandler.currentTab = game.TabHandler.AllTabs[fullSave.selectedTab];