MCPcopy
hub / github.com/phaserjs/phaser / createFixedOp

Function createFixedOp

tests/gameobjects/particles/Particle.test.js:31–40  ·  view source on GitHub ↗
(returnValue)

Source from the content-addressed store, hash-verified

29
30// An op that always returns its fixed value from both onEmit and onUpdate
31function createFixedOp (returnValue)
32{
33 var val = (returnValue !== undefined) ? returnValue : 0;
34 return {
35 active: false,
36 steps: 0,
37 onEmit: function (particle, key) { return val; },
38 onUpdate: function (particle, key, t, current) { return val; }
39 };
40}
41
42function createMockOps ()
43{

Callers 1

Particle.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…