Don't make sendChatMessage abstract

This commit is contained in:
James Lyne 2021-08-30 22:14:39 +01:00
parent 2ff6fb6665
commit e41a841bdb
2 changed files with 4 additions and 5 deletions

View File

@ -42,7 +42,6 @@ export default abstract class MapProvider implements LiveAtlasMapProvider {
abstract loadServerConfiguration(): Promise<void>; abstract loadServerConfiguration(): Promise<void>;
abstract populateWorld(world: LiveAtlasWorldDefinition): Promise<void>; abstract populateWorld(world: LiveAtlasWorldDefinition): Promise<void>;
abstract sendChatMessage(message: string): void;
abstract startUpdates(): void; abstract startUpdates(): void;
abstract stopUpdates(): void; abstract stopUpdates(): void;
@ -51,6 +50,10 @@ export default abstract class MapProvider implements LiveAtlasMapProvider {
abstract getTilesUrl(): string; abstract getTilesUrl(): string;
abstract getMarkerIconUrl(icon: string): string; abstract getMarkerIconUrl(icon: string): string;
sendChatMessage(message: string) {
throw new Error('Provider does not support chat');
}
destroy() { destroy() {
this.currentWorldUnwatch(); this.currentWorldUnwatch();
} }

View File

@ -453,10 +453,6 @@ export default class Pl3xmapMapProvider extends MapProvider {
return players; return players;
} }
sendChatMessage(message: string) {
throw new Error('Pl3xmap does not support chat');
}
startUpdates() { startUpdates() {
this.updatesEnabled = true; this.updatesEnabled = true;
this.update(); this.update();