using Content.Shared._NF.Bank.BUI; using Content.Shared._NF.Bank.Components; namespace Content.Server._NF.Bank; /// /// Tracks accounts of entities (e.g. Frontier Station, the NFSD) /// [RegisterComponent, Access(typeof(BankSystem))] public sealed partial class SectorBankComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField] public Dictionary Accounts = new(); [ViewVariables(VVAccess.ReadOnly)] public float SecondsSinceLastIncrease = 0.0f; [ViewVariables(VVAccess.ReadWrite)] public Dictionary<(SectorBankAccount Account, LedgerEntryType Type), int> AccountLedgerEntries { get; set; } = new(); } [DataDefinition] public sealed partial class SectorBankAccountInfo { /// /// The current balance of the account, in spesos. /// [DataField] public int Balance; /// /// How much the account increases per second. /// [DataField] public int IncreasePerSecond; }