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

Function resetFn

packages/core/tests/ECS/Core/ComponentPool.test.ts:225–225  ·  view source on GitHub ↗
(comp: TestComponent)

Source from the content-addressed store, hash-verified

223 it('应该能够注册组件池', () => {
224 const createFn = () => new TestComponent();
225 const resetFn = (comp: TestComponent) => comp.reset();
226
227 manager.registerPool('TestComponent', createFn, resetFn, 20);
228

Callers

nothing calls this directly

Calls 1

resetMethod · 0.65

Tested by

no test coverage detected