Skip to content

Commit b5bd5da

Browse files
committed
Renaming game world activation function
1 parent f0c9314 commit b5bd5da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/engine/world/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export let activeWorld: World;
1818
/**
1919
* Creates a new instance of the game world and assigns it to the singleton world variable.
2020
*/
21-
export const createWorld = async (): Promise<World> => {
21+
export const activateGameWorld = async (): Promise<World> => {
2222
activeWorld = new World();
2323
await activeWorld.startup();
2424
return activeWorld;

src/server/game/game-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { logger } from '@runejs/core';
22
import { parseServerConfig, SocketServer } from '@runejs/core/net';
33
import { Filestore } from '@runejs/filestore';
44

5-
import { createWorld } from '@engine/world';
5+
import { activateGameWorld } from '@engine/world';
66
import { loadCoreConfigurations, loadGameConfigurations, xteaRegions } from '@engine/config';
77
import { loadPackets } from '@engine/net';
88
import { watchForChanges, watchSource } from '@engine/util';
@@ -46,7 +46,7 @@ export async function launchGameServer(): Promise<void> {
4646
await loadGameConfigurations();
4747
await loadPackets();
4848

49-
const world = await createWorld();
49+
const world = await activateGameWorld();
5050

5151
if(process.argv.indexOf('-fakePlayers') !== -1) {
5252
world.generateFakePlayers();

0 commit comments

Comments
 (0)