alter vatter
This commit is contained in:
27
Company.cs
Normal file
27
Company.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user