Skip to content

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.

517 B
Raw Blame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
import type { App, Plugin } from '../../app/app';
import { registerComponent } from '../../ecs/component';
import { UIMask } from '../core/ui-mask';
import { PluginName } from '../../ecs/systemLabels';

export class UIMaskPlugin implements Plugin {
    name = PluginName.UIMask;

    build(app: App): void {
        registerComponent('UIMask', UIMask);
    }
}

export const uiMaskPlugin = new UIMaskPlugin();