using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "MyGuild")] [Serializable] public class MyGuild : IExtensible { [ProtoMember(1, IsRequired = false, Name = "gid", DataFormat = DataFormat.TwosComplement)] public ulong gid { get { return this._gid ?? 0UL; } set { this._gid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool gidSpecified { get { return this._gid != null; } set { bool flag = value == (this._gid == null); if (flag) { this._gid = (value ? new ulong?(this.gid) : null); } } } [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] public int position { get { return this._position ?? 0; } set { this._position = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool positionSpecified { get { return this._position != null; } set { bool flag = value == (this._position == null); if (flag) { this._position = (value ? new int?(this.position) : null); } } } [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] public int level { get { return this._level ?? 0; } set { this._level = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool levelSpecified { get { return this._level != null; } set { bool flag = value == (this._level == null); if (flag) { this._level = (value ? new int?(this.level) : null); } } } [ProtoMember(4, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] public uint icon { get { return this._icon ?? 0u; } set { this._icon = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool iconSpecified { get { return this._icon != null; } set { bool flag = value == (this._icon == null); if (flag) { this._icon = (value ? new uint?(this.icon) : null); } } } [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] public string name { get { return this._name ?? ""; } set { this._name = value; } } [XmlIgnore] [Browsable(false)] public bool nameSpecified { get { return this._name != null; } set { bool flag = value == (this._name == null); if (flag) { this._name = (value ? this.name : null); } } } private ulong? _gid; private int? _position; private int? _level; private uint? _icon; private string _name; private IExtension extensionObject; private bool ShouldSerializegid() { return this.gidSpecified; } private void Resetgid() { this.gidSpecified = false; } private bool ShouldSerializeposition() { return this.positionSpecified; } private void Resetposition() { this.positionSpecified = false; } private bool ShouldSerializelevel() { return this.levelSpecified; } private void Resetlevel() { this.levelSpecified = false; } private bool ShouldSerializeicon() { return this.iconSpecified; } private void Reseticon() { this.iconSpecified = false; } private bool ShouldSerializename() { return this.nameSpecified; } private void Resetname() { this.nameSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }