(component: T)
| 421 | } |
| 422 | |
| 423 | private addComponentInternal<T extends Component>(component: T): T { |
| 424 | const componentType = component.constructor as ComponentType<T>; |
| 425 | const registry = this.scene?.componentRegistry ?? GlobalComponentRegistry; |
| 426 | const componentMask = registry.getBitMask(componentType); |
| 427 | BitMask64Utils.orInPlace(this._componentMask, componentMask); |
| 428 | this._componentCache = null; |
| 429 | return component; |
| 430 | } |
| 431 | |
| 432 | private notifyQuerySystems(changedComponentType?: ComponentType): void { |
| 433 | if (!this.scene?.querySystem) return; |
no test coverage detected