(
object1Names,
object2Names,
object3Names,
eventsFunctionContext
)
| 1 | // @ts-check |
| 2 | describe('gdjs.LinksManager', function () { |
| 3 | const doTest = ( |
| 4 | object1Names, |
| 5 | object2Names, |
| 6 | object3Names, |
| 7 | eventsFunctionContext |
| 8 | ) => { |
| 9 | const runtimeGame = gdjs.getPixiRuntimeGame(); |
| 10 | const runtimeScene = new gdjs.RuntimeScene(runtimeGame); |
| 11 | runtimeScene.loadFromScene({ |
| 12 | sceneData: { |
| 13 | layers: [ |
| 14 | { |
| 15 | name: '', |
| 16 | visibility: true, |
| 17 | cameras: [], |
| 18 | effects: [], |
| 19 | ambientLightColorR: 127, |
| 20 | ambientLightColorB: 127, |
| 21 | ambientLightColorG: 127, |
| 22 | isLightingLayer: false, |
| 23 | followBaseLayerCamera: false, |
| 24 | }, |
| 25 | ], |
| 26 | variables: [], |
| 27 | behaviorsSharedData: [], |
| 28 | objects: [], |
| 29 | objectsGroups: [], |
| 30 | instances: [], |
| 31 | r: 0, |
| 32 | v: 0, |
| 33 | b: 0, |
| 34 | mangledName: 'Scene1', |
| 35 | name: 'Scene1', |
| 36 | stopSoundsOnStartup: false, |
| 37 | title: '', |
| 38 | usedResources: [], |
| 39 | uiSettings: { |
| 40 | grid: false, |
| 41 | gridType: 'rectangular', |
| 42 | gridWidth: 10, |
| 43 | gridHeight: 10, |
| 44 | gridDepth: 10, |
| 45 | gridOffsetX: 0, |
| 46 | gridOffsetY: 0, |
| 47 | gridOffsetZ: 0, |
| 48 | gridColor: 0, |
| 49 | gridAlpha: 1, |
| 50 | snap: false, |
| 51 | }, |
| 52 | }, |
| 53 | usedExtensionsWithVariablesData: [], |
| 54 | }); |
| 55 | |
| 56 | const manager = gdjs.LinksManager.getManager(runtimeScene); |
| 57 | |
| 58 | const object1A = new gdjs.RuntimeObject( |
| 59 | runtimeScene, |
| 60 | { |
no test coverage detected