summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs
new file mode 100644
index 00000000..dfff9c92
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "Festival520Data")]
+ [Serializable]
+ public class Festival520Data : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "loveValue", DataFormat = DataFormat.TwosComplement)]
+ public uint loveValue
+ {
+ get
+ {
+ return this._loveValue ?? 0u;
+ }
+ set
+ {
+ this._loveValue = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool loveValueSpecified
+ {
+ get
+ {
+ return this._loveValue != null;
+ }
+ set
+ {
+ bool flag = value == (this._loveValue == null);
+ if (flag)
+ {
+ this._loveValue = (value ? new uint?(this.loveValue) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "alreadyGet", DataFormat = DataFormat.Default)]
+ public List<bool> alreadyGet
+ {
+ get
+ {
+ return this._alreadyGet;
+ }
+ }
+
+ private uint? _loveValue;
+
+ private readonly List<bool> _alreadyGet = new List<bool>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeloveValue()
+ {
+ return this.loveValueSpecified;
+ }
+
+ private void ResetloveValue()
+ {
+ this.loveValueSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}