We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcb548 commit 492d406Copy full SHA for 492d406
Source/Client/Syncing/Dict/SyncDictRimWorld.cs
@@ -1095,6 +1095,22 @@ public static class SyncDictRimWorld
1095
return data.MpContext().map.zoneManager.AllZones.Find(zone => zone.ID == zoneId);
1096
}, true
1097
},
1098
+ {
1099
+ (ByteWriter data, Room room) => {
1100
+ if(room == null){
1101
+ data.WriteInt32(-1);
1102
+ } else {
1103
+ data.MpContext().map = room.Map;
1104
+ data.WriteInt32(room.ID);
1105
+ }
1106
+ },
1107
+ (ByteReader data) => {
1108
+ int roomId = data.ReadInt32();
1109
+ if (roomId == -1)
1110
+ return null;
1111
+ return data.MpContext().map.regionGrid.allRooms.Find(r => r.ID == roomId);
1112
+ }, true
1113
1114
{
1115
(ByteWriter data, Plan plan) =>
1116
0 commit comments