2023-01-12 15:33:57 +03:00
|
|
|
|
using Robust.Shared.GameStates;
|
2024-07-09 22:51:47 -07:00
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
2023-01-12 15:33:57 +03:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Chat.TypingIndicator;
|
|
|
|
|
|
|
2024-07-09 22:51:47 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// If an item is equipped to someones inventory (Anything but the pockets), and has this component
|
|
|
|
|
|
/// the users typing indicator will be replaced by the prototype given in <c>TypingIndicatorPrototype</c>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
|
2023-01-12 15:33:57 +03:00
|
|
|
|
[Access(typeof(SharedTypingIndicatorSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class TypingIndicatorClothingComponent : Component
|
2023-01-12 15:33:57 +03:00
|
|
|
|
{
|
2024-07-09 22:51:47 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The typing indicator that will override the default typing indicator when the item is equipped to a users
|
|
|
|
|
|
/// inventory.
|
|
|
|
|
|
/// </summary>
|
2023-01-12 15:33:57 +03:00
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2024-07-09 22:51:47 -07:00
|
|
|
|
[DataField("proto", required: true)]
|
|
|
|
|
|
public ProtoId<TypingIndicatorPrototype> TypingIndicatorPrototype = default!;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This stores the time the item was equipped in someones inventory. If null, item is currently not equipped.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField, AutoPausedField]
|
|
|
|
|
|
public TimeSpan? GotEquippedTime = null;
|
2023-01-12 15:33:57 +03:00
|
|
|
|
}
|