This repository has been archived on 2022-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
irreligious/src/model/resource/IResource.ts

29 lines
571 B
TypeScript
Raw Normal View History

enum ResourceType {
2021-08-21 09:22:11 -05:00
Religion = 'religion',
Consumable = 'consumable',
2021-08-21 12:45:58 -05:00
Infrastructure = 'infrastructure',
2021-08-21 19:02:57 -05:00
Passive = 'passive'
}
interface IResource {
2021-08-21 12:45:58 -05:00
name: string | null;
description: string | null;
resourceType: ResourceType;
value: number;
clickText: string;
clickDescription: string;
2021-08-21 12:45:58 -05:00
clickAction (state: GameState): void;
cost: { [key: string]: number };
max (state: GameState): number | null;
inc (state: GameState): number | null;
isUnlocked (state: GameState): boolean;
advanceAction (time: number, state: GameState): void;
}