The gdjs.RuntimeGame to be hot-reloaded.
Static assignStatic deepDeep check equality between the two objects/arrays/primitives.
Inspired from https://github.com/epoberezkin/fast-deep-equal
The first object/array/primitive to compare
The second object/array/primitive to compare
Trigger a hot-reload of the game. The hot-reload is added to a queue and processed in order.
This allows the editor to trigger multiple hot-reloads in a row (even if it's sub-optimal) and not miss any (one could for example be reloading libraries or code, while other are just reloading resources).
Static indexStatic indexStatic resolveAdd the children object data into every custom object data.
At the runtime, this is done at the object instantiation. For hot-reloading, it's done before hands to optimize.
The project data
The object datas to modify
Reload scripts/data of an exported game and applies the changes to the running runtime game.