Files
bworld/server/game/engine_modules.ts
2026-11-14 12:18:41 -03:00

56 lines
1.4 KiB
TypeScript

// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// what engine access mods get as engine.server, in server phases. see docs/modding/misc/engine.md
import { GameServer } from "./game_server.ts";
import { ServerWorld } from "./world.ts";
import { ServerPlayer } from "./player.ts";
import { ModRuntime } from "./mod_runtime.ts";
import { Menu, PlayerMenu } from "./menu.ts";
import { NaturalSpawner } from "./natural_spawner.ts";
import { Entity } from "./entity/entity.ts";
import { LivingEntity } from "./entity/living_entity.ts";
import { Mob } from "./entity/mob.ts";
import { ItemEntity } from "./entity/item_entity.ts";
import { EntityManager } from "./entity/entity_manager.ts";
import {
FloatGoal,
Goal,
GoalSelector,
HurtByTargetGoal,
LookAtPlayerGoal,
MeleeAttackGoal,
NearestAttackablePlayerGoal,
PanicGoal,
RandomLookAroundGoal,
RandomStrollGoal,
} from "./entity/goals.ts";
// built when it's exposed, not when this module loads, so import cycles can't leave anything undefined
export function server_engine() {
return {
GameServer,
ServerWorld,
ServerPlayer,
ModRuntime,
Menu,
PlayerMenu,
NaturalSpawner,
Entity,
LivingEntity,
Mob,
ItemEntity,
EntityManager,
Goal,
GoalSelector,
FloatGoal,
RandomStrollGoal,
PanicGoal,
LookAtPlayerGoal,
RandomLookAroundGoal,
MeleeAttackGoal,
NearestAttackablePlayerGoal,
HurtByTargetGoal,
};
}