StationBankAccountComponent.cs 648 B

12345678910111213141516171819
  1. using Content.Shared.Cargo;
  2. namespace Content.Server.Cargo.Components;
  3. /// <summary>
  4. /// Added to the abstract representation of a station to track its money.
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(SharedCargoSystem))]
  7. public sealed partial class StationBankAccountComponent : Component
  8. {
  9. [ViewVariables(VVAccess.ReadWrite), DataField("balance")]
  10. public int Balance = 2000;
  11. /// <summary>
  12. /// How much the bank balance goes up per second, every Delay period. Rounded down when multiplied.
  13. /// </summary>
  14. [ViewVariables(VVAccess.ReadWrite), DataField("increasePerSecond")]
  15. public int IncreasePerSecond = 1;
  16. }