fix: теперь в лобби можно прослушать голос

This commit is contained in:
Remuchi
2024-04-20 12:38:13 +07:00
parent 31ad875b2f
commit 28b714a318
7 changed files with 51 additions and 59 deletions

View File

@@ -10,13 +10,13 @@ public sealed class MsgRequestTTS : NetMessage
{
public override MsgGroups MsgGroup => MsgGroups.Command;
public EntityUid Uid { get; set; } = EntityUid.Invalid;
public NetEntity Uid { get; set; } = NetEntity.Invalid;
public string Text { get; set; } = string.Empty;
public ProtoId<TTSVoicePrototype> VoiceId { get; set; } = string.Empty;
public override void ReadFromBuffer(NetIncomingMessage buffer, IRobustSerializer serializer)
{
Uid = new EntityUid(buffer.ReadInt32());
Uid = new NetEntity(buffer.ReadInt32());
Text = buffer.ReadString();
VoiceId = buffer.ReadString();
}