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

Function genOf

packages/core/src/ECS/Core/EntityHandle.ts:97–99  ·  view source on GitHub ↗
(handle: EntityHandle)

Source from the content-addressed store, hash-verified

95 * @returns 实体代数 | Entity generation
96 */
97export function genOf(handle: EntityHandle): number {
98 return Math.floor(handle / MAX_ENTITIES) & GEN_MASK;
99}
100
101/**
102 * 检查句柄是否有效(非空)

Callers 4

destroyMethod · 0.90
isAliveMethod · 0.90
handleToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected