using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "HellDropInfoAll")] [Serializable] public class HellDropInfoAll : IExtensible { [ProtoMember(1, Name = "all", DataFormat = DataFormat.Default)] public List all { get { return this._all; } } [ProtoMember(2, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)] public uint version { get { return this._version ?? 0u; } set { this._version = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool versionSpecified { get { return this._version != null; } set { bool flag = value == (this._version == null); if (flag) { this._version = (value ? new uint?(this.version) : null); } } } private readonly List _all = new List(); private uint? _version; private IExtension extensionObject; private bool ShouldSerializeversion() { return this.versionSpecified; } private void Resetversion() { this.versionSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }