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

Function handleToString

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

Source from the content-addressed store, hash-verified

129 * @returns 字符串表示 | String representation
130 */
131export function handleToString(handle: EntityHandle): string {
132 if (handle === NULL_HANDLE) {
133 return 'Entity(NULL)';
134 }
135 return `Entity(idx=${indexOf(handle)}, gen=${genOf(handle)})`;
136}

Callers 1

Calls 2

indexOfFunction · 0.85
genOfFunction · 0.85

Tested by

no test coverage detected