2022-06-23 14:36:47 +10:00
|
|
|
using Content.Shared.Cargo;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Cargo.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Added to the abstract representation of a station to track its money.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(SharedCargoSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StationBankAccountComponent : Component
|
2022-06-23 14:36:47 +10:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("balance")]
|
|
|
|
|
public int Balance = 2000;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How much the bank balance goes up per second, every Delay period. Rounded down when multiplied.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("increasePerSecond")]
|
2022-09-16 03:29:07 +10:00
|
|
|
public int IncreasePerSecond = 1;
|
2022-06-23 14:36:47 +10:00
|
|
|
}
|