using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "SynGuildArenaFightUnit")] [Serializable] public class SynGuildArenaFightUnit : IExtensible { [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] public uint pos { get { return this._pos ?? 0u; } set { this._pos = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool posSpecified { get { return this._pos != null; } set { bool flag = value == (this._pos == null); if (flag) { this._pos = (value ? new uint?(this.pos) : null); } } } [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] public uint state { get { return this._state ?? 0u; } set { this._state = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool stateSpecified { get { return this._state != null; } set { bool flag = value == (this._state == null); if (flag) { this._state = (value ? new uint?(this.state) : null); } } } private uint? _pos; private uint? _state; private IExtension extensionObject; private bool ShouldSerializepos() { return this.posSpecified; } private void Resetpos() { this.posSpecified = false; } private bool ShouldSerializestate() { return this.stateSpecified; } private void Resetstate() { this.stateSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }