2024-01-28 18:18:54 +07:00
|
|
|
using Content.Server._White.Economy;
|
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
|
|
|
{
|
2023-10-02 16:50:02 +09:00
|
|
|
// WD EDIT START
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public int Balance
|
|
|
|
|
{
|
|
|
|
|
get => BankAccount.Balance;
|
|
|
|
|
set => BankAccount.Balance = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public BankAccount BankAccount = default!;
|
|
|
|
|
// WD EDIT END
|
2022-06-23 14:36:47 +10:00
|
|
|
|
|
|
|
|
/// <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
|
|
|
}
|