21 lines
628 B
TypeScript
21 lines
628 B
TypeScript
import type { Enemy } from './enemy.csv';
|
|
import type { Effect } from './effect.csv';
|
|
|
|
export type IntentEffectTarget = 'user' | 'eachEnemy' | 'randomEnemy' | 'player';
|
|
export type IntentEffect = [IntentEffectTarget, Effect, number];
|
|
export type IntentEffectList = IntentEffect[];
|
|
|
|
type IntentTable = readonly {
|
|
readonly id: string;
|
|
readonly enemy: Enemy;
|
|
readonly initialIntent: boolean;
|
|
readonly nextIntents: Intent[];
|
|
readonly brokenIntent: Intent[];
|
|
readonly effects: IntentEffectList;
|
|
}[];
|
|
|
|
export type Intent = IntentTable[number];
|
|
|
|
declare function getData(): IntentTable;
|
|
export default getData;
|