Skip to content

Commit 00075f7

Browse files
committed
Adding world/config/index.ts and fixing more imports in world.ts
1 parent 0ec1dd4 commit 00075f7

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export * from './animation-ids';
2+
export * from './examine-data';
3+
export * from './gfx-ids';
4+
export * from './harvest-tool';
5+
export * from './harvestable-object';
6+
export * from './item-ids';
7+
export * from './object-ids';
8+
export * from './prayers';
9+
export * from './scenery-spawns';
10+
export * from './songs';
11+
export * from './sound-ids';
12+
export * from './travel-locations';
13+
export * from './widget';

src/game-engine/world/config/travel-locations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const readLocations = (): TravelLocation[] => {
2727
}) as TravelLocation[];
2828
};
2929

30-
export default class TravelLocations {
30+
export class TravelLocations {
3131
public readonly locations: TravelLocation[];
3232

3333
public constructor () {

src/game-engine/world/world.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { logger } from '@runejs/core';
21
import Quadtree from 'quadtree-lib';
32
import { lastValueFrom, Subject } from 'rxjs';
43
import { take } from 'rxjs/operators';
54

5+
import { logger } from '@runejs/core';
66
import { LandscapeObject } from '@runejs/filestore';
77

88
import { loadPlugins, world } from '@engine/game-server';
@@ -11,9 +11,7 @@ import { findItem, findNpc, findObject, itemSpawns, npcSpawns, NpcDetails, NpcSp
1111
import { Player, Npc, Actor } from '@engine/world/actor';
1212
import { loadActionFiles } from '@engine/world/action';
1313
import { ChunkManager, ConstructedRegion, getTemplateLocalX, getTemplateLocalY } from '@engine/world/map';
14-
import TravelLocations from '@engine/world/config/travel-locations';
15-
import { parseScenerySpawns } from '@engine/world/config/scenery-spawns';
16-
import { ExamineCache } from '@engine/world/config/examine-data';
14+
import { TravelLocations, ExamineCache, parseScenerySpawns } from '@engine/world/config';
1715

1816

1917
export interface QuadtreeKey {

0 commit comments

Comments
 (0)