36 lines
994 B
C#
36 lines
994 B
C#
using Content.Shared.Cargo;
|
|
|
|
namespace Content.Server.Cargo.Components;
|
|
|
|
/// <summary>
|
|
/// Stores all active cargo bounties for a particular station.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class StationCargoBountyDatabaseComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Maximum amount of bounties a station can have.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public int MaxBounties = 5;
|
|
|
|
/// <summary>
|
|
/// A list of all the bounties currently active for a station.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public List<CargoBountyData> Bounties = new();
|
|
|
|
/// <summary>
|
|
/// Used to determine unique order IDs
|
|
/// </summary>
|
|
[DataField]
|
|
public int TotalBounties;
|
|
|
|
/// <summary>
|
|
/// A list of bounty IDs that have been checked this tick.
|
|
/// Used to prevent multiplying bounty prices.
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<string> CheckedBounties = new();
|
|
}
|