Ethaks
LOELeague of Extraordinary FoundryVTT Developers
•Created by Dark on 1/10/2025 in #system-development
Custom Classes by Item Type?
Nowadays you can attach most any functionality to the type models, with only a few things requiring handling in the document class. And even then, delegating to the type data model is still an option if that fits your purposes better.
5 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by Dark on 1/10/2025 in #system-development
Custom Classes by Item Type?
To keep in line with modern Foundry: don't use polymorphic document classes, use type-specific
TypeDataModel
s in the documents' system
instead.
For reference, there's a general DataModel
page in the wiki, which amongst other things also links to Foundry's KB entry on System Data Models.5 replies