A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
* @file logicSupport.ts — what a build that ships script graphs tells the core.
*
* A call, not a file's side effect — see spine/spineSupport.ts. The loader
* names this subsystem's compiler, so one the asset registry constructs is one
* every package carries.
*/
import { addEntryPlugin } from '../runtime/entryPlugins';
import { addAssetLoader } from '../asset/optionalLoaders';
import { ScriptGraphPlugin } from './ScriptGraphPlugin';
import { ScriptGraphAssetLoader } from '../asset/loaders/ScriptGraphAssetLoader';
export function registerScriptGraphSupport(): void {
addEntryPlugin('logic', () => new ScriptGraphPlugin());
addAssetLoader('scriptGraph', () => new ScriptGraphAssetLoader() as never);
}