Add backend projects with core models and tests, setup Godot frontend

This commit is contained in:
sokol
2026-02-20 21:01:09 +03:00
parent fc3ad9f6db
commit f320aa50ed
14 changed files with 518 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
namespace MyBiz.Core;
/// <summary>
/// Шаг производственной цепочки
/// </summary>
public class ProductionStep
{
/// <summary>
/// Требуемый продукт
/// </summary>
public ProductType InputProduct { get; set; }
/// <summary>
/// Количество требуемого продукта
/// </summary>
public int InputQuantity { get; set; }
/// <summary>
/// Время производства (в тиках)
/// </summary>
public int ProductionTime { get; set; }
}
/// <summary>
/// Производственная цепочка
/// </summary>
public class ProductionChain
{
public ProductType OutputProduct { get; set; }
public BuildingType RequiredBuilding { get; set; }
public List<ProductionStep> Steps { get; set; } = new();
/// <summary>
/// Количество выходного продукта за цикл
/// </summary>
public int OutputQuantity { get; set; }
}