import {Entry, EntryJTD} from "./Entry.js"; import {schema} from "../schemata/SchemaData.js"; /* export interface PersonaState { readonly persona: Persona readonly condition: Condition readonly summary?: string readonly journalEntry?: string readonly guidedEmpathy?: readonly GuidedEmpathy[] } */ /* export interface RPGStats { readonly hpp?: number readonly mpp?: number readonly tpp?: number readonly hope?: number readonly determination?: number } */ /* export interface Personas { readonly active?: Persona readonly states?: readonly PersonaState[] } */ /* export interface Needs { readonly food?: string readonly water?: string readonly sleep?: string readonly hygiene?: string } */ /* export interface Recovery { readonly name: string } */ /* export interface Activity { readonly name: string } */ /* export interface RecoveryMethod { readonly name: string readonly description: string } */ /* // readonly activities?: readonly string[] readonly empathyGuide?: EmpathyGuide // readonly recoveryMethods?: readonly RecoveryMethod[] */ export interface Journal { readonly entries?: readonly Entry[] } export type JournalJTD = typeof JournalJTD export const JournalJTD = schema({ schema: { optionalProperties: { entries: { elements: EntryJTD.reference }, }, }, typeHint: null as Journal|null, key: "journal", references: [EntryJTD, ...EntryJTD.requiredReferences] })