chore: 更新仓库 URL (ecs-framework → esengine)

仓库已从 esengine/ecs-framework 重命名为 esengine/esengine
更新所有引用旧 URL 的文件
This commit is contained in:
yhh
2025-12-08 21:23:37 +08:00
parent c3b7250f85
commit 240b165970
350 changed files with 611 additions and 611 deletions

View File

@@ -27,7 +27,7 @@
创建一个简单的调试插件:
```typescript
import { IPlugin, Core, ServiceContainer } from '@esengine/ecs-framework';
import { IPlugin, Core, ServiceContainer } from '@esengine/esengine';
class DebugPlugin implements IPlugin {
readonly name = 'debug-plugin';
@@ -51,7 +51,7 @@ class DebugPlugin implements IPlugin {
使用 `Core.installPlugin()` 安装插件:
```typescript
import { Core } from '@esengine/ecs-framework';
import { Core } from '@esengine/esengine';
// 初始化Core
Core.create({ debug: true });
@@ -204,7 +204,7 @@ await Core.installPlugin(new AsyncPlugin());
插件可以向服务容器注册自己的服务:
```typescript
import { IService } from '@esengine/ecs-framework';
import { IService } from '@esengine/esengine';
class NetworkService implements IService {
connect(url: string) {
@@ -240,7 +240,7 @@ class NetworkPlugin implements IPlugin {
插件可以向场景添加自定义系统:
```typescript
import { EntitySystem, Matcher } from '@esengine/ecs-framework';
import { EntitySystem, Matcher } from '@esengine/esengine';
class PhysicsSystem extends EntitySystem {
constructor() {
@@ -393,7 +393,7 @@ for (const meta of allMetadata) {
### 网络同步插件
```typescript
import { IPlugin, IService, Core, ServiceContainer } from '@esengine/ecs-framework';
import { IPlugin, IService, Core, ServiceContainer } from '@esengine/esengine';
class NetworkSyncService implements IService {
private ws?: WebSocket;