From 052a8d224cc4fb26e42b35b5076fe613b1f63a5f Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 12 Jun 2025 16:37:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20client=20=E5=92=8C=20system=20?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=AF=BC=E5=87=BA=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=AD=E9=97=B4=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/motajs-client/index.md | 6 +++--- docs/api/motajs-system/index.md | 10 +++++----- packages/client/src/index.ts | 2 +- packages/system/src/index.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/api/motajs-client/index.md b/docs/api/motajs-client/index.md index 1535acb..5c5b673 100644 --- a/docs/api/motajs-client/index.md +++ b/docs/api/motajs-client/index.md @@ -2,12 +2,12 @@ `@motajs/client` 包含多个模块: -- [ClientBase](../motajs-client-base/) +- [`@motajs/client-base`](../motajs-client-base/) 示例: ```ts -import { ClientBase } from '@motajs/client'; +import { KeyCode } from '@motajs/client'; -const { ClientBase } = Mota.require('@motajs/client'); +const { KeyCOde } = Mota.require('@motajs/client'); ``` diff --git a/docs/api/motajs-system/index.md b/docs/api/motajs-system/index.md index 73ffadf..76a8633 100644 --- a/docs/api/motajs-system/index.md +++ b/docs/api/motajs-system/index.md @@ -2,16 +2,16 @@ 包含两个模块: -- [Action](../motajs-system-action/index.md) -- [UI](../motajs-system-ui/index.md) +- [`@motajs/system-action`](../motajs-system-action/index.md) +- [`@motajs/system-ui`](../motajs-system-ui/index.md) ## 引入示例 ```ts -import { Action, UI } from '@motajs/system'; +import { gameKey, UIController } from '@motajs/system'; -Action.gameKey.register(...); -const myController = new UI.UIController('my-controller'); +gameKey.register(...); +const myController = new UIController('my-controller'); ``` 等效于: diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index ef669d9..1e7424f 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -1 +1 @@ -export * as Base from '@motajs/client-base'; +export * from '@motajs/client-base'; diff --git a/packages/system/src/index.ts b/packages/system/src/index.ts index c6ec392..3670f29 100644 --- a/packages/system/src/index.ts +++ b/packages/system/src/index.ts @@ -1,2 +1,2 @@ -export * as Action from '@motajs/system-action'; -export * as UI from '@motajs/system-ui'; +export * from '@motajs/system-action'; +export * from '@motajs/system-ui';