using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "BuyHeroInHeroBattleArg")] [Serializable] public class BuyHeroInHeroBattleArg : IExtensible { [ProtoMember(1, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] public uint heroid { get { return this._heroid ?? 0u; } set { this._heroid = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool heroidSpecified { get { return this._heroid != null; } set { bool flag = value == (this._heroid == null); if (flag) { this._heroid = (value ? new uint?(this.heroid) : null); } } } private uint? _heroid; private IExtension extensionObject; private bool ShouldSerializeheroid() { return this.heroidSpecified; } private void Resetheroid() { this.heroidSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }