2025-05-29 00:22:47 +03:00
|
|
|
using Content.Shared._CP14.Trading.Systems;
|
|
|
|
|
using Content.Shared.Tag;
|
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared._CP14.Trading.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(CP14SharedTradingPlatformSystem))]
|
|
|
|
|
public sealed partial class CP14TradingPlatformComponent : Component
|
|
|
|
|
{
|
|
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public TimeSpan NextBuyTime = TimeSpan.Zero;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public SoundSpecifier BuySound = new SoundPathSpecifier("/Audio/_CP14/Effects/cash.ogg")
|
|
|
|
|
{
|
|
|
|
|
Params = AudioParams.Default.WithVariation(0.1f)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<TagPrototype> CoinTag = "CP14Coin";
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId BuyVisual = "CP14CashImpact";
|
2025-07-06 00:09:03 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public float PlatformMarkupProcent = 1f;
|
2025-05-29 00:22:47 +03:00
|
|
|
}
|