Answer
Ove
rf
low
Answer Overflow Logo
GitHub
Get Started
Login
GitHub
Open popover
LOEFD
League of Extraordinary FoundryVTT Developers
development
Join Server
with just a parent class and the class name, is there a way to instantiate a new class?
C
corporat
View on Discord
10/18/2021
JamesB and @Vétérini have a question for y'all in #coc7-dev
https://discord.com/channels/732325252788387980/875688989137465355/899071918890704896
C
corporat
View on Discord
10/18/2021
Threaded
C
ccjmk
View on Discord
10/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
UU
Unknown User
View on Discord
10/18/2021
21 Messages Not Public
Sign In & Join Server To View