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 3fd0919 commit a3a552cCopy full SHA for a3a552c
src/Typings/Scene/Resources/__createChild.js
@@ -0,0 +1,9 @@
1
+const { Scene } = require('../index.js');
2
+const yaml = require('js-yaml');
3
+
4
5
+Scene.newF("__createChild", function(name, settings) {
6
+ let thing = settings.filter( s => s[0].includes(name))[0];
7
+ let stuff = yaml.load(thing.join("\n"));
8
+ return new this.parent[name](stuff[name]);
9
+});
0 commit comments