Add backend projects with core models and tests, setup Godot frontend
This commit is contained in:
37
backend/src/MyBiz.Core/ProductionChain.cs
Normal file
37
backend/src/MyBiz.Core/ProductionChain.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user