Remove unused world/map properties

This commit is contained in:
James Lyne 2021-09-30 13:16:39 +01:00
parent daee15dd3f
commit ca1d90a739
4 changed files with 0 additions and 10 deletions

2
src/index.d.ts vendored
View File

@ -178,8 +178,6 @@ interface LiveAtlasWorldDefinition {
name: string; name: string;
displayName: string; displayName: string;
dimension: LiveAtlasDimension; dimension: LiveAtlasDimension;
protected: boolean;
height: number;
center: Coordinate; center: Coordinate;
maps: Map<string, LiveAtlasMapDefinition>; maps: Map<string, LiveAtlasMapDefinition>;
} }

View File

@ -29,7 +29,6 @@ export interface LiveAtlasMapDefinitionOptions {
backgroundNight?: string; backgroundNight?: string;
imageFormat: string; imageFormat: string;
prefix?: string; prefix?: string;
protected?: boolean;
mapToWorld?: [number, number, number, number, number, number, number, number, number]; mapToWorld?: [number, number, number, number, number, number, number, number, number];
worldToMap?: [number, number, number, number, number, number, number, number, number]; worldToMap?: [number, number, number, number, number, number, number, number, number];
nativeZoomLevels: number; nativeZoomLevels: number;
@ -48,7 +47,6 @@ export default class LiveAtlasMapDefinition {
readonly backgroundNight?: string; readonly backgroundNight?: string;
readonly imageFormat: string; readonly imageFormat: string;
readonly prefix: string; readonly prefix: string;
readonly protected: boolean;
private readonly projection?: Readonly<LiveAtlasProjection>; private readonly projection?: Readonly<LiveAtlasProjection>;
readonly nativeZoomLevels: number; readonly nativeZoomLevels: number;
readonly extraZoomLevels: number; readonly extraZoomLevels: number;
@ -68,7 +66,6 @@ export default class LiveAtlasMapDefinition {
this.imageFormat = options.imageFormat; this.imageFormat = options.imageFormat;
this.prefix = options.prefix || ''; this.prefix = options.prefix || '';
this.protected = options.protected || false;
this.nativeZoomLevels = options.nativeZoomLevels || 1; this.nativeZoomLevels = options.nativeZoomLevels || 1;
this.extraZoomLevels = options.extraZoomLevels || 0; this.extraZoomLevels = options.extraZoomLevels || 0;

View File

@ -131,9 +131,7 @@ export default class Pl3xmapMapProvider extends MapProvider {
name: world.name || '(Unnamed world)', name: world.name || '(Unnamed world)',
displayName: world.display_name || world.name, displayName: world.display_name || world.name,
dimension, dimension,
protected: false,
seaLevel: 0, seaLevel: 0,
height: 256,
center: {x: worldResponse.spawn.x, y: 0, z: worldResponse.spawn.z}, center: {x: worldResponse.spawn.x, y: 0, z: worldResponse.spawn.z},
maps, maps,
}; };

View File

@ -75,8 +75,6 @@ export function buildWorlds(response: any): Array<LiveAtlasWorldDefinition> {
name: world.name, name: world.name,
displayName: world.title || '', displayName: world.title || '',
dimension: worldType, dimension: worldType,
protected: world.protected || false,
height: world.height || 256,
seaLevel: world.sealevel || 64, seaLevel: world.sealevel || 64,
center: { center: {
x: world.center.x || 0, x: world.center.x || 0,
@ -108,7 +106,6 @@ export function buildWorlds(response: any): Array<LiveAtlasWorldDefinition> {
name: map.name || '(Unnamed map)', name: map.name || '(Unnamed map)',
nightAndDay: map.nightandday || false, nightAndDay: map.nightandday || false,
prefix: map.prefix || '', prefix: map.prefix || '',
protected: map.protected || false,
displayName: map.title || '', displayName: map.title || '',
mapToWorld: map.maptoworld || undefined, mapToWorld: map.maptoworld || undefined,
worldToMap: map.worldtomap || undefined, worldToMap: map.worldtomap || undefined,