We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5681f86 commit b89b1baCopy full SHA for b89b1ba
src/instance-copy.ts
@@ -272,7 +272,8 @@ export async function copyInstance(
272
s: InstanceinatorInstance,
273
name?: string,
274
display?: boolean,
275
- forceDraw?: boolean
+ forceDraw?: boolean,
276
+ preLoad?: (inst: InstanceinatorInstance) => void
277
): Promise<InstanceinatorInstance> {
278
if (!classes) initClasses()
279
@@ -293,6 +294,8 @@ export async function copyInstance(
293
294
295
ig.initGameAddons = () => gameAddons
296
297
+ if (preLoad) preLoad(ns)
298
+
299
ig.ready = true
300
ig.mainLoader = new sc.StartLoader(classes.CrossCode)
301
ig.mainLoader.load()
0 commit comments