fix: 恢复 @esengine/ecs-framework 包名

上一个提交错误地将 npm 包名也改了,这里恢复正确的包名。
只更新 GitHub 仓库 URL,不改变 npm 包名。
This commit is contained in:
yhh
2025-12-08 21:26:35 +08:00
parent 240b165970
commit ad96edfad0
334 changed files with 558 additions and 558 deletions

View File

@@ -95,7 +95,7 @@ export interface PlatformWorker {
根据你的运行环境选择对应的适配器:
```typescript
import { PlatformManager } from '@esengine/esengine';
import { PlatformManager } from '@esengine/ecs-framework';
// 浏览器环境
if (typeof window !== 'undefined') {
@@ -140,7 +140,7 @@ if (manager.hasAdapter()) {
### 1. 实现接口
```typescript
import type { IPlatformAdapter, PlatformWorker, WorkerCreationOptions, PlatformConfig } from '@esengine/esengine';
import type { IPlatformAdapter, PlatformWorker, WorkerCreationOptions, PlatformConfig } from '@esengine/ecs-framework';
export class CustomAdapter implements IPlatformAdapter {
public readonly name = 'custom';
@@ -189,7 +189,7 @@ export class CustomAdapter implements IPlatformAdapter {
### 2. 注册自定义适配器
```typescript
import { PlatformManager } from '@esengine/esengine';
import { PlatformManager } from '@esengine/ecs-framework';
import { CustomAdapter } from './CustomAdapter';
const customAdapter = new CustomAdapter();