private static void Encode(BinaryWriter writer, Rotate o) { EncodeID(writer, typeof(Rotate)); writer.Write((int)o.GetRotateMode()); writer.Write(o.Bypass); }