HumanBreak/docs/api/motajs-system/index.md

494 B

@motajs/system

包含两个模块:

引入示例

import { Action, UI } from '@motajs/system';

Action.gameKey.register(...);
const myController = new UI.UIController('my-controller');

等效于:

import { gameKey } from '@motajs/system-action';
import { UIController } from '@motajs/system-ui';

gameKey.register(...);
const myController = new UIController('my-controller');