using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "OpenSceneChestArg")] [Serializable] public class OpenSceneChestArg : 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); } } } private uint? _sceneID; private IExtension extensionObject; private bool ShouldSerializesceneID() { return this.sceneIDSpecified; } private void ResetsceneID() { this.sceneIDSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }