Remove unused world/map properties
This commit is contained in:
parent
daee15dd3f
commit
ca1d90a739
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
@ -178,8 +178,6 @@ interface LiveAtlasWorldDefinition {
|
||||
name: string;
|
||||
displayName: string;
|
||||
dimension: LiveAtlasDimension;
|
||||
protected: boolean;
|
||||
height: number;
|
||||
center: Coordinate;
|
||||
maps: Map<string, LiveAtlasMapDefinition>;
|
||||
}
|
||||
|
@ -29,7 +29,6 @@ export interface LiveAtlasMapDefinitionOptions {
|
||||
backgroundNight?: string;
|
||||
imageFormat: string;
|
||||
prefix?: string;
|
||||
protected?: boolean;
|
||||
mapToWorld?: [number, number, number, number, number, number, number, number, number];
|
||||
worldToMap?: [number, number, number, number, number, number, number, number, number];
|
||||
nativeZoomLevels: number;
|
||||
@ -48,7 +47,6 @@ export default class LiveAtlasMapDefinition {
|
||||
readonly backgroundNight?: string;
|
||||
readonly imageFormat: string;
|
||||
readonly prefix: string;
|
||||
readonly protected: boolean;
|
||||
private readonly projection?: Readonly<LiveAtlasProjection>;
|
||||
readonly nativeZoomLevels: number;
|
||||
readonly extraZoomLevels: number;
|
||||
@ -68,7 +66,6 @@ export default class LiveAtlasMapDefinition {
|
||||
|
||||
this.imageFormat = options.imageFormat;
|
||||
this.prefix = options.prefix || '';
|
||||
this.protected = options.protected || false;
|
||||
|
||||
this.nativeZoomLevels = options.nativeZoomLevels || 1;
|
||||
this.extraZoomLevels = options.extraZoomLevels || 0;
|
||||
|
@ -131,9 +131,7 @@ export default class Pl3xmapMapProvider extends MapProvider {
|
||||
name: world.name || '(Unnamed world)',
|
||||
displayName: world.display_name || world.name,
|
||||
dimension,
|
||||
protected: false,
|
||||
seaLevel: 0,
|
||||
height: 256,
|
||||
center: {x: worldResponse.spawn.x, y: 0, z: worldResponse.spawn.z},
|
||||
maps,
|
||||
};
|
||||
|
@ -75,8 +75,6 @@ export function buildWorlds(response: any): Array<LiveAtlasWorldDefinition> {
|
||||
name: world.name,
|
||||
displayName: world.title || '',
|
||||
dimension: worldType,
|
||||
protected: world.protected || false,
|
||||
height: world.height || 256,
|
||||
seaLevel: world.sealevel || 64,
|
||||
center: {
|
||||
x: world.center.x || 0,
|
||||
@ -108,7 +106,6 @@ export function buildWorlds(response: any): Array<LiveAtlasWorldDefinition> {
|
||||
name: map.name || '(Unnamed map)',
|
||||
nightAndDay: map.nightandday || false,
|
||||
prefix: map.prefix || '',
|
||||
protected: map.protected || false,
|
||||
displayName: map.title || '',
|
||||
mapToWorld: map.maptoworld || undefined,
|
||||
worldToMap: map.worldtomap || undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user