mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Store.Components;
|
|
|
|
/// <summary>
|
|
/// Identifies a component that can be inserted into a store
|
|
/// to increase its balance.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Note that if this entity is a stack of items, then this is meant to represent the value per stack item, not
|
|
/// the whole stack. This also means that in general, the actual value should not be modified from the initial
|
|
/// prototype value because otherwise stack merging/splitting may modify the total value.
|
|
/// </remarks>
|
|
[RegisterComponent]
|
|
public sealed partial class CurrencyComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The value of the currency.
|
|
/// The string is the currency type that will be added.
|
|
/// The FixedPoint2 is the value of each individual currency entity.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Note that if this entity is a stack of items, then this is meant to represent the value per stack item, not
|
|
/// the whole stack. This also means that in general, the actual value should not be modified from the initial
|
|
/// prototype value
|
|
/// because otherwise stack merging/splitting may modify the total value.
|
|
/// </remarks>
|
|
[DataField(required: true)]
|
|
public Dictionary<ProtoId<CurrencyPrototype>, FixedPoint2> Price = new();
|
|
}
|