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);
}
