Make the system use Proxy and proper subclassing instead of the weird middle-ground polymorphism (closes #86)
This commit is contained in:
parent
745824f6cc
commit
cd98e66484
17 changed files with 322 additions and 351 deletions
|
|
@ -8,8 +8,8 @@ import { SyncData } from "./models/Actor/Sync.mjs";
|
|||
import { MobData } from "./models/Actor/Mob.mjs";
|
||||
|
||||
// Main Documents
|
||||
import { ActorHandler } from "./documents/Actor/Handler.mjs";
|
||||
import { ItemHandler } from "./documents/Item/Handler.mjs";
|
||||
import { ActorProxy } from "./documents/Actor/_proxy.mjs";
|
||||
import { ItemProxy } from "./documents/Item/_proxy.mjs";
|
||||
|
||||
// Item Sheets
|
||||
import { UntypedItemSheet } from "./sheets/Items/UntypedItemSheet.mjs";
|
||||
|
|
@ -46,8 +46,8 @@ Hooks.once(`init`, async () => {
|
|||
CONFIG.Item.dataModels.aspect = AspectItemData;
|
||||
CONFIG.Item.dataModels.spell = SpellItemData;
|
||||
CONFIG.Item.dataModels.pet = PetItemData;
|
||||
CONFIG.Actor.documentClass = ActorHandler;
|
||||
CONFIG.Item.documentClass = ItemHandler;
|
||||
CONFIG.Actor.documentClass = ActorProxy;
|
||||
CONFIG.Item.documentClass = ItemProxy;
|
||||
|
||||
CONFIG.DOTDUNGEON = DOTDUNGEON;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue