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;
|
|
|
|
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;
|
2024-10-23 08:14:19 +00:00
|
|
|
level: number;
|
2024-10-21 15:35:32 +00:00
|
|
|
}
|