(objectsContext, objectsLists, x, y, layer)
| 722 | }; |
| 723 | |
| 724 | const createObjectOnScene = (objectsContext, objectsLists, x, y, layer) => { |
| 725 | const objectName = objectsLists.firstKey(); |
| 726 | const obj = objectsContext.createObject(objectName); |
| 727 | if (obj !== null) { |
| 728 | // Ignore position and layer set up of the object as we're in a minimal mock of GDJS. |
| 729 | |
| 730 | // Let the new object be picked by next actions/conditions. |
| 731 | if (objectsLists.containsKey(objectName)) { |
| 732 | objectsLists.get(objectName).push(obj); |
| 733 | } |
| 734 | } |
| 735 | }; |
| 736 | |
| 737 | /** |
| 738 | * @param {any} objectsContext |
nothing calls this directly
no test coverage detected