MCPcopy
hub / github.com/4ian/GDevelop / getFakeInstanceData

Function getFakeInstanceData

Extensions/SaveState/tests/SaveState.spec.js:8–30  ·  view source on GitHub ↗
({ name, x, y })

Source from the content-addressed store, hash-verified

6 * @returns {InstanceData}
7 */
8 const getFakeInstanceData = ({ name, x, y }) => ({
9 persistentUuid: '',
10
11 layer: '',
12 locked: false,
13 name,
14
15 x,
16 y,
17
18 angle: 0,
19
20 zOrder: 0,
21
22 customSize: false,
23 width: 0,
24 height: 0,
25 depth: 0,
26
27 numberProperties: [],
28 stringProperties: [],
29 initialVariables: [],
30 });
31
32 /**
33 * @param {{name: string, objects?: gdjs.SpriteObjectData[], instances?: InstanceData[]}} settings

Callers 1

SaveState.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected