diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs new file mode 100644 index 00000000..ed96ff41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs @@ -0,0 +1,90 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GCFBattleField")]
+ [Serializable]
+ public class GCFBattleField : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)]
+ public uint mapid
+ {
+ get
+ {
+ return this._mapid ?? 0u;
+ }
+ set
+ {
+ this._mapid = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool mapidSpecified
+ {
+ get
+ {
+ return this._mapid != null;
+ }
+ set
+ {
+ bool flag = value == (this._mapid == null);
+ if (flag)
+ {
+ this._mapid = (value ? new uint?(this.mapid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "jvdians", DataFormat = DataFormat.Default)]
+ public List<GCFJvDianInfo> jvdians
+ {
+ get
+ {
+ return this._jvdians;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "zhanchinfo", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public GCFZhanChBriefInfo zhanchinfo
+ {
+ get
+ {
+ return this._zhanchinfo;
+ }
+ set
+ {
+ this._zhanchinfo = value;
+ }
+ }
+
+ private uint? _mapid;
+
+ private readonly List<GCFJvDianInfo> _jvdians = new List<GCFJvDianInfo>();
+
+ private GCFZhanChBriefInfo _zhanchinfo = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializemapid()
+ {
+ return this.mapidSpecified;
+ }
+
+ private void Resetmapid()
+ {
+ this.mapidSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|