Skip to content

Commit 5e72c8c

Browse files
committed
移除 EntityBuilder 中已弃用的 withTag 和 withRelationTag 接口
1 parent 9897b58 commit 5e72c8c

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/core/builder.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ export class EntityBuilder {
2727
return this;
2828
}
2929

30-
/**
31-
* @deprecated Use `with(componentId)` instead for void components
32-
*/
33-
withTag(componentId: EntityId<void>): this {
34-
this.components.push({ type: "component", id: componentId, value: undefined as void });
35-
return this;
36-
}
37-
3830
withRelation<T>(
3931
componentId: ComponentId<T>,
4032
targetEntity: EntityId<any>,
@@ -45,14 +37,6 @@ export class EntityBuilder {
4537
return this;
4638
}
4739

48-
/**
49-
* @deprecated Use `withRelation(componentId, targetEntity)` instead for void relations
50-
*/
51-
withRelationTag(componentId: ComponentId<void>, targetEntity: EntityId<any>): this {
52-
this.components.push({ type: "relation", componentId, targetId: targetEntity, value: undefined as void });
53-
return this;
54-
}
55-
5640
/**
5741
* Create an entity and enqueue components to be applied. This method
5842
* does NOT call `world.sync()` automatically; callers must invoke

0 commit comments

Comments
 (0)