Files
You-Are-A-CEO/Company.cs
2026-07-29 18:50:14 +02:00

28 lines
552 B
C#

using Godot;
[GlobalClass]
public partial class Company : Resource
{
[Export]
public float Hype { get; set; }
[Export]
public float Money { get; set; } = 10_000;
[Export]
public float Workers { get; set; } = 1;
[Export]
public float AverageSalary { get; set; } = 100;
/// <summary>
/// Cost per Quarter
/// </summary>
public float Cost => Workers * AverageSalary;
/// <summary>
/// Runway in Quarters
/// </summary>
public int Runway => Mathf.FloorToInt(Money / Cost);
}