Files
crystall-punk-14/Content.Shared/_CP14/Trading/Components/CP14TradingPlatformComponent.cs

27 lines
810 B
C#
Raw Normal View History

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";
}