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

Function createFullMockEmitter

tests/gameobjects/particles/Particle.test.js:92–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92function createFullMockEmitter ()
93{
94 var frame = createMockFrame();
95
96 return {
97 scene: {},
98 anims: [],
99 ops: createMockOps(),
100 emit: function () { return true; },
101 getAnim: function () { return null; },
102 getFrame: function () { return frame; },
103 getEmitZone: function (particle) {},
104 getDeathZone: function (particle) { return false; },
105 worldMatrix: {
106 transformPoint: function (x, y, point)
107 {
108 point.x = x;
109 point.y = y;
110 return point;
111 }
112 },
113 getWorldTransformMatrix: function ()
114 {
115 return createIdentityMatrix();
116 },
117 radial: false,
118 moveTo: false,
119 acceleration: false,
120 gravityX: 0,
121 gravityY: 0
122 };
123}
124
125// ---------------------------------------------------------------------------
126// Tests

Callers 1

Particle.test.jsFile · 0.85

Calls 3

createMockOpsFunction · 0.85
createIdentityMatrixFunction · 0.85
createMockFrameFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…