Update wire protocol to version 5, introducing pupil slots and item counts in map snapshots. Enhance UI components to display pupil slots and item counts in game screens and map editors. Revise localization strings for improved user guidance. Update tests to validate new functionalities and ensure robustness in handling room and item data.
This commit is contained in:
@@ -449,12 +449,19 @@ internal sealed class SchoolWorker
|
||||
for (var i = 0; i < view.Count; i++)
|
||||
{
|
||||
var node = view[i];
|
||||
var items = new MapSnapshotItem[node.Items.Count];
|
||||
for (var item = 0; item < node.Items.Count; item++)
|
||||
{
|
||||
items[item] = new MapSnapshotItem(node.Items[item].Name, (byte)node.Items[item].Count);
|
||||
}
|
||||
|
||||
nodes[i] = new MapSnapshotNode(
|
||||
(byte)node.Kind,
|
||||
node.Id,
|
||||
node.ParentId,
|
||||
node.Name,
|
||||
node.Items,
|
||||
(ushort)node.PupilSlots,
|
||||
items,
|
||||
node.Positions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user