Skip to content

Commit

Permalink
优化实体标签管理
Browse files Browse the repository at this point in the history
  • Loading branch information
esengine committed May 11, 2023
1 parent c39c043 commit 620a433
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 127 deletions.
14 changes: 13 additions & 1 deletion source/bin/gs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ declare module gs {
private inputManager;
private networkManager;
private queryCache;
private tagCache;
private tagToEntities;
private prefabs;
systemManager?: SystemManager;
constructor(componentClasses?: Array<ComponentConstructor<Component>>, systemManager?: SystemManager);
Expand Down Expand Up @@ -527,6 +527,18 @@ declare module gs {
* @returns 新创建的实体
*/
cloneEntity(entity: Entity, deepCopy?: boolean): Entity;
/**
* 将实体添加到指定标签的缓存
* @param tag
* @param entity
*/
private addToTagCache;
/**
* 将实体从指定标签的缓存中删除
* @param tag
* @param entity
*/
private removeFromTagCache;
}
}
declare module gs {
Expand Down
Loading

0 comments on commit 620a433

Please sign in to comment.