// SPDX-FileCopyrightText: 2026 Paula Wisnievski // SPDX-License-Identifier: AGPL-3.0-or-later // what engine access mods get as engine.server, in server scripts. 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, }; }