using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "SweepArg")] [Serializable] public class SweepArg : IExtensible { [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] public uint sceneID { get { return this._sceneID ?? 0u; } set { this._sceneID = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool sceneIDSpecified { get { return this._sceneID != null; } set { bool flag = value == (this._sceneID == null); if (flag) { this._sceneID = (value ? new uint?(this.sceneID) : null); } } } [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] public uint count { get { return this._count ?? 0u; } set { this._count = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool countSpecified { get { return this._count != null; } set { bool flag = value == (this._count == null); if (flag) { this._count = (value ? new uint?(this.count) : null); } } } [ProtoMember(3, IsRequired = false, Name = "expid", DataFormat = DataFormat.TwosComplement)] public uint expid { get { return this._expid ?? 0u; } set { this._expid = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool expidSpecified { get { return this._expid != null; } set { bool flag = value == (this._expid == null); if (flag) { this._expid = (value ? new uint?(this.expid) : null); } } } private uint? _sceneID; private uint? _count; private uint? _expid; private IExtension extensionObject; private bool ShouldSerializesceneID() { return this.sceneIDSpecified; } private void ResetsceneID() { this.sceneIDSpecified = false; } private bool ShouldSerializecount() { return this.countSpecified; } private void Resetcount() { this.countSpecified = false; } private bool ShouldSerializeexpid() { return this.expidSpecified; } private void Resetexpid() { this.expidSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }