MCPcopy Create free account
hub / github.com/esengine/esengine / hasComponent

Method hasComponent

packages/core/src/ECS/Core/SoAStorage.ts:585–587  ·  view source on GitHub ↗
(entityId: number)

Source from the content-addressed store, hash-verified

583 }
584
585 public hasComponent(entityId: number): boolean {
586 return this.entityToIndex.has(entityId);
587 }
588
589 public removeComponent(entityId: number): T | null {
590 const index = this.entityToIndex.get(entityId);

Callers 2

matchesEntityFunction · 0.45
isPrefabInstanceMethod · 0.45

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected