/// <summary> /// Convert this object to a raw proto. /// </summary> /// <param name="strName">Specifies the name of the proto.</param> /// <returns>The new proto is returned.</returns> public RawProto ToProto(string strName) { RawProtoCollection rgChildren = new RawProtoCollection(); rgChildren.Add(new RawProto("emit_type", m_emitType.ToString())); rgChildren.Add(new RawProto("emit_overlap", m_fEmitOverlap.ToString())); return(new RawProto(strName, "", rgChildren)); }
/// <summary> /// Convert this object to a raw proto. /// </summary> /// <param name="strName">Specifies the name of the proto.</param> /// <returns>The new proto is returned.</returns> public override RawProto ToProto(string strName) { RawProto rpBase = base.ToProto("option"); RawProtoCollection rgChildren = new RawProtoCollection(); rgChildren.Add(rpBase); rgChildren.Add(new RawProto("emit_type", m_emitType.ToString())); rgChildren.Add(new RawProto("emit_overlap", m_fEmitOverlap.ToString())); return(new RawProto(strName, "", rgChildren)); }