Retry a failed portrait from the notice with the same scene builder.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 01:48:30 +03:00
co-authored by Cursor
parent 3c70227229
commit 3061e09d3e
32 changed files with 712 additions and 105 deletions
+4 -2
View File
@@ -280,7 +280,7 @@ public static class ProtocolCodec
}
public static int NoticeSize(in ServerNoticeMessage message) =>
sizeof(byte) + sizeof(uint) + StringSize(message.DefName) + sizeof(byte) + sizeof(byte) + sizeof(uint) + sizeof(uint);
sizeof(byte) + sizeof(uint) + StringSize(message.DefName) + sizeof(byte) + sizeof(byte) + sizeof(uint) + sizeof(uint) + StringSize(message.Action);
public static int WriteNotice(Span<byte> destination, in ServerNoticeMessage message)
{
@@ -292,6 +292,7 @@ public static class ProtocolCodec
writer.WriteByte(message.Pause ? (byte)1 : (byte)0);
writer.WriteUInt32(message.TtlMs);
writer.WriteUInt32(message.PersonId);
writer.WriteString(message.Action);
return writer.Position;
}
@@ -482,7 +483,8 @@ public static class ProtocolCodec
var pause = reader.ReadByte() != 0;
var ttlMs = reader.ReadUInt32();
var personId = reader.ReadUInt32();
return new ServerNoticeMessage(id, defName, severity, pause, ttlMs, personId);
var action = reader.ReadString();
return new ServerNoticeMessage(id, defName, severity, pause, ttlMs, personId, action);
}
private static bool HasPresenceActivity(PresenceNode node) =>