mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-25 10:36:32 +08:00
docs: @motajs/system 文档
This commit is contained in:
1 parent
0df879298e
commit
83f460de65
9 files changed
+1089
-18
No files matched your search
@@ -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');
|
||||
```
|
||||
Reference in new issue
Block a user