refactor: use subclasses for different actor types
This commit is contained in:
parent
21f849b464
commit
be616e3be8
23 changed files with 321 additions and 240 deletions
15
src/actor/creature/creature-data-properties.ts
Normal file
15
src/actor/creature/creature-data-properties.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
// SPDX-FileCopyrightText: 2022 Johannes Loher
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { DS4ActorDataPropertiesDataBase } from "../actor-data-properties-base";
|
||||
import { DS4CreatureDataSourceDataBaseInfo } from "./creature-data-source";
|
||||
|
||||
export interface DS4CreatureDataProperties {
|
||||
type: "creature";
|
||||
data: DS4CreatureDataPropertiesData;
|
||||
}
|
||||
|
||||
interface DS4CreatureDataPropertiesData extends DS4ActorDataPropertiesDataBase {
|
||||
baseInfo: DS4CreatureDataSourceDataBaseInfo;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue