mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 21:27:59 +08:00
26 lines
529 B
Markdown
26 lines
529 B
Markdown
# @motajs/system
|
|
|
|
包含两个模块:
|
|
|
|
- [`@motajs/system-action`](../motajs-system-action/index.md)
|
|
- [`@motajs/system-ui`](../motajs-system-ui/index.md)
|
|
|
|
## 引入示例
|
|
|
|
```ts
|
|
import { gameKey, UIController } from '@motajs/system';
|
|
|
|
gameKey.register(...);
|
|
const myController = new UIController('my-controller');
|
|
```
|
|
|
|
等效于:
|
|
|
|
```ts
|
|
import { gameKey } from '@motajs/system-action';
|
|
import { UIController } from '@motajs/system-ui';
|
|
|
|
gameKey.register(...);
|
|
const myController = new UIController('my-controller');
|
|
```
|