Show director summons as info toasts and presence queue labels.
Corridor waiters need a summon-phase byte on presence (v11); EventDef DirectorSummoned is info-only so clocks keep running.
This commit is contained in:
@@ -218,6 +218,7 @@ public static class ProtocolCodec
|
||||
}
|
||||
|
||||
size += StringSize(person.TalkTopicId ?? "");
|
||||
size += sizeof(byte);
|
||||
}
|
||||
|
||||
return size;
|
||||
@@ -274,6 +275,7 @@ public static class ProtocolCodec
|
||||
}
|
||||
|
||||
writer.WriteString(person.TalkTopicId ?? "");
|
||||
writer.WriteByte(person.SummonPhase);
|
||||
}
|
||||
|
||||
return writer.Position;
|
||||
@@ -460,7 +462,8 @@ public static class ProtocolCodec
|
||||
}
|
||||
|
||||
var topicId = reader.ReadString();
|
||||
people[i] = new PresencePerson(id, nodeId, state, members, topicId);
|
||||
var summonPhase = reader.ReadByte();
|
||||
people[i] = new PresencePerson(id, nodeId, state, members, topicId, summonPhase);
|
||||
}
|
||||
|
||||
return new ServerPresenceMessage(schoolId, nodes, people);
|
||||
|
||||
Reference in New Issue
Block a user