Fix typing indicators! (#29492)

* First commit

* Removed pause stuff

* Make the event better

* Forgot to add the comment

* Proto id stuff

* cool comments

* serializer

* Added the time stuff
This commit is contained in:
beck-thompson
2024-07-09 22:51:47 -07:00
committed by GitHub
parent 56fb8c832e
commit 91740ef5be
6 changed files with 111 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Prototypes;
namespace Content.Shared.Chat.TypingIndicator;
@@ -14,7 +14,6 @@ public sealed partial class TypingIndicatorComponent : Component
/// <summary>
/// Prototype id that store all visual info about typing indicator.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("proto", customTypeSerializer: typeof(PrototypeIdSerializer<TypingIndicatorPrototype>))]
public string Prototype = SharedTypingIndicatorSystem.InitialIndicatorId;
[DataField("proto")]
public ProtoId<TypingIndicatorPrototype> TypingIndicatorPrototype = "default";
}