public void Serialize(ref DataStreamWriter writer, VoxelStencilInput baseline, NetworkCompressionModel compressionModel)
 {
     writer.WriteByte(fillType ? (byte)1 : (byte)0);
     writer.WritePackedFloat(centerX, compressionModel);
     writer.WritePackedFloat(centerY, compressionModel);
     writer.WritePackedFloat(radius, compressionModel);
     writer.WritePackedInt((int)shape, compressionModel);
 }
 public void Deserialize(uint tick, ref DataStreamReader reader, VoxelStencilInput baseline, NetworkCompressionModel compressionModel)
 {
     this.Tick     = tick;
     this.fillType = reader.ReadByte() == 1;
     this.centerX  = reader.ReadPackedFloat(compressionModel);
     this.centerY  = reader.ReadPackedFloat(compressionModel);
     this.radius   = reader.ReadPackedFloat(compressionModel);
     this.shape    = (VoxelShape)reader.ReadPackedInt(compressionModel);
     Deserialize(tick, ref reader);
 }