public void Write(BinaryWriter writer) { writer.Write(Time); writer.Write(FileFormat.GetEntityStateID(State.GetType())); writer.Write(InterpMode.ToString()); State.Write(writer); }