ds4/src/module/actor/actor-data.ts

27 lines
674 B
TypeScript
Raw Normal View History

export interface DS4ActorDataType {
attributes: DS4ActorDataAttributes;
traits: DS4ActorDataTraits;
2020-12-28 15:51:00 +01:00
}
interface DS4ActorDataAttributes {
body: BodyAttribute;
mobility: ExtensibleData<number>;
mind: ExtensibleData<number>;
2020-12-28 15:51:00 +01:00
}
interface ExtensibleData<T extends any> {
initial: T;
2020-12-28 15:51:00 +01:00
}
// Blueprint in case we need more detailed differentiation
type BodyAttribute = ExtensibleData<number>;
interface DS4ActorDataTraits {
strength: ExtensibleData<number>;
constitution: ExtensibleData<number>;
agility: ExtensibleData<number>;
dexterity: ExtensibleData<number>;
intellect: ExtensibleData<number>;
aura: ExtensibleData<number>;
2020-12-28 15:51:00 +01:00
}