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

Method _packId

packages/core/src/ECS/Utils/IdentifierPool.ts:363–365  ·  view source on GitHub ↗

* 打包索引和世代为32位ID * * @param index 索引(16位) * @param generation 世代版本(16位) * @returns 打包后的32位ID * @private

(index: number, generation: number)

Source from the content-addressed store, hash-verified

361 * @private
362 */
363 private _packId(index: number, generation: number): number {
364 return (generation << 16) | index;
365 }
366
367 /**
368 * 从ID中解包索引

Callers 1

checkOutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected