with just a parent class and the class name, is there a way to instantiate a new class?

Ccorporat10/18/2021
JamesB and @Vétérini have a question for y'all in #coc7-dev
https://discord.com/channels/732325252788387980/875688989137465355/899071918890704896
Ccorporat10/18/2021
Threaded
Cccjmk10/18/2021
Hmm Ghost gave me a piece of code a while for that, if I understood correctly the need:

const cls = getDocumentClass('Actor');
const actor = new cls(newActorData);


I imagine getting other DocumentClasses by name should work
UUUnknown User10/18/2021
21 Messages Not Public
Sign In & Join Server To View