2024-10-21 15:35:32 +00:00
|
|
|
export interface Cost {
|
|
|
|
wood: number;
|
|
|
|
stone: number;
|
|
|
|
iron: number;
|
|
|
|
food: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-10-22 15:15:35 +00:00
|
|
|
export type Production = Cost;
|
|
|
|
|
|
|
|
|
2024-10-21 15:35:32 +00:00
|
|
|
export interface BuildingSource {
|
|
|
|
name: string;
|
|
|
|
level: number;
|
|
|
|
cost: (level: number) => Cost;
|
|
|
|
behavior: {
|
|
|
|
production?: Function;
|
2024-10-22 15:15:35 +00:00
|
|
|
storage?: Function;
|
2024-10-21 15:35:32 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface Building extends BuildingSource {
|
|
|
|
id: number;
|
|
|
|
}
|