* testing decription textlabel * Move uplink listing to a new menu * Add search bar * Added description * Added radio uplink * Added preset uplinks * Minor fix * Fixed comma
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Content.Shared.Sound;
|
|
using Content.Shared.Traitor.Uplink;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.ViewVariables;
|
|
using System;
|
|
|
|
namespace Content.Server.Traitor.Uplink.Components
|
|
{
|
|
[RegisterComponent]
|
|
public class UplinkComponent : Component
|
|
{
|
|
public override string Name => "Uplink";
|
|
|
|
[ViewVariables]
|
|
[DataField("buySuccessSound")]
|
|
public SoundSpecifier BuySuccessSound = new SoundPathSpecifier("/Audio/Effects/kaching.ogg");
|
|
|
|
[ViewVariables]
|
|
[DataField("insufficientFundsSound")]
|
|
public SoundSpecifier InsufficientFundsSound = new SoundPathSpecifier("/Audio/Effects/error.ogg");
|
|
|
|
[DataField("activatesInHands")]
|
|
public bool ActivatesInHands = false;
|
|
|
|
[DataField("presetInfo")]
|
|
public PresetUplinkInfo? PresetInfo = null;
|
|
|
|
[ViewVariables] public UplinkAccount? UplinkAccount;
|
|
|
|
[Serializable]
|
|
[DataDefinition]
|
|
public class PresetUplinkInfo
|
|
{
|
|
[DataField("balance")]
|
|
public int StartingBalance;
|
|
}
|
|
}
|
|
}
|