2023-10-02 16:50:02 +09:00
|
|
|
|
using Content.Shared.Mind;
|
|
|
|
|
|
|
2024-01-28 18:18:54 +07:00
|
|
|
|
namespace Content.Server._White.Economy;
|
2023-10-02 16:50:02 +09:00
|
|
|
|
|
|
|
|
|
|
public sealed class BankAccount
|
|
|
|
|
|
{
|
|
|
|
|
|
public readonly int AccountId;
|
|
|
|
|
|
public readonly int AccountPin;
|
|
|
|
|
|
public int Balance;
|
|
|
|
|
|
public bool CommandBudgetAccount;
|
|
|
|
|
|
public Entity<MindComponent>? Mind;
|
|
|
|
|
|
public string Name = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
public EntityUid? CartridgeUid;
|
|
|
|
|
|
|
|
|
|
|
|
public BankAccount(int accountId, int balance)
|
|
|
|
|
|
{
|
|
|
|
|
|
AccountId = accountId;
|
|
|
|
|
|
Balance = balance;
|
|
|
|
|
|
AccountPin = Random.Shared.Next(1000, 10000);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|