docs: @motajs/system 文档

This commit is contained in:
AncTe committed 2025-04-03 15:22:25 +08:00
1 parent 0df879298e
commit 83f460de65
9 files changed
+1089 -18

No files matched your search

+23 -1
View File
@@ -1,3 +1,25 @@
# @motajs/system
目录:
包含两个模块:
- [Action](../motajs-system-action/index.md)
- [UI](../motajs-system-ui/index.md)
## 引入示例
```ts
import { Action, UI } from '@motajs/system';
Action.gameKey.register(...);
const myController = new UI.UIController('my-controller');
```
等效于:
```ts
import { gameKey } from '@motajs/system-action';
import { UIController } from '@motajs/system-ui';
gameKey.register(...);
const myController = new UIController('my-controller');
```