protected override void WriteDelta(BinaryWriter writer) { NetCoreObject obj = new NetCoreObject(Value); obj.Write(writer); NetList <KeyValuePair <Vector2, MultiTileComponent>, NetKeyValuePair <Vector2, MultiTileComponent, NetVector2, NetMultiTileComponent> > netList = new NetList <KeyValuePair <Vector2, MultiTileComponent>, NetKeyValuePair <Vector2, MultiTileComponent, NetVector2, NetMultiTileComponent> >(); if (Value.objects == null) { throw new Exception("Trying to write null object list!"); } foreach (var v in Value.objects) { StardustCore.ModCore.ModMonitor.Log(v.Value.name); netList.Add(v); } netList.Write(writer); NetColor col = new NetColor(Value.categoryColor); col.Write(writer); NetString catName = new NetString(Value.categoryName); catName.Write(writer); }