diff --git a/interface/Assets/Scripts/MapManager.cs b/interface/Assets/Scripts/MapManager.cs
new file mode 100644
index 0000000..d6d46b5
--- /dev/null
+++ b/interface/Assets/Scripts/MapManager.cs
@@ -0,0 +1,26 @@
+using Protobuf;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class MapManager : MonoBehaviour
+{
+ // Start is called before the first frame update
+ private bool mapFinished;
+ private MessageOfMap map;
+ void Start()
+ {
+ mapFinished = false;
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+ if (!mapFinished && MessageReceiver.map != null)
+ {
+ map = MessageReceiver.map;
+ //Debug.Log("valid map");
+ mapFinished = true;
+ }
+ }
+}
diff --git a/interface/Assets/Scripts/MessageReceiver.cs b/interface/Assets/Scripts/MessageReceiver.cs
new file mode 100644
index 0000000..daf7ac2
--- /dev/null
+++ b/interface/Assets/Scripts/MessageReceiver.cs
@@ -0,0 +1,40 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using Grpc.Core;
+using Google.Protobuf;
+using Protobuf;
+using System.Data;
+using UnityEditor.U2D.Path;
+
+public class MessageReceiver : MonoBehaviour
+{
+ private bool isMap;
+ // Start is called before the first frame update
+ async void Start()
+ {
+ var channel = new Channel("127.0.0.1:8888", ChannelCredentials.Insecure);
+ var client = new AvailableService.AvailableServiceClient(channel);
+ PlayerMsg msg = new PlayerMsg();
+ msg.PlayerType = PlayerType.StudentPlayer;
+ msg.PlayerId = 0;
+ isMap = true;
+ map = null;
+ var response = client.AddPlayer(msg);
+ while (await response.ResponseStream.MoveNext())
+ {
+ var responseVal = response.ResponseStream.Current;
+ if (isMap)
+ {
+ map = responseVal.ObjMessage[0].MapMessage;
+ isMap = false;
+ }
+ }
+ }
+ // Update is called once per frame
+ void Update()
+ {
+ }
+
+ public static MessageOfMap map;
+}
diff --git a/interface/Assets/Scripts/Proto/Message2Clients.cs b/interface/Assets/Scripts/Proto/Message2Clients.cs
new file mode 100644
index 0000000..1019559
--- /dev/null
+++ b/interface/Assets/Scripts/Proto/Message2Clients.cs
@@ -0,0 +1,7514 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Message2Clients.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Protobuf {
+
+ /// Holder for reflection information generated from Message2Clients.proto
+ public static partial class Message2ClientsReflection {
+
+ #region Descriptor
+ /// File descriptor for Message2Clients.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static Message2ClientsReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChVNZXNzYWdlMkNsaWVudHMucHJvdG8SCHByb3RvYnVmGhFNZXNzYWdlVHlw",
+ "ZS5wcm90byLbBAoQTWVzc2FnZU9mU3R1ZGVudBIJCgF4GAEgASgFEgkKAXkY",
+ "AiABKAUSDQoFc3BlZWQYAyABKAUSFQoNZGV0ZXJtaW5hdGlvbhgEIAEoBRIR",
+ "CglhZGRpY3Rpb24YBSABKAUSIgoadGltZV91bnRpbF9za2lsbF9hdmFpbGFi",
+ "bGUYBiADKAESIgoFcGxhY2UYByABKA4yEy5wcm90b2J1Zi5QbGFjZVR5cGUS",
+ "IAoEcHJvcBgIIAMoDjISLnByb3RvYnVmLlByb3BUeXBlEisKDHBsYXllcl9z",
+ "dGF0ZRgJIAEoDjIVLnByb3RvYnVmLlBsYXllclN0YXRlEgwKBGd1aWQYCiAB",
+ "KAMSKQoLYnVsbGV0X3R5cGUYDCABKA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBl",
+ "EhYKDmxlYXJuaW5nX3NwZWVkGA0gASgFEhMKC3RyZWF0X3NwZWVkGA4gASgF",
+ "EhEKCXBsYXllcl9pZBgPIAEoAxISCgp2aWV3X3JhbmdlGBAgASgFEg4KBnJh",
+ "ZGl1cxgRIAEoBRIUCgxkYW5nZXJfYWxlcnQYEyABKAESDQoFc2NvcmUYFCAB",
+ "KAUSFgoOdHJlYXRfcHJvZ3Jlc3MYFSABKAUSFwoPcmVzY3VlX3Byb2dyZXNz",
+ "GBYgASgFEisKDHN0dWRlbnRfdHlwZRgXIAEoDjIVLnByb3RvYnVmLlN0dWRl",
+ "bnRUeXBlEhgKEGZhY2luZ19kaXJlY3Rpb24YGCABKAESJwoEYnVmZhgZIAMo",
+ "DjIZLnByb3RvYnVmLlN0dWRlbnRCdWZmVHlwZSLpAwoQTWVzc2FnZU9mVHJp",
+ "Y2tlchIJCgF4GAEgASgFEgkKAXkYAiABKAUSDQoFc3BlZWQYAyABKAUSIgoa",
+ "dGltZV91bnRpbF9za2lsbF9hdmFpbGFibGUYBSADKAESIgoFcGxhY2UYBiAB",
+ "KA4yEy5wcm90b2J1Zi5QbGFjZVR5cGUSIAoEcHJvcBgHIAMoDjISLnByb3Rv",
+ "YnVmLlByb3BUeXBlEisKDHRyaWNrZXJfdHlwZRgIIAEoDjIVLnByb3RvYnVm",
+ "LlRyaWNrZXJUeXBlEgwKBGd1aWQYCSABKAMSDQoFc2NvcmUYCiABKAUSEQoJ",
+ "cGxheWVyX2lkGAsgASgDEhIKCnZpZXdfcmFuZ2UYDCABKAUSDgoGcmFkaXVz",
+ "GA0gASgFEisKDHBsYXllcl9zdGF0ZRgOIAEoDjIVLnByb3RvYnVmLlBsYXll",
+ "clN0YXRlEhQKDHRyaWNrX2Rlc2lyZRgPIAEoARIUCgxjbGFzc192b2x1bWUY",
+ "ECABKAESGAoQZmFjaW5nX2RpcmVjdGlvbhgRIAEoARIpCgtidWxsZXRfdHlw",
+ "ZRgSIAEoDjIULnByb3RvYnVmLkJ1bGxldFR5cGUSJwoEYnVmZhgTIAMoDjIZ",
+ "LnByb3RvYnVmLlRyaWNrZXJCdWZmVHlwZSLeAQoPTWVzc2FnZU9mQnVsbGV0",
+ "EiIKBHR5cGUYASABKA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkKAXgYAiAB",
+ "KAUSCQoBeRgDIAEoBRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgBEgwKBGd1",
+ "aWQYBSABKAMSIgoEdGVhbRgGIAEoDjIULnByb3RvYnVmLlBsYXllclR5cGUS",
+ "IgoFcGxhY2UYByABKA4yEy5wcm90b2J1Zi5QbGFjZVR5cGUSEgoKYm9tYl9y",
+ "YW5nZRgIIAEoARINCgVzcGVlZBgJIAEoBSKTAQoVTWVzc2FnZU9mQm9tYmVk",
+ "QnVsbGV0EiIKBHR5cGUYASABKA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkK",
+ "AXgYAiABKAUSCQoBeRgDIAEoBRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgB",
+ "EhIKCm1hcHBpbmdfaWQYBSABKAMSEgoKYm9tYl9yYW5nZRgGIAEoASKTAQoN",
+ "TWVzc2FnZU9mUHJvcBIgCgR0eXBlGAEgASgOMhIucHJvdG9idWYuUHJvcFR5",
+ "cGUSCQoBeBgCIAEoBRIJCgF5GAMgASgFEhgKEGZhY2luZ19kaXJlY3Rpb24Y",
+ "BCABKAESDAoEZ3VpZBgFIAEoAxIiCgVwbGFjZRgGIAEoDjITLnByb3RvYnVm",
+ "LlBsYWNlVHlwZSJ7ChNNZXNzYWdlT2ZQaWNrZWRQcm9wEiAKBHR5cGUYASAB",
+ "KA4yEi5wcm90b2J1Zi5Qcm9wVHlwZRIJCgF4GAIgASgFEgkKAXkYAyABKAUS",
+ "GAoQZmFjaW5nX2RpcmVjdGlvbhgEIAEoARISCgptYXBwaW5nX2lkGAUgASgD",
+ "IjwKEk1lc3NhZ2VPZkNsYXNzcm9vbRIJCgF4GAEgASgFEgkKAXkYAiABKAUS",
+ "EAoIcHJvZ3Jlc3MYAyABKAUiNwoNTWVzc2FnZU9mR2F0ZRIJCgF4GAEgASgF",
+ "EgkKAXkYAiABKAUSEAoIcHJvZ3Jlc3MYAyABKAUiOwoTTWVzc2FnZU9mSGlk",
+ "ZGVuR2F0ZRIJCgF4GAEgASgFEgkKAXkYAiABKAUSDgoGb3BlbmVkGAMgASgI",
+ "IkgKDU1lc3NhZ2VPZkRvb3ISCQoBeBgBIAEoBRIJCgF5GAIgASgFEg8KB2lz",
+ "X29wZW4YAyABKAgSEAoIcHJvZ3Jlc3MYBCABKAUiOAoOTWVzc2FnZU9mQ2hl",
+ "c3QSCQoBeBgBIAEoBRIJCgF5GAIgASgFEhAKCHByb2dyZXNzGAMgASgFImAK",
+ "DE1lc3NhZ2VPZk1hcBInCgNyb3cYAiADKAsyGi5wcm90b2J1Zi5NZXNzYWdl",
+ "T2ZNYXAuUm93GicKA1JvdxIgCgNjb2wYASADKA4yEy5wcm90b2J1Zi5QbGFj",
+ "ZVR5cGUiPQoNTWVzc2FnZU9mTmV3cxIMCgRuZXdzGAEgASgJEg8KB2Zyb21f",
+ "aWQYAiABKAMSDQoFdG9faWQYAyABKAMipAUKDE1lc3NhZ2VPZk9iahI1Cg9z",
+ "dHVkZW50X21lc3NhZ2UYASABKAsyGi5wcm90b2J1Zi5NZXNzYWdlT2ZTdHVk",
+ "ZW50SAASNQoPdHJpY2tlcl9tZXNzYWdlGAIgASgLMhoucHJvdG9idWYuTWVz",
+ "c2FnZU9mVHJpY2tlckgAEi8KDHByb3BfbWVzc2FnZRgDIAEoCzIXLnByb3Rv",
+ "YnVmLk1lc3NhZ2VPZlByb3BIABIzCg5idWxsZXRfbWVzc2FnZRgEIAEoCzIZ",
+ "LnByb3RvYnVmLk1lc3NhZ2VPZkJ1bGxldEgAEkAKFWJvbWJlZF9idWxsZXRf",
+ "bWVzc2FnZRgFIAEoCzIfLnByb3RvYnVmLk1lc3NhZ2VPZkJvbWJlZEJ1bGxl",
+ "dEgAEjkKEWNsYXNzcm9vbV9tZXNzYWdlGAYgASgLMhwucHJvdG9idWYuTWVz",
+ "c2FnZU9mQ2xhc3Nyb29tSAASLwoMZG9vcl9tZXNzYWdlGAcgASgLMhcucHJv",
+ "dG9idWYuTWVzc2FnZU9mRG9vckgAEi8KDGdhdGVfbWVzc2FnZRgIIAEoCzIX",
+ "LnByb3RvYnVmLk1lc3NhZ2VPZkdhdGVIABIxCg1jaGVzdF9tZXNzYWdlGAkg",
+ "ASgLMhgucHJvdG9idWYuTWVzc2FnZU9mQ2hlc3RIABI8ChNoaWRkZW5fZ2F0",
+ "ZV9tZXNzYWdlGAogASgLMh0ucHJvdG9idWYuTWVzc2FnZU9mSGlkZGVuR2F0",
+ "ZUgAEi8KDG5ld3NfbWVzc2FnZRgLIAEoCzIXLnByb3RvYnVmLk1lc3NhZ2VP",
+ "Zk5ld3NIABItCgttYXBfbWVzc2FnZRgMIAEoCzIWLnByb3RvYnVmLk1lc3Nh",
+ "Z2VPZk1hcEgAQhAKDm1lc3NhZ2Vfb2Zfb2JqIugBCgxNZXNzYWdlT2ZBbGwS",
+ "EQoJZ2FtZV90aW1lGAEgASgFEhQKDHN1YmplY3RfbGVmdBgCIAEoBRIZChFz",
+ "dHVkZW50X2dyYWR1YXRlZBgDIAEoBRIWCg5zdHVkZW50X3F1aXRlZBgEIAEo",
+ "BRIVCg1zdHVkZW50X3Njb3JlGAUgASgFEhUKDXRyaWNrZXJfc2NvcmUYBiAB",
+ "KAUSEwoLZ2F0ZV9vcGVuZWQYByABKAgSHQoVaGlkZGVuX2dhdGVfcmVmcmVz",
+ "aGVkGAggASgIEhoKEmhpZGRlbl9nYXRlX29wZW5lZBgJIAEoCCKUAQoPTWVz",
+ "c2FnZVRvQ2xpZW50EisKC29ial9tZXNzYWdlGAEgAygLMhYucHJvdG9idWYu",
+ "TWVzc2FnZU9mT2JqEicKCmdhbWVfc3RhdGUYAiABKA4yEy5wcm90b2J1Zi5H",
+ "YW1lU3RhdGUSKwoLYWxsX21lc3NhZ2UYAyABKAsyFi5wcm90b2J1Zi5NZXNz",
+ "YWdlT2ZBbGwiSgoHTW92ZVJlcxIUCgxhY3R1YWxfc3BlZWQYASABKAMSFAoM",
+ "YWN0dWFsX2FuZ2xlGAIgASgBEhMKC2FjdF9zdWNjZXNzGAMgASgIIh4KB0Jv",
+ "b2xSZXMSEwoLYWN0X3N1Y2Nlc3MYASABKAhiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Protobuf.MessageTypeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfStudent), global::Protobuf.MessageOfStudent.Parser, new[]{ "X", "Y", "Speed", "Determination", "Addiction", "TimeUntilSkillAvailable", "Place", "Prop", "PlayerState", "Guid", "BulletType", "LearningSpeed", "TreatSpeed", "PlayerId", "ViewRange", "Radius", "DangerAlert", "Score", "TreatProgress", "RescueProgress", "StudentType", "FacingDirection", "Buff" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfTricker), global::Protobuf.MessageOfTricker.Parser, new[]{ "X", "Y", "Speed", "TimeUntilSkillAvailable", "Place", "Prop", "TrickerType", "Guid", "Score", "PlayerId", "ViewRange", "Radius", "PlayerState", "TrickDesire", "ClassVolume", "FacingDirection", "BulletType", "Buff" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfBullet), global::Protobuf.MessageOfBullet.Parser, new[]{ "Type", "X", "Y", "FacingDirection", "Guid", "Team", "Place", "BombRange", "Speed" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfBombedBullet), global::Protobuf.MessageOfBombedBullet.Parser, new[]{ "Type", "X", "Y", "FacingDirection", "MappingId", "BombRange" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfProp), global::Protobuf.MessageOfProp.Parser, new[]{ "Type", "X", "Y", "FacingDirection", "Guid", "Place" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfPickedProp), global::Protobuf.MessageOfPickedProp.Parser, new[]{ "Type", "X", "Y", "FacingDirection", "MappingId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfClassroom), global::Protobuf.MessageOfClassroom.Parser, new[]{ "X", "Y", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfGate), global::Protobuf.MessageOfGate.Parser, new[]{ "X", "Y", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfHiddenGate), global::Protobuf.MessageOfHiddenGate.Parser, new[]{ "X", "Y", "Opened" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfDoor), global::Protobuf.MessageOfDoor.Parser, new[]{ "X", "Y", "IsOpen", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfChest), global::Protobuf.MessageOfChest.Parser, new[]{ "X", "Y", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap), global::Protobuf.MessageOfMap.Parser, new[]{ "Row" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap.Types.Row), global::Protobuf.MessageOfMap.Types.Row.Parser, new[]{ "Col" }, null, null, null, null)}),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfNews), global::Protobuf.MessageOfNews.Parser, new[]{ "News", "FromId", "ToId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfObj), global::Protobuf.MessageOfObj.Parser, new[]{ "StudentMessage", "TrickerMessage", "PropMessage", "BulletMessage", "BombedBulletMessage", "ClassroomMessage", "DoorMessage", "GateMessage", "ChestMessage", "HiddenGateMessage", "NewsMessage", "MapMessage" }, new[]{ "MessageOfObj" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfAll), global::Protobuf.MessageOfAll.Parser, new[]{ "GameTime", "SubjectLeft", "StudentGraduated", "StudentQuited", "StudentScore", "TrickerScore", "GateOpened", "HiddenGateRefreshed", "HiddenGateOpened" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageToClient), global::Protobuf.MessageToClient.Parser, new[]{ "ObjMessage", "GameState", "AllMessage" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MoveRes), global::Protobuf.MoveRes.Parser, new[]{ "ActualSpeed", "ActualAngle", "ActSuccess" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.BoolRes), global::Protobuf.BoolRes.Parser, new[]{ "ActSuccess" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class MessageOfStudent : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfStudent());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfStudent() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfStudent(MessageOfStudent other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ speed_ = other.speed_;
+ determination_ = other.determination_;
+ addiction_ = other.addiction_;
+ timeUntilSkillAvailable_ = other.timeUntilSkillAvailable_.Clone();
+ place_ = other.place_;
+ prop_ = other.prop_.Clone();
+ playerState_ = other.playerState_;
+ guid_ = other.guid_;
+ bulletType_ = other.bulletType_;
+ learningSpeed_ = other.learningSpeed_;
+ treatSpeed_ = other.treatSpeed_;
+ playerId_ = other.playerId_;
+ viewRange_ = other.viewRange_;
+ radius_ = other.radius_;
+ dangerAlert_ = other.dangerAlert_;
+ score_ = other.score_;
+ treatProgress_ = other.treatProgress_;
+ rescueProgress_ = other.rescueProgress_;
+ studentType_ = other.studentType_;
+ facingDirection_ = other.facingDirection_;
+ buff_ = other.buff_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfStudent Clone() {
+ return new MessageOfStudent(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "speed" field.
+ public const int SpeedFieldNumber = 3;
+ private int speed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Speed {
+ get { return speed_; }
+ set {
+ speed_ = value;
+ }
+ }
+
+ /// Field number for the "determination" field.
+ public const int DeterminationFieldNumber = 4;
+ private int determination_;
+ ///
+ /// 剩余的学习毅力,相当于血量
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Determination {
+ get { return determination_; }
+ set {
+ determination_ = value;
+ }
+ }
+
+ /// Field number for the "addiction" field.
+ public const int AddictionFieldNumber = 5;
+ private int addiction_;
+ ///
+ /// 沉迷程度,相当于淘汰进度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Addiction {
+ get { return addiction_; }
+ set {
+ addiction_ = value;
+ }
+ }
+
+ /// Field number for the "time_until_skill_available" field.
+ public const int TimeUntilSkillAvailableFieldNumber = 6;
+ private static readonly pb::FieldCodec _repeated_timeUntilSkillAvailable_codec
+ = pb::FieldCodec.ForDouble(50);
+ private readonly pbc::RepeatedField timeUntilSkillAvailable_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField TimeUntilSkillAvailable {
+ get { return timeUntilSkillAvailable_; }
+ }
+
+ /// Field number for the "place" field.
+ public const int PlaceFieldNumber = 7;
+ private global::Protobuf.PlaceType place_ = global::Protobuf.PlaceType.NullPlaceType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlaceType Place {
+ get { return place_; }
+ set {
+ place_ = value;
+ }
+ }
+
+ /// Field number for the "prop" field.
+ public const int PropFieldNumber = 8;
+ private static readonly pb::FieldCodec _repeated_prop_codec
+ = pb::FieldCodec.ForEnum(66, x => (int) x, x => (global::Protobuf.PropType) x);
+ private readonly pbc::RepeatedField prop_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Prop {
+ get { return prop_; }
+ }
+
+ /// Field number for the "player_state" field.
+ public const int PlayerStateFieldNumber = 9;
+ private global::Protobuf.PlayerState playerState_ = global::Protobuf.PlayerState.NullStatus;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlayerState PlayerState {
+ get { return playerState_; }
+ set {
+ playerState_ = value;
+ }
+ }
+
+ /// Field number for the "guid" field.
+ public const int GuidFieldNumber = 10;
+ private long guid_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Guid {
+ get { return guid_; }
+ set {
+ guid_ = value;
+ }
+ }
+
+ /// Field number for the "bullet_type" field.
+ public const int BulletTypeFieldNumber = 12;
+ private global::Protobuf.BulletType bulletType_ = global::Protobuf.BulletType.NullBulletType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.BulletType BulletType {
+ get { return bulletType_; }
+ set {
+ bulletType_ = value;
+ }
+ }
+
+ /// Field number for the "learning_speed" field.
+ public const int LearningSpeedFieldNumber = 13;
+ private int learningSpeed_;
+ ///
+ /// 修理电机的速度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int LearningSpeed {
+ get { return learningSpeed_; }
+ set {
+ learningSpeed_ = value;
+ }
+ }
+
+ /// Field number for the "treat_speed" field.
+ public const int TreatSpeedFieldNumber = 14;
+ private int treatSpeed_;
+ ///
+ /// 治疗的速度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int TreatSpeed {
+ get { return treatSpeed_; }
+ set {
+ treatSpeed_ = value;
+ }
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 15;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "view_range" field.
+ public const int ViewRangeFieldNumber = 16;
+ private int viewRange_;
+ ///
+ /// 视野距离
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ViewRange {
+ get { return viewRange_; }
+ set {
+ viewRange_ = value;
+ }
+ }
+
+ /// Field number for the "radius" field.
+ public const int RadiusFieldNumber = 17;
+ private int radius_;
+ ///
+ /// 半径
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Radius {
+ get { return radius_; }
+ set {
+ radius_ = value;
+ }
+ }
+
+ /// Field number for the "danger_alert" field.
+ public const int DangerAlertFieldNumber = 19;
+ private double dangerAlert_;
+ ///
+ /// 危险警报,在捣蛋鬼靠近时会有预警
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double DangerAlert {
+ get { return dangerAlert_; }
+ set {
+ dangerAlert_ = value;
+ }
+ }
+
+ /// Field number for the "score" field.
+ public const int ScoreFieldNumber = 20;
+ private int score_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Score {
+ get { return score_; }
+ set {
+ score_ = value;
+ }
+ }
+
+ /// Field number for the "treat_progress" field.
+ public const int TreatProgressFieldNumber = 21;
+ private int treatProgress_;
+ ///
+ /// 治疗进度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int TreatProgress {
+ get { return treatProgress_; }
+ set {
+ treatProgress_ = value;
+ }
+ }
+
+ /// Field number for the "rescue_progress" field.
+ public const int RescueProgressFieldNumber = 22;
+ private int rescueProgress_;
+ ///
+ /// 救援进度
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int RescueProgress {
+ get { return rescueProgress_; }
+ set {
+ rescueProgress_ = value;
+ }
+ }
+
+ /// Field number for the "student_type" field.
+ public const int StudentTypeFieldNumber = 23;
+ private global::Protobuf.StudentType studentType_ = global::Protobuf.StudentType.NullStudentType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.StudentType StudentType {
+ get { return studentType_; }
+ set {
+ studentType_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 24;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "buff" field.
+ public const int BuffFieldNumber = 25;
+ private static readonly pb::FieldCodec _repeated_buff_codec
+ = pb::FieldCodec.ForEnum(202, x => (int) x, x => (global::Protobuf.StudentBuffType) x);
+ private readonly pbc::RepeatedField buff_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Buff {
+ get { return buff_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfStudent);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfStudent other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Speed != other.Speed) return false;
+ if (Determination != other.Determination) return false;
+ if (Addiction != other.Addiction) return false;
+ if(!timeUntilSkillAvailable_.Equals(other.timeUntilSkillAvailable_)) return false;
+ if (Place != other.Place) return false;
+ if(!prop_.Equals(other.prop_)) return false;
+ if (PlayerState != other.PlayerState) return false;
+ if (Guid != other.Guid) return false;
+ if (BulletType != other.BulletType) return false;
+ if (LearningSpeed != other.LearningSpeed) return false;
+ if (TreatSpeed != other.TreatSpeed) return false;
+ if (PlayerId != other.PlayerId) return false;
+ if (ViewRange != other.ViewRange) return false;
+ if (Radius != other.Radius) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DangerAlert, other.DangerAlert)) return false;
+ if (Score != other.Score) return false;
+ if (TreatProgress != other.TreatProgress) return false;
+ if (RescueProgress != other.RescueProgress) return false;
+ if (StudentType != other.StudentType) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if(!buff_.Equals(other.buff_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Speed != 0) hash ^= Speed.GetHashCode();
+ if (Determination != 0) hash ^= Determination.GetHashCode();
+ if (Addiction != 0) hash ^= Addiction.GetHashCode();
+ hash ^= timeUntilSkillAvailable_.GetHashCode();
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) hash ^= Place.GetHashCode();
+ hash ^= prop_.GetHashCode();
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) hash ^= PlayerState.GetHashCode();
+ if (Guid != 0L) hash ^= Guid.GetHashCode();
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) hash ^= BulletType.GetHashCode();
+ if (LearningSpeed != 0) hash ^= LearningSpeed.GetHashCode();
+ if (TreatSpeed != 0) hash ^= TreatSpeed.GetHashCode();
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (ViewRange != 0) hash ^= ViewRange.GetHashCode();
+ if (Radius != 0) hash ^= Radius.GetHashCode();
+ if (DangerAlert != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DangerAlert);
+ if (Score != 0) hash ^= Score.GetHashCode();
+ if (TreatProgress != 0) hash ^= TreatProgress.GetHashCode();
+ if (RescueProgress != 0) hash ^= RescueProgress.GetHashCode();
+ if (StudentType != global::Protobuf.StudentType.NullStudentType) hash ^= StudentType.GetHashCode();
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ hash ^= buff_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Speed);
+ }
+ if (Determination != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Determination);
+ }
+ if (Addiction != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Addiction);
+ }
+ timeUntilSkillAvailable_.WriteTo(output, _repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(56);
+ output.WriteEnum((int) Place);
+ }
+ prop_.WriteTo(output, _repeated_prop_codec);
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ output.WriteRawTag(72);
+ output.WriteEnum((int) PlayerState);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(80);
+ output.WriteInt64(Guid);
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(96);
+ output.WriteEnum((int) BulletType);
+ }
+ if (LearningSpeed != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(LearningSpeed);
+ }
+ if (TreatSpeed != 0) {
+ output.WriteRawTag(112);
+ output.WriteInt32(TreatSpeed);
+ }
+ if (PlayerId != 0L) {
+ output.WriteRawTag(120);
+ output.WriteInt64(PlayerId);
+ }
+ if (ViewRange != 0) {
+ output.WriteRawTag(128, 1);
+ output.WriteInt32(ViewRange);
+ }
+ if (Radius != 0) {
+ output.WriteRawTag(136, 1);
+ output.WriteInt32(Radius);
+ }
+ if (DangerAlert != 0D) {
+ output.WriteRawTag(153, 1);
+ output.WriteDouble(DangerAlert);
+ }
+ if (Score != 0) {
+ output.WriteRawTag(160, 1);
+ output.WriteInt32(Score);
+ }
+ if (TreatProgress != 0) {
+ output.WriteRawTag(168, 1);
+ output.WriteInt32(TreatProgress);
+ }
+ if (RescueProgress != 0) {
+ output.WriteRawTag(176, 1);
+ output.WriteInt32(RescueProgress);
+ }
+ if (StudentType != global::Protobuf.StudentType.NullStudentType) {
+ output.WriteRawTag(184, 1);
+ output.WriteEnum((int) StudentType);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(193, 1);
+ output.WriteDouble(FacingDirection);
+ }
+ buff_.WriteTo(output, _repeated_buff_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Speed);
+ }
+ if (Determination != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Determination);
+ }
+ if (Addiction != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(Addiction);
+ }
+ timeUntilSkillAvailable_.WriteTo(ref output, _repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(56);
+ output.WriteEnum((int) Place);
+ }
+ prop_.WriteTo(ref output, _repeated_prop_codec);
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ output.WriteRawTag(72);
+ output.WriteEnum((int) PlayerState);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(80);
+ output.WriteInt64(Guid);
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(96);
+ output.WriteEnum((int) BulletType);
+ }
+ if (LearningSpeed != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(LearningSpeed);
+ }
+ if (TreatSpeed != 0) {
+ output.WriteRawTag(112);
+ output.WriteInt32(TreatSpeed);
+ }
+ if (PlayerId != 0L) {
+ output.WriteRawTag(120);
+ output.WriteInt64(PlayerId);
+ }
+ if (ViewRange != 0) {
+ output.WriteRawTag(128, 1);
+ output.WriteInt32(ViewRange);
+ }
+ if (Radius != 0) {
+ output.WriteRawTag(136, 1);
+ output.WriteInt32(Radius);
+ }
+ if (DangerAlert != 0D) {
+ output.WriteRawTag(153, 1);
+ output.WriteDouble(DangerAlert);
+ }
+ if (Score != 0) {
+ output.WriteRawTag(160, 1);
+ output.WriteInt32(Score);
+ }
+ if (TreatProgress != 0) {
+ output.WriteRawTag(168, 1);
+ output.WriteInt32(TreatProgress);
+ }
+ if (RescueProgress != 0) {
+ output.WriteRawTag(176, 1);
+ output.WriteInt32(RescueProgress);
+ }
+ if (StudentType != global::Protobuf.StudentType.NullStudentType) {
+ output.WriteRawTag(184, 1);
+ output.WriteEnum((int) StudentType);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(193, 1);
+ output.WriteDouble(FacingDirection);
+ }
+ buff_.WriteTo(ref output, _repeated_buff_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Speed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Speed);
+ }
+ if (Determination != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Determination);
+ }
+ if (Addiction != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Addiction);
+ }
+ size += timeUntilSkillAvailable_.CalculateSize(_repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Place);
+ }
+ size += prop_.CalculateSize(_repeated_prop_codec);
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerState);
+ }
+ if (Guid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid);
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BulletType);
+ }
+ if (LearningSpeed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(LearningSpeed);
+ }
+ if (TreatSpeed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(TreatSpeed);
+ }
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (ViewRange != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(ViewRange);
+ }
+ if (Radius != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(Radius);
+ }
+ if (DangerAlert != 0D) {
+ size += 2 + 8;
+ }
+ if (Score != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(Score);
+ }
+ if (TreatProgress != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(TreatProgress);
+ }
+ if (RescueProgress != 0) {
+ size += 2 + pb::CodedOutputStream.ComputeInt32Size(RescueProgress);
+ }
+ if (StudentType != global::Protobuf.StudentType.NullStudentType) {
+ size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) StudentType);
+ }
+ if (FacingDirection != 0D) {
+ size += 2 + 8;
+ }
+ size += buff_.CalculateSize(_repeated_buff_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfStudent other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Speed != 0) {
+ Speed = other.Speed;
+ }
+ if (other.Determination != 0) {
+ Determination = other.Determination;
+ }
+ if (other.Addiction != 0) {
+ Addiction = other.Addiction;
+ }
+ timeUntilSkillAvailable_.Add(other.timeUntilSkillAvailable_);
+ if (other.Place != global::Protobuf.PlaceType.NullPlaceType) {
+ Place = other.Place;
+ }
+ prop_.Add(other.prop_);
+ if (other.PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ PlayerState = other.PlayerState;
+ }
+ if (other.Guid != 0L) {
+ Guid = other.Guid;
+ }
+ if (other.BulletType != global::Protobuf.BulletType.NullBulletType) {
+ BulletType = other.BulletType;
+ }
+ if (other.LearningSpeed != 0) {
+ LearningSpeed = other.LearningSpeed;
+ }
+ if (other.TreatSpeed != 0) {
+ TreatSpeed = other.TreatSpeed;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.ViewRange != 0) {
+ ViewRange = other.ViewRange;
+ }
+ if (other.Radius != 0) {
+ Radius = other.Radius;
+ }
+ if (other.DangerAlert != 0D) {
+ DangerAlert = other.DangerAlert;
+ }
+ if (other.Score != 0) {
+ Score = other.Score;
+ }
+ if (other.TreatProgress != 0) {
+ TreatProgress = other.TreatProgress;
+ }
+ if (other.RescueProgress != 0) {
+ RescueProgress = other.RescueProgress;
+ }
+ if (other.StudentType != global::Protobuf.StudentType.NullStudentType) {
+ StudentType = other.StudentType;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ buff_.Add(other.buff_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Determination = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ Addiction = input.ReadInt32();
+ break;
+ }
+ case 50:
+ case 49: {
+ timeUntilSkillAvailable_.AddEntriesFrom(input, _repeated_timeUntilSkillAvailable_codec);
+ break;
+ }
+ case 56: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 66:
+ case 64: {
+ prop_.AddEntriesFrom(input, _repeated_prop_codec);
+ break;
+ }
+ case 72: {
+ PlayerState = (global::Protobuf.PlayerState) input.ReadEnum();
+ break;
+ }
+ case 80: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 96: {
+ BulletType = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 104: {
+ LearningSpeed = input.ReadInt32();
+ break;
+ }
+ case 112: {
+ TreatSpeed = input.ReadInt32();
+ break;
+ }
+ case 120: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 128: {
+ ViewRange = input.ReadInt32();
+ break;
+ }
+ case 136: {
+ Radius = input.ReadInt32();
+ break;
+ }
+ case 153: {
+ DangerAlert = input.ReadDouble();
+ break;
+ }
+ case 160: {
+ Score = input.ReadInt32();
+ break;
+ }
+ case 168: {
+ TreatProgress = input.ReadInt32();
+ break;
+ }
+ case 176: {
+ RescueProgress = input.ReadInt32();
+ break;
+ }
+ case 184: {
+ StudentType = (global::Protobuf.StudentType) input.ReadEnum();
+ break;
+ }
+ case 193: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 202:
+ case 200: {
+ buff_.AddEntriesFrom(input, _repeated_buff_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ Determination = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ Addiction = input.ReadInt32();
+ break;
+ }
+ case 50:
+ case 49: {
+ timeUntilSkillAvailable_.AddEntriesFrom(ref input, _repeated_timeUntilSkillAvailable_codec);
+ break;
+ }
+ case 56: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 66:
+ case 64: {
+ prop_.AddEntriesFrom(ref input, _repeated_prop_codec);
+ break;
+ }
+ case 72: {
+ PlayerState = (global::Protobuf.PlayerState) input.ReadEnum();
+ break;
+ }
+ case 80: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 96: {
+ BulletType = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 104: {
+ LearningSpeed = input.ReadInt32();
+ break;
+ }
+ case 112: {
+ TreatSpeed = input.ReadInt32();
+ break;
+ }
+ case 120: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 128: {
+ ViewRange = input.ReadInt32();
+ break;
+ }
+ case 136: {
+ Radius = input.ReadInt32();
+ break;
+ }
+ case 153: {
+ DangerAlert = input.ReadDouble();
+ break;
+ }
+ case 160: {
+ Score = input.ReadInt32();
+ break;
+ }
+ case 168: {
+ TreatProgress = input.ReadInt32();
+ break;
+ }
+ case 176: {
+ RescueProgress = input.ReadInt32();
+ break;
+ }
+ case 184: {
+ StudentType = (global::Protobuf.StudentType) input.ReadEnum();
+ break;
+ }
+ case 193: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 202:
+ case 200: {
+ buff_.AddEntriesFrom(ref input, _repeated_buff_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfTricker : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfTricker());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfTricker() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfTricker(MessageOfTricker other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ speed_ = other.speed_;
+ timeUntilSkillAvailable_ = other.timeUntilSkillAvailable_.Clone();
+ place_ = other.place_;
+ prop_ = other.prop_.Clone();
+ trickerType_ = other.trickerType_;
+ guid_ = other.guid_;
+ score_ = other.score_;
+ playerId_ = other.playerId_;
+ viewRange_ = other.viewRange_;
+ radius_ = other.radius_;
+ playerState_ = other.playerState_;
+ trickDesire_ = other.trickDesire_;
+ classVolume_ = other.classVolume_;
+ facingDirection_ = other.facingDirection_;
+ bulletType_ = other.bulletType_;
+ buff_ = other.buff_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfTricker Clone() {
+ return new MessageOfTricker(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "speed" field.
+ public const int SpeedFieldNumber = 3;
+ private int speed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Speed {
+ get { return speed_; }
+ set {
+ speed_ = value;
+ }
+ }
+
+ /// Field number for the "time_until_skill_available" field.
+ public const int TimeUntilSkillAvailableFieldNumber = 5;
+ private static readonly pb::FieldCodec _repeated_timeUntilSkillAvailable_codec
+ = pb::FieldCodec.ForDouble(42);
+ private readonly pbc::RepeatedField timeUntilSkillAvailable_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField TimeUntilSkillAvailable {
+ get { return timeUntilSkillAvailable_; }
+ }
+
+ /// Field number for the "place" field.
+ public const int PlaceFieldNumber = 6;
+ private global::Protobuf.PlaceType place_ = global::Protobuf.PlaceType.NullPlaceType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlaceType Place {
+ get { return place_; }
+ set {
+ place_ = value;
+ }
+ }
+
+ /// Field number for the "prop" field.
+ public const int PropFieldNumber = 7;
+ private static readonly pb::FieldCodec _repeated_prop_codec
+ = pb::FieldCodec.ForEnum(58, x => (int) x, x => (global::Protobuf.PropType) x);
+ private readonly pbc::RepeatedField prop_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Prop {
+ get { return prop_; }
+ }
+
+ /// Field number for the "tricker_type" field.
+ public const int TrickerTypeFieldNumber = 8;
+ private global::Protobuf.TrickerType trickerType_ = global::Protobuf.TrickerType.NullTrickerType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.TrickerType TrickerType {
+ get { return trickerType_; }
+ set {
+ trickerType_ = value;
+ }
+ }
+
+ /// Field number for the "guid" field.
+ public const int GuidFieldNumber = 9;
+ private long guid_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Guid {
+ get { return guid_; }
+ set {
+ guid_ = value;
+ }
+ }
+
+ /// Field number for the "score" field.
+ public const int ScoreFieldNumber = 10;
+ private int score_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Score {
+ get { return score_; }
+ set {
+ score_ = value;
+ }
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 11;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "view_range" field.
+ public const int ViewRangeFieldNumber = 12;
+ private int viewRange_;
+ ///
+ /// 视野距离
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int ViewRange {
+ get { return viewRange_; }
+ set {
+ viewRange_ = value;
+ }
+ }
+
+ /// Field number for the "radius" field.
+ public const int RadiusFieldNumber = 13;
+ private int radius_;
+ ///
+ /// 半径
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Radius {
+ get { return radius_; }
+ set {
+ radius_ = value;
+ }
+ }
+
+ /// Field number for the "player_state" field.
+ public const int PlayerStateFieldNumber = 14;
+ private global::Protobuf.PlayerState playerState_ = global::Protobuf.PlayerState.NullStatus;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlayerState PlayerState {
+ get { return playerState_; }
+ set {
+ playerState_ = value;
+ }
+ }
+
+ /// Field number for the "trick_desire" field.
+ public const int TrickDesireFieldNumber = 15;
+ private double trickDesire_;
+ ///
+ ///bgm
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double TrickDesire {
+ get { return trickDesire_; }
+ set {
+ trickDesire_ = value;
+ }
+ }
+
+ /// Field number for the "class_volume" field.
+ public const int ClassVolumeFieldNumber = 16;
+ private double classVolume_;
+ ///
+ ///bgm
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double ClassVolume {
+ get { return classVolume_; }
+ set {
+ classVolume_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 17;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "bullet_type" field.
+ public const int BulletTypeFieldNumber = 18;
+ private global::Protobuf.BulletType bulletType_ = global::Protobuf.BulletType.NullBulletType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.BulletType BulletType {
+ get { return bulletType_; }
+ set {
+ bulletType_ = value;
+ }
+ }
+
+ /// Field number for the "buff" field.
+ public const int BuffFieldNumber = 19;
+ private static readonly pb::FieldCodec _repeated_buff_codec
+ = pb::FieldCodec.ForEnum(154, x => (int) x, x => (global::Protobuf.TrickerBuffType) x);
+ private readonly pbc::RepeatedField buff_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Buff {
+ get { return buff_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfTricker);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfTricker other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Speed != other.Speed) return false;
+ if(!timeUntilSkillAvailable_.Equals(other.timeUntilSkillAvailable_)) return false;
+ if (Place != other.Place) return false;
+ if(!prop_.Equals(other.prop_)) return false;
+ if (TrickerType != other.TrickerType) return false;
+ if (Guid != other.Guid) return false;
+ if (Score != other.Score) return false;
+ if (PlayerId != other.PlayerId) return false;
+ if (ViewRange != other.ViewRange) return false;
+ if (Radius != other.Radius) return false;
+ if (PlayerState != other.PlayerState) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TrickDesire, other.TrickDesire)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClassVolume, other.ClassVolume)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if (BulletType != other.BulletType) return false;
+ if(!buff_.Equals(other.buff_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Speed != 0) hash ^= Speed.GetHashCode();
+ hash ^= timeUntilSkillAvailable_.GetHashCode();
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) hash ^= Place.GetHashCode();
+ hash ^= prop_.GetHashCode();
+ if (TrickerType != global::Protobuf.TrickerType.NullTrickerType) hash ^= TrickerType.GetHashCode();
+ if (Guid != 0L) hash ^= Guid.GetHashCode();
+ if (Score != 0) hash ^= Score.GetHashCode();
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (ViewRange != 0) hash ^= ViewRange.GetHashCode();
+ if (Radius != 0) hash ^= Radius.GetHashCode();
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) hash ^= PlayerState.GetHashCode();
+ if (TrickDesire != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TrickDesire);
+ if (ClassVolume != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClassVolume);
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) hash ^= BulletType.GetHashCode();
+ hash ^= buff_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Speed);
+ }
+ timeUntilSkillAvailable_.WriteTo(output, _repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Place);
+ }
+ prop_.WriteTo(output, _repeated_prop_codec);
+ if (TrickerType != global::Protobuf.TrickerType.NullTrickerType) {
+ output.WriteRawTag(64);
+ output.WriteEnum((int) TrickerType);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(72);
+ output.WriteInt64(Guid);
+ }
+ if (Score != 0) {
+ output.WriteRawTag(80);
+ output.WriteInt32(Score);
+ }
+ if (PlayerId != 0L) {
+ output.WriteRawTag(88);
+ output.WriteInt64(PlayerId);
+ }
+ if (ViewRange != 0) {
+ output.WriteRawTag(96);
+ output.WriteInt32(ViewRange);
+ }
+ if (Radius != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(Radius);
+ }
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ output.WriteRawTag(112);
+ output.WriteEnum((int) PlayerState);
+ }
+ if (TrickDesire != 0D) {
+ output.WriteRawTag(121);
+ output.WriteDouble(TrickDesire);
+ }
+ if (ClassVolume != 0D) {
+ output.WriteRawTag(129, 1);
+ output.WriteDouble(ClassVolume);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(137, 1);
+ output.WriteDouble(FacingDirection);
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(144, 1);
+ output.WriteEnum((int) BulletType);
+ }
+ buff_.WriteTo(output, _repeated_buff_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Speed);
+ }
+ timeUntilSkillAvailable_.WriteTo(ref output, _repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Place);
+ }
+ prop_.WriteTo(ref output, _repeated_prop_codec);
+ if (TrickerType != global::Protobuf.TrickerType.NullTrickerType) {
+ output.WriteRawTag(64);
+ output.WriteEnum((int) TrickerType);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(72);
+ output.WriteInt64(Guid);
+ }
+ if (Score != 0) {
+ output.WriteRawTag(80);
+ output.WriteInt32(Score);
+ }
+ if (PlayerId != 0L) {
+ output.WriteRawTag(88);
+ output.WriteInt64(PlayerId);
+ }
+ if (ViewRange != 0) {
+ output.WriteRawTag(96);
+ output.WriteInt32(ViewRange);
+ }
+ if (Radius != 0) {
+ output.WriteRawTag(104);
+ output.WriteInt32(Radius);
+ }
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ output.WriteRawTag(112);
+ output.WriteEnum((int) PlayerState);
+ }
+ if (TrickDesire != 0D) {
+ output.WriteRawTag(121);
+ output.WriteDouble(TrickDesire);
+ }
+ if (ClassVolume != 0D) {
+ output.WriteRawTag(129, 1);
+ output.WriteDouble(ClassVolume);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(137, 1);
+ output.WriteDouble(FacingDirection);
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(144, 1);
+ output.WriteEnum((int) BulletType);
+ }
+ buff_.WriteTo(ref output, _repeated_buff_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Speed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Speed);
+ }
+ size += timeUntilSkillAvailable_.CalculateSize(_repeated_timeUntilSkillAvailable_codec);
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Place);
+ }
+ size += prop_.CalculateSize(_repeated_prop_codec);
+ if (TrickerType != global::Protobuf.TrickerType.NullTrickerType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrickerType);
+ }
+ if (Guid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid);
+ }
+ if (Score != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score);
+ }
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (ViewRange != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(ViewRange);
+ }
+ if (Radius != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Radius);
+ }
+ if (PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerState);
+ }
+ if (TrickDesire != 0D) {
+ size += 1 + 8;
+ }
+ if (ClassVolume != 0D) {
+ size += 2 + 8;
+ }
+ if (FacingDirection != 0D) {
+ size += 2 + 8;
+ }
+ if (BulletType != global::Protobuf.BulletType.NullBulletType) {
+ size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BulletType);
+ }
+ size += buff_.CalculateSize(_repeated_buff_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfTricker other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Speed != 0) {
+ Speed = other.Speed;
+ }
+ timeUntilSkillAvailable_.Add(other.timeUntilSkillAvailable_);
+ if (other.Place != global::Protobuf.PlaceType.NullPlaceType) {
+ Place = other.Place;
+ }
+ prop_.Add(other.prop_);
+ if (other.TrickerType != global::Protobuf.TrickerType.NullTrickerType) {
+ TrickerType = other.TrickerType;
+ }
+ if (other.Guid != 0L) {
+ Guid = other.Guid;
+ }
+ if (other.Score != 0) {
+ Score = other.Score;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.ViewRange != 0) {
+ ViewRange = other.ViewRange;
+ }
+ if (other.Radius != 0) {
+ Radius = other.Radius;
+ }
+ if (other.PlayerState != global::Protobuf.PlayerState.NullStatus) {
+ PlayerState = other.PlayerState;
+ }
+ if (other.TrickDesire != 0D) {
+ TrickDesire = other.TrickDesire;
+ }
+ if (other.ClassVolume != 0D) {
+ ClassVolume = other.ClassVolume;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ if (other.BulletType != global::Protobuf.BulletType.NullBulletType) {
+ BulletType = other.BulletType;
+ }
+ buff_.Add(other.buff_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ case 42:
+ case 41: {
+ timeUntilSkillAvailable_.AddEntriesFrom(input, _repeated_timeUntilSkillAvailable_codec);
+ break;
+ }
+ case 48: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 58:
+ case 56: {
+ prop_.AddEntriesFrom(input, _repeated_prop_codec);
+ break;
+ }
+ case 64: {
+ TrickerType = (global::Protobuf.TrickerType) input.ReadEnum();
+ break;
+ }
+ case 72: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 80: {
+ Score = input.ReadInt32();
+ break;
+ }
+ case 88: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 96: {
+ ViewRange = input.ReadInt32();
+ break;
+ }
+ case 104: {
+ Radius = input.ReadInt32();
+ break;
+ }
+ case 112: {
+ PlayerState = (global::Protobuf.PlayerState) input.ReadEnum();
+ break;
+ }
+ case 121: {
+ TrickDesire = input.ReadDouble();
+ break;
+ }
+ case 129: {
+ ClassVolume = input.ReadDouble();
+ break;
+ }
+ case 137: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 144: {
+ BulletType = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 154:
+ case 152: {
+ buff_.AddEntriesFrom(input, _repeated_buff_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ case 42:
+ case 41: {
+ timeUntilSkillAvailable_.AddEntriesFrom(ref input, _repeated_timeUntilSkillAvailable_codec);
+ break;
+ }
+ case 48: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 58:
+ case 56: {
+ prop_.AddEntriesFrom(ref input, _repeated_prop_codec);
+ break;
+ }
+ case 64: {
+ TrickerType = (global::Protobuf.TrickerType) input.ReadEnum();
+ break;
+ }
+ case 72: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 80: {
+ Score = input.ReadInt32();
+ break;
+ }
+ case 88: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 96: {
+ ViewRange = input.ReadInt32();
+ break;
+ }
+ case 104: {
+ Radius = input.ReadInt32();
+ break;
+ }
+ case 112: {
+ PlayerState = (global::Protobuf.PlayerState) input.ReadEnum();
+ break;
+ }
+ case 121: {
+ TrickDesire = input.ReadDouble();
+ break;
+ }
+ case 129: {
+ ClassVolume = input.ReadDouble();
+ break;
+ }
+ case 137: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 144: {
+ BulletType = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 154:
+ case 152: {
+ buff_.AddEntriesFrom(ref input, _repeated_buff_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfBullet : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfBullet());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBullet() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBullet(MessageOfBullet other) : this() {
+ type_ = other.type_;
+ x_ = other.x_;
+ y_ = other.y_;
+ facingDirection_ = other.facingDirection_;
+ guid_ = other.guid_;
+ team_ = other.team_;
+ place_ = other.place_;
+ bombRange_ = other.bombRange_;
+ speed_ = other.speed_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBullet Clone() {
+ return new MessageOfBullet(this);
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private global::Protobuf.BulletType type_ = global::Protobuf.BulletType.NullBulletType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.BulletType Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 2;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 3;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 4;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "guid" field.
+ public const int GuidFieldNumber = 5;
+ private long guid_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Guid {
+ get { return guid_; }
+ set {
+ guid_ = value;
+ }
+ }
+
+ /// Field number for the "team" field.
+ public const int TeamFieldNumber = 6;
+ private global::Protobuf.PlayerType team_ = global::Protobuf.PlayerType.NullPlayerType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlayerType Team {
+ get { return team_; }
+ set {
+ team_ = value;
+ }
+ }
+
+ /// Field number for the "place" field.
+ public const int PlaceFieldNumber = 7;
+ private global::Protobuf.PlaceType place_ = global::Protobuf.PlaceType.NullPlaceType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlaceType Place {
+ get { return place_; }
+ set {
+ place_ = value;
+ }
+ }
+
+ /// Field number for the "bomb_range" field.
+ public const int BombRangeFieldNumber = 8;
+ private double bombRange_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double BombRange {
+ get { return bombRange_; }
+ set {
+ bombRange_ = value;
+ }
+ }
+
+ /// Field number for the "speed" field.
+ public const int SpeedFieldNumber = 9;
+ private int speed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Speed {
+ get { return speed_; }
+ set {
+ speed_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfBullet);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfBullet other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Type != other.Type) return false;
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if (Guid != other.Guid) return false;
+ if (Team != other.Team) return false;
+ if (Place != other.Place) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BombRange, other.BombRange)) return false;
+ if (Speed != other.Speed) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Type != global::Protobuf.BulletType.NullBulletType) hash ^= Type.GetHashCode();
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ if (Guid != 0L) hash ^= Guid.GetHashCode();
+ if (Team != global::Protobuf.PlayerType.NullPlayerType) hash ^= Team.GetHashCode();
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) hash ^= Place.GetHashCode();
+ if (BombRange != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BombRange);
+ if (Speed != 0) hash ^= Speed.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Guid);
+ }
+ if (Team != global::Protobuf.PlayerType.NullPlayerType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Team);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(56);
+ output.WriteEnum((int) Place);
+ }
+ if (BombRange != 0D) {
+ output.WriteRawTag(65);
+ output.WriteDouble(BombRange);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(72);
+ output.WriteInt32(Speed);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Guid);
+ }
+ if (Team != global::Protobuf.PlayerType.NullPlayerType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Team);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(56);
+ output.WriteEnum((int) Place);
+ }
+ if (BombRange != 0D) {
+ output.WriteRawTag(65);
+ output.WriteDouble(BombRange);
+ }
+ if (Speed != 0) {
+ output.WriteRawTag(72);
+ output.WriteInt32(Speed);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ }
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (FacingDirection != 0D) {
+ size += 1 + 8;
+ }
+ if (Guid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid);
+ }
+ if (Team != global::Protobuf.PlayerType.NullPlayerType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Team);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Place);
+ }
+ if (BombRange != 0D) {
+ size += 1 + 8;
+ }
+ if (Speed != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Speed);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfBullet other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Type != global::Protobuf.BulletType.NullBulletType) {
+ Type = other.Type;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ if (other.Guid != 0L) {
+ Guid = other.Guid;
+ }
+ if (other.Team != global::Protobuf.PlayerType.NullPlayerType) {
+ Team = other.Team;
+ }
+ if (other.Place != global::Protobuf.PlaceType.NullPlaceType) {
+ Place = other.Place;
+ }
+ if (other.BombRange != 0D) {
+ BombRange = other.BombRange;
+ }
+ if (other.Speed != 0) {
+ Speed = other.Speed;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 48: {
+ Team = (global::Protobuf.PlayerType) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 65: {
+ BombRange = input.ReadDouble();
+ break;
+ }
+ case 72: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 48: {
+ Team = (global::Protobuf.PlayerType) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ case 65: {
+ BombRange = input.ReadDouble();
+ break;
+ }
+ case 72: {
+ Speed = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfBombedBullet : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfBombedBullet());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBombedBullet() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBombedBullet(MessageOfBombedBullet other) : this() {
+ type_ = other.type_;
+ x_ = other.x_;
+ y_ = other.y_;
+ facingDirection_ = other.facingDirection_;
+ mappingId_ = other.mappingId_;
+ bombRange_ = other.bombRange_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfBombedBullet Clone() {
+ return new MessageOfBombedBullet(this);
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private global::Protobuf.BulletType type_ = global::Protobuf.BulletType.NullBulletType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.BulletType Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 2;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 3;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 4;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "mapping_id" field.
+ public const int MappingIdFieldNumber = 5;
+ private long mappingId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long MappingId {
+ get { return mappingId_; }
+ set {
+ mappingId_ = value;
+ }
+ }
+
+ /// Field number for the "bomb_range" field.
+ public const int BombRangeFieldNumber = 6;
+ private double bombRange_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double BombRange {
+ get { return bombRange_; }
+ set {
+ bombRange_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfBombedBullet);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfBombedBullet other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Type != other.Type) return false;
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if (MappingId != other.MappingId) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BombRange, other.BombRange)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Type != global::Protobuf.BulletType.NullBulletType) hash ^= Type.GetHashCode();
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ if (MappingId != 0L) hash ^= MappingId.GetHashCode();
+ if (BombRange != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BombRange);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (MappingId != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(MappingId);
+ }
+ if (BombRange != 0D) {
+ output.WriteRawTag(49);
+ output.WriteDouble(BombRange);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (MappingId != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(MappingId);
+ }
+ if (BombRange != 0D) {
+ output.WriteRawTag(49);
+ output.WriteDouble(BombRange);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Type != global::Protobuf.BulletType.NullBulletType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ }
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (FacingDirection != 0D) {
+ size += 1 + 8;
+ }
+ if (MappingId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(MappingId);
+ }
+ if (BombRange != 0D) {
+ size += 1 + 8;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfBombedBullet other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Type != global::Protobuf.BulletType.NullBulletType) {
+ Type = other.Type;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ if (other.MappingId != 0L) {
+ MappingId = other.MappingId;
+ }
+ if (other.BombRange != 0D) {
+ BombRange = other.BombRange;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ MappingId = input.ReadInt64();
+ break;
+ }
+ case 49: {
+ BombRange = input.ReadDouble();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.BulletType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ MappingId = input.ReadInt64();
+ break;
+ }
+ case 49: {
+ BombRange = input.ReadDouble();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfProp : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfProp());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfProp() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfProp(MessageOfProp other) : this() {
+ type_ = other.type_;
+ x_ = other.x_;
+ y_ = other.y_;
+ facingDirection_ = other.facingDirection_;
+ guid_ = other.guid_;
+ place_ = other.place_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfProp Clone() {
+ return new MessageOfProp(this);
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private global::Protobuf.PropType type_ = global::Protobuf.PropType.NullPropType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PropType Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 2;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 3;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 4;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "guid" field.
+ public const int GuidFieldNumber = 5;
+ private long guid_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long Guid {
+ get { return guid_; }
+ set {
+ guid_ = value;
+ }
+ }
+
+ /// Field number for the "place" field.
+ public const int PlaceFieldNumber = 6;
+ private global::Protobuf.PlaceType place_ = global::Protobuf.PlaceType.NullPlaceType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlaceType Place {
+ get { return place_; }
+ set {
+ place_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfProp);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfProp other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Type != other.Type) return false;
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if (Guid != other.Guid) return false;
+ if (Place != other.Place) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Type != global::Protobuf.PropType.NullPropType) hash ^= Type.GetHashCode();
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ if (Guid != 0L) hash ^= Guid.GetHashCode();
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) hash ^= Place.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Guid);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Place);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (Guid != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(Guid);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) Place);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ }
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (FacingDirection != 0D) {
+ size += 1 + 8;
+ }
+ if (Guid != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid);
+ }
+ if (Place != global::Protobuf.PlaceType.NullPlaceType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Place);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfProp other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Type != global::Protobuf.PropType.NullPropType) {
+ Type = other.Type;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ if (other.Guid != 0L) {
+ Guid = other.Guid;
+ }
+ if (other.Place != global::Protobuf.PlaceType.NullPlaceType) {
+ Place = other.Place;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 48: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ Guid = input.ReadInt64();
+ break;
+ }
+ case 48: {
+ Place = (global::Protobuf.PlaceType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfPickedProp : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfPickedProp());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfPickedProp() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfPickedProp(MessageOfPickedProp other) : this() {
+ type_ = other.type_;
+ x_ = other.x_;
+ y_ = other.y_;
+ facingDirection_ = other.facingDirection_;
+ mappingId_ = other.mappingId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfPickedProp Clone() {
+ return new MessageOfPickedProp(this);
+ }
+
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private global::Protobuf.PropType type_ = global::Protobuf.PropType.NullPropType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PropType Type {
+ get { return type_; }
+ set {
+ type_ = value;
+ }
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 2;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 3;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "facing_direction" field.
+ public const int FacingDirectionFieldNumber = 4;
+ private double facingDirection_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double FacingDirection {
+ get { return facingDirection_; }
+ set {
+ facingDirection_ = value;
+ }
+ }
+
+ /// Field number for the "mapping_id" field.
+ public const int MappingIdFieldNumber = 5;
+ private long mappingId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long MappingId {
+ get { return mappingId_; }
+ set {
+ mappingId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfPickedProp);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfPickedProp other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Type != other.Type) return false;
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false;
+ if (MappingId != other.MappingId) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (Type != global::Protobuf.PropType.NullPropType) hash ^= Type.GetHashCode();
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection);
+ if (MappingId != 0L) hash ^= MappingId.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (MappingId != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(MappingId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(8);
+ output.WriteEnum((int) Type);
+ }
+ if (X != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Y);
+ }
+ if (FacingDirection != 0D) {
+ output.WriteRawTag(33);
+ output.WriteDouble(FacingDirection);
+ }
+ if (MappingId != 0L) {
+ output.WriteRawTag(40);
+ output.WriteInt64(MappingId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (Type != global::Protobuf.PropType.NullPropType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ }
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (FacingDirection != 0D) {
+ size += 1 + 8;
+ }
+ if (MappingId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(MappingId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfPickedProp other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Type != global::Protobuf.PropType.NullPropType) {
+ Type = other.Type;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.FacingDirection != 0D) {
+ FacingDirection = other.FacingDirection;
+ }
+ if (other.MappingId != 0L) {
+ MappingId = other.MappingId;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ MappingId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ Type = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ case 16: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 33: {
+ FacingDirection = input.ReadDouble();
+ break;
+ }
+ case 40: {
+ MappingId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfClassroom : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfClassroom());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfClassroom() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfClassroom(MessageOfClassroom other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ progress_ = other.progress_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfClassroom Clone() {
+ return new MessageOfClassroom(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 3;
+ private int progress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfClassroom);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfClassroom other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Progress != other.Progress) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfClassroom other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfGate : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfGate());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfGate() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfGate(MessageOfGate other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ progress_ = other.progress_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfGate Clone() {
+ return new MessageOfGate(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 3;
+ private int progress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfGate);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfGate other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Progress != other.Progress) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfGate other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfHiddenGate : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfHiddenGate());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[8]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfHiddenGate() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfHiddenGate(MessageOfHiddenGate other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ opened_ = other.opened_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfHiddenGate Clone() {
+ return new MessageOfHiddenGate(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "opened" field.
+ public const int OpenedFieldNumber = 3;
+ private bool opened_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Opened {
+ get { return opened_; }
+ set {
+ opened_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfHiddenGate);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfHiddenGate other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Opened != other.Opened) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Opened != false) hash ^= Opened.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Opened != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(Opened);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Opened != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(Opened);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Opened != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfHiddenGate other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Opened != false) {
+ Opened = other.Opened;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Opened = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Opened = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfDoor : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfDoor());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[9]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfDoor() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfDoor(MessageOfDoor other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ isOpen_ = other.isOpen_;
+ progress_ = other.progress_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfDoor Clone() {
+ return new MessageOfDoor(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "is_open" field.
+ public const int IsOpenFieldNumber = 3;
+ private bool isOpen_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool IsOpen {
+ get { return isOpen_; }
+ set {
+ isOpen_ = value;
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 4;
+ private int progress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfDoor);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfDoor other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (IsOpen != other.IsOpen) return false;
+ if (Progress != other.Progress) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (IsOpen != false) hash ^= IsOpen.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (IsOpen != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(IsOpen);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (IsOpen != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(IsOpen);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (IsOpen != false) {
+ size += 1 + 1;
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfDoor other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.IsOpen != false) {
+ IsOpen = other.IsOpen;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ IsOpen = input.ReadBool();
+ break;
+ }
+ case 32: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ IsOpen = input.ReadBool();
+ break;
+ }
+ case 32: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfChest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfChest());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[10]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfChest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfChest(MessageOfChest other) : this() {
+ x_ = other.x_;
+ y_ = other.y_;
+ progress_ = other.progress_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfChest Clone() {
+ return new MessageOfChest(this);
+ }
+
+ /// Field number for the "x" field.
+ public const int XFieldNumber = 1;
+ private int x_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int X {
+ get { return x_; }
+ set {
+ x_ = value;
+ }
+ }
+
+ /// Field number for the "y" field.
+ public const int YFieldNumber = 2;
+ private int y_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Y {
+ get { return y_; }
+ set {
+ y_ = value;
+ }
+ }
+
+ /// Field number for the "progress" field.
+ public const int ProgressFieldNumber = 3;
+ private int progress_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int Progress {
+ get { return progress_; }
+ set {
+ progress_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfChest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfChest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (X != other.X) return false;
+ if (Y != other.Y) return false;
+ if (Progress != other.Progress) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (X != 0) hash ^= X.GetHashCode();
+ if (Y != 0) hash ^= Y.GetHashCode();
+ if (Progress != 0) hash ^= Progress.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (X != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(X);
+ }
+ if (Y != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(Y);
+ }
+ if (Progress != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(Progress);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (X != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
+ }
+ if (Y != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
+ }
+ if (Progress != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(Progress);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfChest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.X != 0) {
+ X = other.X;
+ }
+ if (other.Y != 0) {
+ Y = other.Y;
+ }
+ if (other.Progress != 0) {
+ Progress = other.Progress;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ X = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ Y = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ Progress = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfMap : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfMap());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[11]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfMap() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfMap(MessageOfMap other) : this() {
+ row_ = other.row_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfMap Clone() {
+ return new MessageOfMap(this);
+ }
+
+ /// Field number for the "row" field.
+ public const int RowFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_row_codec
+ = pb::FieldCodec.ForMessage(18, global::Protobuf.MessageOfMap.Types.Row.Parser);
+ private readonly pbc::RepeatedField row_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Row {
+ get { return row_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfMap);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfMap other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!row_.Equals(other.row_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= row_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ row_.WriteTo(output, _repeated_row_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ row_.WriteTo(ref output, _repeated_row_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += row_.CalculateSize(_repeated_row_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfMap other) {
+ if (other == null) {
+ return;
+ }
+ row_.Add(other.row_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 18: {
+ row_.AddEntriesFrom(input, _repeated_row_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 18: {
+ row_.AddEntriesFrom(ref input, _repeated_row_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ #region Nested types
+ /// Container for nested types declared in the MessageOfMap message type.
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static partial class Types {
+ public sealed partial class Row : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Row());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.MessageOfMap.Descriptor.NestedTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Row() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Row(Row other) : this() {
+ col_ = other.col_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public Row Clone() {
+ return new Row(this);
+ }
+
+ /// Field number for the "col" field.
+ public const int ColFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_col_codec
+ = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Protobuf.PlaceType) x);
+ private readonly pbc::RepeatedField col_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Col {
+ get { return col_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as Row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(Row other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!col_.Equals(other.col_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= col_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ col_.WriteTo(output, _repeated_col_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ col_.WriteTo(ref output, _repeated_col_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += col_.CalculateSize(_repeated_col_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(Row other) {
+ if (other == null) {
+ return;
+ }
+ col_.Add(other.col_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10:
+ case 8: {
+ col_.AddEntriesFrom(input, _repeated_col_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10:
+ case 8: {
+ col_.AddEntriesFrom(ref input, _repeated_col_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ }
+ #endregion
+
+ }
+
+ public sealed partial class MessageOfNews : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfNews());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[12]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfNews() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfNews(MessageOfNews other) : this() {
+ news_ = other.news_;
+ fromId_ = other.fromId_;
+ toId_ = other.toId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfNews Clone() {
+ return new MessageOfNews(this);
+ }
+
+ /// Field number for the "news" field.
+ public const int NewsFieldNumber = 1;
+ private string news_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string News {
+ get { return news_; }
+ set {
+ news_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "from_id" field.
+ public const int FromIdFieldNumber = 2;
+ private long fromId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long FromId {
+ get { return fromId_; }
+ set {
+ fromId_ = value;
+ }
+ }
+
+ /// Field number for the "to_id" field.
+ public const int ToIdFieldNumber = 3;
+ private long toId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long ToId {
+ get { return toId_; }
+ set {
+ toId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfNews);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfNews other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (News != other.News) return false;
+ if (FromId != other.FromId) return false;
+ if (ToId != other.ToId) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (News.Length != 0) hash ^= News.GetHashCode();
+ if (FromId != 0L) hash ^= FromId.GetHashCode();
+ if (ToId != 0L) hash ^= ToId.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (News.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(News);
+ }
+ if (FromId != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(FromId);
+ }
+ if (ToId != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(ToId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (News.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(News);
+ }
+ if (FromId != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(FromId);
+ }
+ if (ToId != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(ToId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (News.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(News);
+ }
+ if (FromId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(FromId);
+ }
+ if (ToId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(ToId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfNews other) {
+ if (other == null) {
+ return;
+ }
+ if (other.News.Length != 0) {
+ News = other.News;
+ }
+ if (other.FromId != 0L) {
+ FromId = other.FromId;
+ }
+ if (other.ToId != 0L) {
+ ToId = other.ToId;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ News = input.ReadString();
+ break;
+ }
+ case 16: {
+ FromId = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ ToId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ News = input.ReadString();
+ break;
+ }
+ case 16: {
+ FromId = input.ReadInt64();
+ break;
+ }
+ case 24: {
+ ToId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfObj : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfObj());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[13]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfObj() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfObj(MessageOfObj other) : this() {
+ switch (other.MessageOfObjCase) {
+ case MessageOfObjOneofCase.StudentMessage:
+ StudentMessage = other.StudentMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.TrickerMessage:
+ TrickerMessage = other.TrickerMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.PropMessage:
+ PropMessage = other.PropMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.BulletMessage:
+ BulletMessage = other.BulletMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.BombedBulletMessage:
+ BombedBulletMessage = other.BombedBulletMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.ClassroomMessage:
+ ClassroomMessage = other.ClassroomMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.DoorMessage:
+ DoorMessage = other.DoorMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.GateMessage:
+ GateMessage = other.GateMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.ChestMessage:
+ ChestMessage = other.ChestMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.HiddenGateMessage:
+ HiddenGateMessage = other.HiddenGateMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.NewsMessage:
+ NewsMessage = other.NewsMessage.Clone();
+ break;
+ case MessageOfObjOneofCase.MapMessage:
+ MapMessage = other.MapMessage.Clone();
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfObj Clone() {
+ return new MessageOfObj(this);
+ }
+
+ /// Field number for the "student_message" field.
+ public const int StudentMessageFieldNumber = 1;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfStudent StudentMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage ? (global::Protobuf.MessageOfStudent) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.StudentMessage;
+ }
+ }
+
+ /// Field number for the "tricker_message" field.
+ public const int TrickerMessageFieldNumber = 2;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfTricker TrickerMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage ? (global::Protobuf.MessageOfTricker) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.TrickerMessage;
+ }
+ }
+
+ /// Field number for the "prop_message" field.
+ public const int PropMessageFieldNumber = 3;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfProp PropMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.PropMessage ? (global::Protobuf.MessageOfProp) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.PropMessage;
+ }
+ }
+
+ /// Field number for the "bullet_message" field.
+ public const int BulletMessageFieldNumber = 4;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfBullet BulletMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage ? (global::Protobuf.MessageOfBullet) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.BulletMessage;
+ }
+ }
+
+ /// Field number for the "bombed_bullet_message" field.
+ public const int BombedBulletMessageFieldNumber = 5;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfBombedBullet BombedBulletMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage ? (global::Protobuf.MessageOfBombedBullet) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.BombedBulletMessage;
+ }
+ }
+
+ /// Field number for the "classroom_message" field.
+ public const int ClassroomMessageFieldNumber = 6;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfClassroom ClassroomMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage ? (global::Protobuf.MessageOfClassroom) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ClassroomMessage;
+ }
+ }
+
+ /// Field number for the "door_message" field.
+ public const int DoorMessageFieldNumber = 7;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfDoor DoorMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage ? (global::Protobuf.MessageOfDoor) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.DoorMessage;
+ }
+ }
+
+ /// Field number for the "gate_message" field.
+ public const int GateMessageFieldNumber = 8;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfGate GateMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.GateMessage ? (global::Protobuf.MessageOfGate) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.GateMessage;
+ }
+ }
+
+ /// Field number for the "chest_message" field.
+ public const int ChestMessageFieldNumber = 9;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfChest ChestMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage ? (global::Protobuf.MessageOfChest) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ChestMessage;
+ }
+ }
+
+ /// Field number for the "hidden_gate_message" field.
+ public const int HiddenGateMessageFieldNumber = 10;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfHiddenGate HiddenGateMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage ? (global::Protobuf.MessageOfHiddenGate) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.HiddenGateMessage;
+ }
+ }
+
+ /// Field number for the "news_message" field.
+ public const int NewsMessageFieldNumber = 11;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfNews NewsMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage ? (global::Protobuf.MessageOfNews) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.NewsMessage;
+ }
+ }
+
+ /// Field number for the "map_message" field.
+ public const int MapMessageFieldNumber = 12;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfMap MapMessage {
+ get { return messageOfObjCase_ == MessageOfObjOneofCase.MapMessage ? (global::Protobuf.MessageOfMap) messageOfObj_ : null; }
+ set {
+ messageOfObj_ = value;
+ messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.MapMessage;
+ }
+ }
+
+ private object messageOfObj_;
+ /// Enum of possible cases for the "message_of_obj" oneof.
+ public enum MessageOfObjOneofCase {
+ None = 0,
+ StudentMessage = 1,
+ TrickerMessage = 2,
+ PropMessage = 3,
+ BulletMessage = 4,
+ BombedBulletMessage = 5,
+ ClassroomMessage = 6,
+ DoorMessage = 7,
+ GateMessage = 8,
+ ChestMessage = 9,
+ HiddenGateMessage = 10,
+ NewsMessage = 11,
+ MapMessage = 12,
+ }
+ private MessageOfObjOneofCase messageOfObjCase_ = MessageOfObjOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfObjOneofCase MessageOfObjCase {
+ get { return messageOfObjCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearMessageOfObj() {
+ messageOfObjCase_ = MessageOfObjOneofCase.None;
+ messageOfObj_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfObj);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfObj other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(StudentMessage, other.StudentMessage)) return false;
+ if (!object.Equals(TrickerMessage, other.TrickerMessage)) return false;
+ if (!object.Equals(PropMessage, other.PropMessage)) return false;
+ if (!object.Equals(BulletMessage, other.BulletMessage)) return false;
+ if (!object.Equals(BombedBulletMessage, other.BombedBulletMessage)) return false;
+ if (!object.Equals(ClassroomMessage, other.ClassroomMessage)) return false;
+ if (!object.Equals(DoorMessage, other.DoorMessage)) return false;
+ if (!object.Equals(GateMessage, other.GateMessage)) return false;
+ if (!object.Equals(ChestMessage, other.ChestMessage)) return false;
+ if (!object.Equals(HiddenGateMessage, other.HiddenGateMessage)) return false;
+ if (!object.Equals(NewsMessage, other.NewsMessage)) return false;
+ if (!object.Equals(MapMessage, other.MapMessage)) return false;
+ if (MessageOfObjCase != other.MessageOfObjCase) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) hash ^= StudentMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) hash ^= TrickerMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) hash ^= PropMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) hash ^= BulletMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) hash ^= BombedBulletMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) hash ^= ClassroomMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) hash ^= DoorMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) hash ^= GateMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) hash ^= ChestMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) hash ^= HiddenGateMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) hash ^= NewsMessage.GetHashCode();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) hash ^= MapMessage.GetHashCode();
+ hash ^= (int) messageOfObjCase_;
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) {
+ output.WriteRawTag(10);
+ output.WriteMessage(StudentMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) {
+ output.WriteRawTag(18);
+ output.WriteMessage(TrickerMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) {
+ output.WriteRawTag(26);
+ output.WriteMessage(PropMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) {
+ output.WriteRawTag(34);
+ output.WriteMessage(BulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) {
+ output.WriteRawTag(42);
+ output.WriteMessage(BombedBulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) {
+ output.WriteRawTag(50);
+ output.WriteMessage(ClassroomMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) {
+ output.WriteRawTag(58);
+ output.WriteMessage(DoorMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) {
+ output.WriteRawTag(66);
+ output.WriteMessage(GateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) {
+ output.WriteRawTag(74);
+ output.WriteMessage(ChestMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) {
+ output.WriteRawTag(82);
+ output.WriteMessage(HiddenGateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) {
+ output.WriteRawTag(90);
+ output.WriteMessage(NewsMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) {
+ output.WriteRawTag(98);
+ output.WriteMessage(MapMessage);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) {
+ output.WriteRawTag(10);
+ output.WriteMessage(StudentMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) {
+ output.WriteRawTag(18);
+ output.WriteMessage(TrickerMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) {
+ output.WriteRawTag(26);
+ output.WriteMessage(PropMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) {
+ output.WriteRawTag(34);
+ output.WriteMessage(BulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) {
+ output.WriteRawTag(42);
+ output.WriteMessage(BombedBulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) {
+ output.WriteRawTag(50);
+ output.WriteMessage(ClassroomMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) {
+ output.WriteRawTag(58);
+ output.WriteMessage(DoorMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) {
+ output.WriteRawTag(66);
+ output.WriteMessage(GateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) {
+ output.WriteRawTag(74);
+ output.WriteMessage(ChestMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) {
+ output.WriteRawTag(82);
+ output.WriteMessage(HiddenGateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) {
+ output.WriteRawTag(90);
+ output.WriteMessage(NewsMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) {
+ output.WriteRawTag(98);
+ output.WriteMessage(MapMessage);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(StudentMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrickerMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(PropMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(BulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(BombedBulletMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClassroomMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(DoorMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(GateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChestMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(HiddenGateMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewsMessage);
+ }
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapMessage);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfObj other) {
+ if (other == null) {
+ return;
+ }
+ switch (other.MessageOfObjCase) {
+ case MessageOfObjOneofCase.StudentMessage:
+ if (StudentMessage == null) {
+ StudentMessage = new global::Protobuf.MessageOfStudent();
+ }
+ StudentMessage.MergeFrom(other.StudentMessage);
+ break;
+ case MessageOfObjOneofCase.TrickerMessage:
+ if (TrickerMessage == null) {
+ TrickerMessage = new global::Protobuf.MessageOfTricker();
+ }
+ TrickerMessage.MergeFrom(other.TrickerMessage);
+ break;
+ case MessageOfObjOneofCase.PropMessage:
+ if (PropMessage == null) {
+ PropMessage = new global::Protobuf.MessageOfProp();
+ }
+ PropMessage.MergeFrom(other.PropMessage);
+ break;
+ case MessageOfObjOneofCase.BulletMessage:
+ if (BulletMessage == null) {
+ BulletMessage = new global::Protobuf.MessageOfBullet();
+ }
+ BulletMessage.MergeFrom(other.BulletMessage);
+ break;
+ case MessageOfObjOneofCase.BombedBulletMessage:
+ if (BombedBulletMessage == null) {
+ BombedBulletMessage = new global::Protobuf.MessageOfBombedBullet();
+ }
+ BombedBulletMessage.MergeFrom(other.BombedBulletMessage);
+ break;
+ case MessageOfObjOneofCase.ClassroomMessage:
+ if (ClassroomMessage == null) {
+ ClassroomMessage = new global::Protobuf.MessageOfClassroom();
+ }
+ ClassroomMessage.MergeFrom(other.ClassroomMessage);
+ break;
+ case MessageOfObjOneofCase.DoorMessage:
+ if (DoorMessage == null) {
+ DoorMessage = new global::Protobuf.MessageOfDoor();
+ }
+ DoorMessage.MergeFrom(other.DoorMessage);
+ break;
+ case MessageOfObjOneofCase.GateMessage:
+ if (GateMessage == null) {
+ GateMessage = new global::Protobuf.MessageOfGate();
+ }
+ GateMessage.MergeFrom(other.GateMessage);
+ break;
+ case MessageOfObjOneofCase.ChestMessage:
+ if (ChestMessage == null) {
+ ChestMessage = new global::Protobuf.MessageOfChest();
+ }
+ ChestMessage.MergeFrom(other.ChestMessage);
+ break;
+ case MessageOfObjOneofCase.HiddenGateMessage:
+ if (HiddenGateMessage == null) {
+ HiddenGateMessage = new global::Protobuf.MessageOfHiddenGate();
+ }
+ HiddenGateMessage.MergeFrom(other.HiddenGateMessage);
+ break;
+ case MessageOfObjOneofCase.NewsMessage:
+ if (NewsMessage == null) {
+ NewsMessage = new global::Protobuf.MessageOfNews();
+ }
+ NewsMessage.MergeFrom(other.NewsMessage);
+ break;
+ case MessageOfObjOneofCase.MapMessage:
+ if (MapMessage == null) {
+ MapMessage = new global::Protobuf.MessageOfMap();
+ }
+ MapMessage.MergeFrom(other.MapMessage);
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ global::Protobuf.MessageOfStudent subBuilder = new global::Protobuf.MessageOfStudent();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) {
+ subBuilder.MergeFrom(StudentMessage);
+ }
+ input.ReadMessage(subBuilder);
+ StudentMessage = subBuilder;
+ break;
+ }
+ case 18: {
+ global::Protobuf.MessageOfTricker subBuilder = new global::Protobuf.MessageOfTricker();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) {
+ subBuilder.MergeFrom(TrickerMessage);
+ }
+ input.ReadMessage(subBuilder);
+ TrickerMessage = subBuilder;
+ break;
+ }
+ case 26: {
+ global::Protobuf.MessageOfProp subBuilder = new global::Protobuf.MessageOfProp();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) {
+ subBuilder.MergeFrom(PropMessage);
+ }
+ input.ReadMessage(subBuilder);
+ PropMessage = subBuilder;
+ break;
+ }
+ case 34: {
+ global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) {
+ subBuilder.MergeFrom(BulletMessage);
+ }
+ input.ReadMessage(subBuilder);
+ BulletMessage = subBuilder;
+ break;
+ }
+ case 42: {
+ global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) {
+ subBuilder.MergeFrom(BombedBulletMessage);
+ }
+ input.ReadMessage(subBuilder);
+ BombedBulletMessage = subBuilder;
+ break;
+ }
+ case 50: {
+ global::Protobuf.MessageOfClassroom subBuilder = new global::Protobuf.MessageOfClassroom();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) {
+ subBuilder.MergeFrom(ClassroomMessage);
+ }
+ input.ReadMessage(subBuilder);
+ ClassroomMessage = subBuilder;
+ break;
+ }
+ case 58: {
+ global::Protobuf.MessageOfDoor subBuilder = new global::Protobuf.MessageOfDoor();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) {
+ subBuilder.MergeFrom(DoorMessage);
+ }
+ input.ReadMessage(subBuilder);
+ DoorMessage = subBuilder;
+ break;
+ }
+ case 66: {
+ global::Protobuf.MessageOfGate subBuilder = new global::Protobuf.MessageOfGate();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) {
+ subBuilder.MergeFrom(GateMessage);
+ }
+ input.ReadMessage(subBuilder);
+ GateMessage = subBuilder;
+ break;
+ }
+ case 74: {
+ global::Protobuf.MessageOfChest subBuilder = new global::Protobuf.MessageOfChest();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) {
+ subBuilder.MergeFrom(ChestMessage);
+ }
+ input.ReadMessage(subBuilder);
+ ChestMessage = subBuilder;
+ break;
+ }
+ case 82: {
+ global::Protobuf.MessageOfHiddenGate subBuilder = new global::Protobuf.MessageOfHiddenGate();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) {
+ subBuilder.MergeFrom(HiddenGateMessage);
+ }
+ input.ReadMessage(subBuilder);
+ HiddenGateMessage = subBuilder;
+ break;
+ }
+ case 90: {
+ global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) {
+ subBuilder.MergeFrom(NewsMessage);
+ }
+ input.ReadMessage(subBuilder);
+ NewsMessage = subBuilder;
+ break;
+ }
+ case 98: {
+ global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) {
+ subBuilder.MergeFrom(MapMessage);
+ }
+ input.ReadMessage(subBuilder);
+ MapMessage = subBuilder;
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ global::Protobuf.MessageOfStudent subBuilder = new global::Protobuf.MessageOfStudent();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.StudentMessage) {
+ subBuilder.MergeFrom(StudentMessage);
+ }
+ input.ReadMessage(subBuilder);
+ StudentMessage = subBuilder;
+ break;
+ }
+ case 18: {
+ global::Protobuf.MessageOfTricker subBuilder = new global::Protobuf.MessageOfTricker();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.TrickerMessage) {
+ subBuilder.MergeFrom(TrickerMessage);
+ }
+ input.ReadMessage(subBuilder);
+ TrickerMessage = subBuilder;
+ break;
+ }
+ case 26: {
+ global::Protobuf.MessageOfProp subBuilder = new global::Protobuf.MessageOfProp();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.PropMessage) {
+ subBuilder.MergeFrom(PropMessage);
+ }
+ input.ReadMessage(subBuilder);
+ PropMessage = subBuilder;
+ break;
+ }
+ case 34: {
+ global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) {
+ subBuilder.MergeFrom(BulletMessage);
+ }
+ input.ReadMessage(subBuilder);
+ BulletMessage = subBuilder;
+ break;
+ }
+ case 42: {
+ global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) {
+ subBuilder.MergeFrom(BombedBulletMessage);
+ }
+ input.ReadMessage(subBuilder);
+ BombedBulletMessage = subBuilder;
+ break;
+ }
+ case 50: {
+ global::Protobuf.MessageOfClassroom subBuilder = new global::Protobuf.MessageOfClassroom();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ClassroomMessage) {
+ subBuilder.MergeFrom(ClassroomMessage);
+ }
+ input.ReadMessage(subBuilder);
+ ClassroomMessage = subBuilder;
+ break;
+ }
+ case 58: {
+ global::Protobuf.MessageOfDoor subBuilder = new global::Protobuf.MessageOfDoor();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.DoorMessage) {
+ subBuilder.MergeFrom(DoorMessage);
+ }
+ input.ReadMessage(subBuilder);
+ DoorMessage = subBuilder;
+ break;
+ }
+ case 66: {
+ global::Protobuf.MessageOfGate subBuilder = new global::Protobuf.MessageOfGate();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.GateMessage) {
+ subBuilder.MergeFrom(GateMessage);
+ }
+ input.ReadMessage(subBuilder);
+ GateMessage = subBuilder;
+ break;
+ }
+ case 74: {
+ global::Protobuf.MessageOfChest subBuilder = new global::Protobuf.MessageOfChest();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.ChestMessage) {
+ subBuilder.MergeFrom(ChestMessage);
+ }
+ input.ReadMessage(subBuilder);
+ ChestMessage = subBuilder;
+ break;
+ }
+ case 82: {
+ global::Protobuf.MessageOfHiddenGate subBuilder = new global::Protobuf.MessageOfHiddenGate();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.HiddenGateMessage) {
+ subBuilder.MergeFrom(HiddenGateMessage);
+ }
+ input.ReadMessage(subBuilder);
+ HiddenGateMessage = subBuilder;
+ break;
+ }
+ case 90: {
+ global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) {
+ subBuilder.MergeFrom(NewsMessage);
+ }
+ input.ReadMessage(subBuilder);
+ NewsMessage = subBuilder;
+ break;
+ }
+ case 98: {
+ global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap();
+ if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) {
+ subBuilder.MergeFrom(MapMessage);
+ }
+ input.ReadMessage(subBuilder);
+ MapMessage = subBuilder;
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageOfAll : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfAll());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[14]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfAll() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfAll(MessageOfAll other) : this() {
+ gameTime_ = other.gameTime_;
+ subjectLeft_ = other.subjectLeft_;
+ studentGraduated_ = other.studentGraduated_;
+ studentQuited_ = other.studentQuited_;
+ studentScore_ = other.studentScore_;
+ trickerScore_ = other.trickerScore_;
+ gateOpened_ = other.gateOpened_;
+ hiddenGateRefreshed_ = other.hiddenGateRefreshed_;
+ hiddenGateOpened_ = other.hiddenGateOpened_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOfAll Clone() {
+ return new MessageOfAll(this);
+ }
+
+ /// Field number for the "game_time" field.
+ public const int GameTimeFieldNumber = 1;
+ private int gameTime_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int GameTime {
+ get { return gameTime_; }
+ set {
+ gameTime_ = value;
+ }
+ }
+
+ /// Field number for the "subject_left" field.
+ public const int SubjectLeftFieldNumber = 2;
+ private int subjectLeft_;
+ ///
+ /// 剩余的科目数
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int SubjectLeft {
+ get { return subjectLeft_; }
+ set {
+ subjectLeft_ = value;
+ }
+ }
+
+ /// Field number for the "student_graduated" field.
+ public const int StudentGraduatedFieldNumber = 3;
+ private int studentGraduated_;
+ ///
+ /// 已经毕业的学生数
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int StudentGraduated {
+ get { return studentGraduated_; }
+ set {
+ studentGraduated_ = value;
+ }
+ }
+
+ /// Field number for the "student_quited" field.
+ public const int StudentQuitedFieldNumber = 4;
+ private int studentQuited_;
+ ///
+ /// 已经退学的学生数
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int StudentQuited {
+ get { return studentQuited_; }
+ set {
+ studentQuited_ = value;
+ }
+ }
+
+ /// Field number for the "student_score" field.
+ public const int StudentScoreFieldNumber = 5;
+ private int studentScore_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int StudentScore {
+ get { return studentScore_; }
+ set {
+ studentScore_ = value;
+ }
+ }
+
+ /// Field number for the "tricker_score" field.
+ public const int TrickerScoreFieldNumber = 6;
+ private int trickerScore_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int TrickerScore {
+ get { return trickerScore_; }
+ set {
+ trickerScore_ = value;
+ }
+ }
+
+ /// Field number for the "gate_opened" field.
+ public const int GateOpenedFieldNumber = 7;
+ private bool gateOpened_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool GateOpened {
+ get { return gateOpened_; }
+ set {
+ gateOpened_ = value;
+ }
+ }
+
+ /// Field number for the "hidden_gate_refreshed" field.
+ public const int HiddenGateRefreshedFieldNumber = 8;
+ private bool hiddenGateRefreshed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HiddenGateRefreshed {
+ get { return hiddenGateRefreshed_; }
+ set {
+ hiddenGateRefreshed_ = value;
+ }
+ }
+
+ /// Field number for the "hidden_gate_opened" field.
+ public const int HiddenGateOpenedFieldNumber = 9;
+ private bool hiddenGateOpened_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HiddenGateOpened {
+ get { return hiddenGateOpened_; }
+ set {
+ hiddenGateOpened_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageOfAll);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageOfAll other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (GameTime != other.GameTime) return false;
+ if (SubjectLeft != other.SubjectLeft) return false;
+ if (StudentGraduated != other.StudentGraduated) return false;
+ if (StudentQuited != other.StudentQuited) return false;
+ if (StudentScore != other.StudentScore) return false;
+ if (TrickerScore != other.TrickerScore) return false;
+ if (GateOpened != other.GateOpened) return false;
+ if (HiddenGateRefreshed != other.HiddenGateRefreshed) return false;
+ if (HiddenGateOpened != other.HiddenGateOpened) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (GameTime != 0) hash ^= GameTime.GetHashCode();
+ if (SubjectLeft != 0) hash ^= SubjectLeft.GetHashCode();
+ if (StudentGraduated != 0) hash ^= StudentGraduated.GetHashCode();
+ if (StudentQuited != 0) hash ^= StudentQuited.GetHashCode();
+ if (StudentScore != 0) hash ^= StudentScore.GetHashCode();
+ if (TrickerScore != 0) hash ^= TrickerScore.GetHashCode();
+ if (GateOpened != false) hash ^= GateOpened.GetHashCode();
+ if (HiddenGateRefreshed != false) hash ^= HiddenGateRefreshed.GetHashCode();
+ if (HiddenGateOpened != false) hash ^= HiddenGateOpened.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (GameTime != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(GameTime);
+ }
+ if (SubjectLeft != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SubjectLeft);
+ }
+ if (StudentGraduated != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(StudentGraduated);
+ }
+ if (StudentQuited != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(StudentQuited);
+ }
+ if (StudentScore != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(StudentScore);
+ }
+ if (TrickerScore != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(TrickerScore);
+ }
+ if (GateOpened != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(GateOpened);
+ }
+ if (HiddenGateRefreshed != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(HiddenGateRefreshed);
+ }
+ if (HiddenGateOpened != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(HiddenGateOpened);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (GameTime != 0) {
+ output.WriteRawTag(8);
+ output.WriteInt32(GameTime);
+ }
+ if (SubjectLeft != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SubjectLeft);
+ }
+ if (StudentGraduated != 0) {
+ output.WriteRawTag(24);
+ output.WriteInt32(StudentGraduated);
+ }
+ if (StudentQuited != 0) {
+ output.WriteRawTag(32);
+ output.WriteInt32(StudentQuited);
+ }
+ if (StudentScore != 0) {
+ output.WriteRawTag(40);
+ output.WriteInt32(StudentScore);
+ }
+ if (TrickerScore != 0) {
+ output.WriteRawTag(48);
+ output.WriteInt32(TrickerScore);
+ }
+ if (GateOpened != false) {
+ output.WriteRawTag(56);
+ output.WriteBool(GateOpened);
+ }
+ if (HiddenGateRefreshed != false) {
+ output.WriteRawTag(64);
+ output.WriteBool(HiddenGateRefreshed);
+ }
+ if (HiddenGateOpened != false) {
+ output.WriteRawTag(72);
+ output.WriteBool(HiddenGateOpened);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (GameTime != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameTime);
+ }
+ if (SubjectLeft != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubjectLeft);
+ }
+ if (StudentGraduated != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(StudentGraduated);
+ }
+ if (StudentQuited != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(StudentQuited);
+ }
+ if (StudentScore != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(StudentScore);
+ }
+ if (TrickerScore != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(TrickerScore);
+ }
+ if (GateOpened != false) {
+ size += 1 + 1;
+ }
+ if (HiddenGateRefreshed != false) {
+ size += 1 + 1;
+ }
+ if (HiddenGateOpened != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageOfAll other) {
+ if (other == null) {
+ return;
+ }
+ if (other.GameTime != 0) {
+ GameTime = other.GameTime;
+ }
+ if (other.SubjectLeft != 0) {
+ SubjectLeft = other.SubjectLeft;
+ }
+ if (other.StudentGraduated != 0) {
+ StudentGraduated = other.StudentGraduated;
+ }
+ if (other.StudentQuited != 0) {
+ StudentQuited = other.StudentQuited;
+ }
+ if (other.StudentScore != 0) {
+ StudentScore = other.StudentScore;
+ }
+ if (other.TrickerScore != 0) {
+ TrickerScore = other.TrickerScore;
+ }
+ if (other.GateOpened != false) {
+ GateOpened = other.GateOpened;
+ }
+ if (other.HiddenGateRefreshed != false) {
+ HiddenGateRefreshed = other.HiddenGateRefreshed;
+ }
+ if (other.HiddenGateOpened != false) {
+ HiddenGateOpened = other.HiddenGateOpened;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ GameTime = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ SubjectLeft = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ StudentGraduated = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ StudentQuited = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ StudentScore = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ TrickerScore = input.ReadInt32();
+ break;
+ }
+ case 56: {
+ GateOpened = input.ReadBool();
+ break;
+ }
+ case 64: {
+ HiddenGateRefreshed = input.ReadBool();
+ break;
+ }
+ case 72: {
+ HiddenGateOpened = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ GameTime = input.ReadInt32();
+ break;
+ }
+ case 16: {
+ SubjectLeft = input.ReadInt32();
+ break;
+ }
+ case 24: {
+ StudentGraduated = input.ReadInt32();
+ break;
+ }
+ case 32: {
+ StudentQuited = input.ReadInt32();
+ break;
+ }
+ case 40: {
+ StudentScore = input.ReadInt32();
+ break;
+ }
+ case 48: {
+ TrickerScore = input.ReadInt32();
+ break;
+ }
+ case 56: {
+ GateOpened = input.ReadBool();
+ break;
+ }
+ case 64: {
+ HiddenGateRefreshed = input.ReadBool();
+ break;
+ }
+ case 72: {
+ HiddenGateOpened = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MessageToClient : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageToClient());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[15]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageToClient() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageToClient(MessageToClient other) : this() {
+ objMessage_ = other.objMessage_.Clone();
+ gameState_ = other.gameState_;
+ allMessage_ = other.allMessage_ != null ? other.allMessage_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageToClient Clone() {
+ return new MessageToClient(this);
+ }
+
+ /// Field number for the "obj_message" field.
+ public const int ObjMessageFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_objMessage_codec
+ = pb::FieldCodec.ForMessage(10, global::Protobuf.MessageOfObj.Parser);
+ private readonly pbc::RepeatedField objMessage_ = new pbc::RepeatedField();
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField ObjMessage {
+ get { return objMessage_; }
+ }
+
+ /// Field number for the "game_state" field.
+ public const int GameStateFieldNumber = 2;
+ private global::Protobuf.GameState gameState_ = global::Protobuf.GameState.NullGameState;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.GameState GameState {
+ get { return gameState_; }
+ set {
+ gameState_ = value;
+ }
+ }
+
+ /// Field number for the "all_message" field.
+ public const int AllMessageFieldNumber = 3;
+ private global::Protobuf.MessageOfAll allMessage_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.MessageOfAll AllMessage {
+ get { return allMessage_; }
+ set {
+ allMessage_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MessageToClient);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MessageToClient other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!objMessage_.Equals(other.objMessage_)) return false;
+ if (GameState != other.GameState) return false;
+ if (!object.Equals(AllMessage, other.AllMessage)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= objMessage_.GetHashCode();
+ if (GameState != global::Protobuf.GameState.NullGameState) hash ^= GameState.GetHashCode();
+ if (allMessage_ != null) hash ^= AllMessage.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ objMessage_.WriteTo(output, _repeated_objMessage_codec);
+ if (GameState != global::Protobuf.GameState.NullGameState) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) GameState);
+ }
+ if (allMessage_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(AllMessage);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ objMessage_.WriteTo(ref output, _repeated_objMessage_codec);
+ if (GameState != global::Protobuf.GameState.NullGameState) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) GameState);
+ }
+ if (allMessage_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(AllMessage);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += objMessage_.CalculateSize(_repeated_objMessage_codec);
+ if (GameState != global::Protobuf.GameState.NullGameState) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GameState);
+ }
+ if (allMessage_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllMessage);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MessageToClient other) {
+ if (other == null) {
+ return;
+ }
+ objMessage_.Add(other.objMessage_);
+ if (other.GameState != global::Protobuf.GameState.NullGameState) {
+ GameState = other.GameState;
+ }
+ if (other.allMessage_ != null) {
+ if (allMessage_ == null) {
+ AllMessage = new global::Protobuf.MessageOfAll();
+ }
+ AllMessage.MergeFrom(other.AllMessage);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ objMessage_.AddEntriesFrom(input, _repeated_objMessage_codec);
+ break;
+ }
+ case 16: {
+ GameState = (global::Protobuf.GameState) input.ReadEnum();
+ break;
+ }
+ case 26: {
+ if (allMessage_ == null) {
+ AllMessage = new global::Protobuf.MessageOfAll();
+ }
+ input.ReadMessage(AllMessage);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ objMessage_.AddEntriesFrom(ref input, _repeated_objMessage_codec);
+ break;
+ }
+ case 16: {
+ GameState = (global::Protobuf.GameState) input.ReadEnum();
+ break;
+ }
+ case 26: {
+ if (allMessage_ == null) {
+ AllMessage = new global::Protobuf.MessageOfAll();
+ }
+ input.ReadMessage(AllMessage);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MoveRes : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveRes());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[16]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveRes() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveRes(MoveRes other) : this() {
+ actualSpeed_ = other.actualSpeed_;
+ actualAngle_ = other.actualAngle_;
+ actSuccess_ = other.actSuccess_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveRes Clone() {
+ return new MoveRes(this);
+ }
+
+ /// Field number for the "actual_speed" field.
+ public const int ActualSpeedFieldNumber = 1;
+ private long actualSpeed_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long ActualSpeed {
+ get { return actualSpeed_; }
+ set {
+ actualSpeed_ = value;
+ }
+ }
+
+ /// Field number for the "actual_angle" field.
+ public const int ActualAngleFieldNumber = 2;
+ private double actualAngle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double ActualAngle {
+ get { return actualAngle_; }
+ set {
+ actualAngle_ = value;
+ }
+ }
+
+ /// Field number for the "act_success" field.
+ public const int ActSuccessFieldNumber = 3;
+ private bool actSuccess_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool ActSuccess {
+ get { return actSuccess_; }
+ set {
+ actSuccess_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MoveRes);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MoveRes other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ActualSpeed != other.ActualSpeed) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ActualAngle, other.ActualAngle)) return false;
+ if (ActSuccess != other.ActSuccess) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ActualSpeed != 0L) hash ^= ActualSpeed.GetHashCode();
+ if (ActualAngle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ActualAngle);
+ if (ActSuccess != false) hash ^= ActSuccess.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ActualSpeed != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(ActualSpeed);
+ }
+ if (ActualAngle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(ActualAngle);
+ }
+ if (ActSuccess != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(ActSuccess);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ActualSpeed != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(ActualSpeed);
+ }
+ if (ActualAngle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(ActualAngle);
+ }
+ if (ActSuccess != false) {
+ output.WriteRawTag(24);
+ output.WriteBool(ActSuccess);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ActualSpeed != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(ActualSpeed);
+ }
+ if (ActualAngle != 0D) {
+ size += 1 + 8;
+ }
+ if (ActSuccess != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MoveRes other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ActualSpeed != 0L) {
+ ActualSpeed = other.ActualSpeed;
+ }
+ if (other.ActualAngle != 0D) {
+ ActualAngle = other.ActualAngle;
+ }
+ if (other.ActSuccess != false) {
+ ActSuccess = other.ActSuccess;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ActualSpeed = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ ActualAngle = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ ActSuccess = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ActualSpeed = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ ActualAngle = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ ActSuccess = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class BoolRes : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoolRes());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[17]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BoolRes() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BoolRes(BoolRes other) : this() {
+ actSuccess_ = other.actSuccess_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public BoolRes Clone() {
+ return new BoolRes(this);
+ }
+
+ /// Field number for the "act_success" field.
+ public const int ActSuccessFieldNumber = 1;
+ private bool actSuccess_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool ActSuccess {
+ get { return actSuccess_; }
+ set {
+ actSuccess_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as BoolRes);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(BoolRes other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ActSuccess != other.ActSuccess) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (ActSuccess != false) hash ^= ActSuccess.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (ActSuccess != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(ActSuccess);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (ActSuccess != false) {
+ output.WriteRawTag(8);
+ output.WriteBool(ActSuccess);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (ActSuccess != false) {
+ size += 1 + 1;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(BoolRes other) {
+ if (other == null) {
+ return;
+ }
+ if (other.ActSuccess != false) {
+ ActSuccess = other.ActSuccess;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ActSuccess = input.ReadBool();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ActSuccess = input.ReadBool();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/interface/Assets/Scripts/Proto/Message2ClientsGrpc.cs b/interface/Assets/Scripts/Proto/Message2ClientsGrpc.cs
new file mode 100644
index 0000000..e69de29
diff --git a/interface/Assets/Scripts/Proto/Message2Server.cs b/interface/Assets/Scripts/Proto/Message2Server.cs
new file mode 100644
index 0000000..a4aa02a
--- /dev/null
+++ b/interface/Assets/Scripts/Proto/Message2Server.cs
@@ -0,0 +1,1790 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Message2Server.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Protobuf {
+
+ /// Holder for reflection information generated from Message2Server.proto
+ public static partial class Message2ServerReflection {
+
+ #region Descriptor
+ /// File descriptor for Message2Server.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static Message2ServerReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChRNZXNzYWdlMlNlcnZlci5wcm90bxIIcHJvdG9idWYaEU1lc3NhZ2VUeXBl",
+ "LnByb3RvIrMBCglQbGF5ZXJNc2cSEQoJcGxheWVyX2lkGAEgASgDEi0KDHN0",
+ "dWRlbnRfdHlwZRgCIAEoDjIVLnByb3RvYnVmLlN0dWRlbnRUeXBlSAASLQoM",
+ "dHJpY2tlcl90eXBlGAMgASgOMhUucHJvdG9idWYuVHJpY2tlclR5cGVIABIp",
+ "CgtwbGF5ZXJfdHlwZRgEIAEoDjIULnByb3RvYnVmLlBsYXllclR5cGVCCgoI",
+ "am9iX3R5cGUiSQoHTW92ZU1zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5n",
+ "bGUYAiABKAESHAoUdGltZV9pbl9taWxsaXNlY29uZHMYAyABKAMiQwoHUHJv",
+ "cE1zZxIRCglwbGF5ZXJfaWQYASABKAMSJQoJcHJvcF90eXBlGAIgASgOMhIu",
+ "cHJvdG9idWYuUHJvcFR5cGUiQwoHU2VuZE1zZxIRCglwbGF5ZXJfaWQYASAB",
+ "KAMSFAoMdG9fcGxheWVyX2lkGAIgASgDEg8KB21lc3NhZ2UYAyABKAkiLQoJ",
+ "QXR0YWNrTXNnEhEKCXBsYXllcl9pZBgBIAEoAxINCgVhbmdsZRgCIAEoASIa",
+ "CgVJRE1zZxIRCglwbGF5ZXJfaWQYASABKAMiLwoIU2tpbGxNc2cSEQoJcGxh",
+ "eWVyX2lkGAEgASgDEhAKCHNraWxsX2lkGAIgASgFYgZwcm90bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Protobuf.MessageTypeReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PlayerMsg), global::Protobuf.PlayerMsg.Parser, new[]{ "PlayerId", "StudentType", "TrickerType", "PlayerType" }, new[]{ "JobType" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MoveMsg), global::Protobuf.MoveMsg.Parser, new[]{ "PlayerId", "Angle", "TimeInMilliseconds" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PropMsg), global::Protobuf.PropMsg.Parser, new[]{ "PlayerId", "PropType" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SendMsg), global::Protobuf.SendMsg.Parser, new[]{ "PlayerId", "ToPlayerId", "Message" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.AttackMsg), global::Protobuf.AttackMsg.Parser, new[]{ "PlayerId", "Angle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.IDMsg), global::Protobuf.IDMsg.Parser, new[]{ "PlayerId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SkillMsg), global::Protobuf.SkillMsg.Parser, new[]{ "PlayerId", "SkillId" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ public sealed partial class PlayerMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerMsg(PlayerMsg other) : this() {
+ playerId_ = other.playerId_;
+ playerType_ = other.playerType_;
+ switch (other.JobTypeCase) {
+ case JobTypeOneofCase.StudentType:
+ StudentType = other.StudentType;
+ break;
+ case JobTypeOneofCase.TrickerType:
+ TrickerType = other.TrickerType;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PlayerMsg Clone() {
+ return new PlayerMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "student_type" field.
+ public const int StudentTypeFieldNumber = 2;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.StudentType StudentType {
+ get { return jobTypeCase_ == JobTypeOneofCase.StudentType ? (global::Protobuf.StudentType) jobType_ : global::Protobuf.StudentType.NullStudentType; }
+ set {
+ jobType_ = value;
+ jobTypeCase_ = JobTypeOneofCase.StudentType;
+ }
+ }
+
+ /// Field number for the "tricker_type" field.
+ public const int TrickerTypeFieldNumber = 3;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.TrickerType TrickerType {
+ get { return jobTypeCase_ == JobTypeOneofCase.TrickerType ? (global::Protobuf.TrickerType) jobType_ : global::Protobuf.TrickerType.NullTrickerType; }
+ set {
+ jobType_ = value;
+ jobTypeCase_ = JobTypeOneofCase.TrickerType;
+ }
+ }
+
+ /// Field number for the "player_type" field.
+ public const int PlayerTypeFieldNumber = 4;
+ private global::Protobuf.PlayerType playerType_ = global::Protobuf.PlayerType.NullPlayerType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PlayerType PlayerType {
+ get { return playerType_; }
+ set {
+ playerType_ = value;
+ }
+ }
+
+ private object jobType_;
+ /// Enum of possible cases for the "job_type" oneof.
+ public enum JobTypeOneofCase {
+ None = 0,
+ StudentType = 2,
+ TrickerType = 3,
+ }
+ private JobTypeOneofCase jobTypeCase_ = JobTypeOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public JobTypeOneofCase JobTypeCase {
+ get { return jobTypeCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearJobType() {
+ jobTypeCase_ = JobTypeOneofCase.None;
+ jobType_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PlayerMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PlayerMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (StudentType != other.StudentType) return false;
+ if (TrickerType != other.TrickerType) return false;
+ if (PlayerType != other.PlayerType) return false;
+ if (JobTypeCase != other.JobTypeCase) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (jobTypeCase_ == JobTypeOneofCase.StudentType) hash ^= StudentType.GetHashCode();
+ if (jobTypeCase_ == JobTypeOneofCase.TrickerType) hash ^= TrickerType.GetHashCode();
+ if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) hash ^= PlayerType.GetHashCode();
+ hash ^= (int) jobTypeCase_;
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) StudentType);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) TrickerType);
+ }
+ if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) PlayerType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) StudentType);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) TrickerType);
+ }
+ if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) PlayerType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StudentType);
+ }
+ if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrickerType);
+ }
+ if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerType);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PlayerMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
+ PlayerType = other.PlayerType;
+ }
+ switch (other.JobTypeCase) {
+ case JobTypeOneofCase.StudentType:
+ StudentType = other.StudentType;
+ break;
+ case JobTypeOneofCase.TrickerType:
+ TrickerType = other.TrickerType;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ jobType_ = input.ReadEnum();
+ jobTypeCase_ = JobTypeOneofCase.StudentType;
+ break;
+ }
+ case 24: {
+ jobType_ = input.ReadEnum();
+ jobTypeCase_ = JobTypeOneofCase.TrickerType;
+ break;
+ }
+ case 32: {
+ PlayerType = (global::Protobuf.PlayerType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ jobType_ = input.ReadEnum();
+ jobTypeCase_ = JobTypeOneofCase.StudentType;
+ break;
+ }
+ case 24: {
+ jobType_ = input.ReadEnum();
+ jobTypeCase_ = JobTypeOneofCase.TrickerType;
+ break;
+ }
+ case 32: {
+ PlayerType = (global::Protobuf.PlayerType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class MoveMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveMsg(MoveMsg other) : this() {
+ playerId_ = other.playerId_;
+ angle_ = other.angle_;
+ timeInMilliseconds_ = other.timeInMilliseconds_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MoveMsg Clone() {
+ return new MoveMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "angle" field.
+ public const int AngleFieldNumber = 2;
+ private double angle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double Angle {
+ get { return angle_; }
+ set {
+ angle_ = value;
+ }
+ }
+
+ /// Field number for the "time_in_milliseconds" field.
+ public const int TimeInMillisecondsFieldNumber = 3;
+ private long timeInMilliseconds_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long TimeInMilliseconds {
+ get { return timeInMilliseconds_; }
+ set {
+ timeInMilliseconds_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as MoveMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(MoveMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Angle, other.Angle)) return false;
+ if (TimeInMilliseconds != other.TimeInMilliseconds) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (Angle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle);
+ if (TimeInMilliseconds != 0L) hash ^= TimeInMilliseconds.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (Angle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(Angle);
+ }
+ if (TimeInMilliseconds != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TimeInMilliseconds);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (Angle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(Angle);
+ }
+ if (TimeInMilliseconds != 0L) {
+ output.WriteRawTag(24);
+ output.WriteInt64(TimeInMilliseconds);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (Angle != 0D) {
+ size += 1 + 8;
+ }
+ if (TimeInMilliseconds != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeInMilliseconds);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(MoveMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.Angle != 0D) {
+ Angle = other.Angle;
+ }
+ if (other.TimeInMilliseconds != 0L) {
+ TimeInMilliseconds = other.TimeInMilliseconds;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ Angle = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ TimeInMilliseconds = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ Angle = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ TimeInMilliseconds = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class PropMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PropMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PropMsg(PropMsg other) : this() {
+ playerId_ = other.playerId_;
+ propType_ = other.propType_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PropMsg Clone() {
+ return new PropMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "prop_type" field.
+ public const int PropTypeFieldNumber = 2;
+ private global::Protobuf.PropType propType_ = global::Protobuf.PropType.NullPropType;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Protobuf.PropType PropType {
+ get { return propType_; }
+ set {
+ propType_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PropMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PropMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (PropType != other.PropType) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (PropType != global::Protobuf.PropType.NullPropType) hash ^= PropType.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (PropType != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) PropType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (PropType != global::Protobuf.PropType.NullPropType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) PropType);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (PropType != global::Protobuf.PropType.NullPropType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PropType);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PropMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.PropType != global::Protobuf.PropType.NullPropType) {
+ PropType = other.PropType;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ PropType = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ PropType = (global::Protobuf.PropType) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SendMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SendMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SendMsg(SendMsg other) : this() {
+ playerId_ = other.playerId_;
+ toPlayerId_ = other.toPlayerId_;
+ message_ = other.message_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SendMsg Clone() {
+ return new SendMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "to_player_id" field.
+ public const int ToPlayerIdFieldNumber = 2;
+ private long toPlayerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long ToPlayerId {
+ get { return toPlayerId_; }
+ set {
+ toPlayerId_ = value;
+ }
+ }
+
+ /// Field number for the "message" field.
+ public const int MessageFieldNumber = 3;
+ private string message_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Message {
+ get { return message_; }
+ set {
+ message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SendMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SendMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (ToPlayerId != other.ToPlayerId) return false;
+ if (Message != other.Message) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (ToPlayerId != 0L) hash ^= ToPlayerId.GetHashCode();
+ if (Message.Length != 0) hash ^= Message.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (ToPlayerId != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ToPlayerId);
+ }
+ if (Message.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Message);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (ToPlayerId != 0L) {
+ output.WriteRawTag(16);
+ output.WriteInt64(ToPlayerId);
+ }
+ if (Message.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Message);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (ToPlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(ToPlayerId);
+ }
+ if (Message.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SendMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.ToPlayerId != 0L) {
+ ToPlayerId = other.ToPlayerId;
+ }
+ if (other.Message.Length != 0) {
+ Message = other.Message;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ ToPlayerId = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Message = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ ToPlayerId = input.ReadInt64();
+ break;
+ }
+ case 26: {
+ Message = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class AttackMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttackMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AttackMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AttackMsg(AttackMsg other) : this() {
+ playerId_ = other.playerId_;
+ angle_ = other.angle_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AttackMsg Clone() {
+ return new AttackMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "angle" field.
+ public const int AngleFieldNumber = 2;
+ private double angle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double Angle {
+ get { return angle_; }
+ set {
+ angle_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AttackMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AttackMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Angle, other.Angle)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (Angle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle);
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (Angle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(Angle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (Angle != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(Angle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (Angle != 0D) {
+ size += 1 + 8;
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AttackMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.Angle != 0D) {
+ Angle = other.Angle;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ Angle = input.ReadDouble();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 17: {
+ Angle = input.ReadDouble();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class IDMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IDMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IDMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IDMsg(IDMsg other) : this() {
+ playerId_ = other.playerId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public IDMsg Clone() {
+ return new IDMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as IDMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(IDMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(IDMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ public sealed partial class SkillMsg : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SkillMsg());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SkillMsg() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SkillMsg(SkillMsg other) : this() {
+ playerId_ = other.playerId_;
+ skillId_ = other.skillId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public SkillMsg Clone() {
+ return new SkillMsg(this);
+ }
+
+ /// Field number for the "player_id" field.
+ public const int PlayerIdFieldNumber = 1;
+ private long playerId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public long PlayerId {
+ get { return playerId_; }
+ set {
+ playerId_ = value;
+ }
+ }
+
+ /// Field number for the "skill_id" field.
+ public const int SkillIdFieldNumber = 2;
+ private int skillId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int SkillId {
+ get { return skillId_; }
+ set {
+ skillId_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as SkillMsg);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(SkillMsg other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (PlayerId != other.PlayerId) return false;
+ if (SkillId != other.SkillId) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
+ if (SkillId != 0) hash ^= SkillId.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (SkillId != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SkillId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (PlayerId != 0L) {
+ output.WriteRawTag(8);
+ output.WriteInt64(PlayerId);
+ }
+ if (SkillId != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(SkillId);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (PlayerId != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
+ }
+ if (SkillId != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(SkillMsg other) {
+ if (other == null) {
+ return;
+ }
+ if (other.PlayerId != 0L) {
+ PlayerId = other.PlayerId;
+ }
+ if (other.SkillId != 0) {
+ SkillId = other.SkillId;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ SkillId = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ PlayerId = input.ReadInt64();
+ break;
+ }
+ case 16: {
+ SkillId = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/interface/Assets/Scripts/Proto/Message2ServerGrpc.cs b/interface/Assets/Scripts/Proto/Message2ServerGrpc.cs
new file mode 100644
index 0000000..e69de29
diff --git a/interface/Assets/Scripts/Proto/MessageType.cs b/interface/Assets/Scripts/Proto/MessageType.cs
new file mode 100644
index 0000000..37a2e30
--- /dev/null
+++ b/interface/Assets/Scripts/Proto/MessageType.cs
@@ -0,0 +1,213 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: MessageType.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Protobuf {
+
+ /// Holder for reflection information generated from MessageType.proto
+ public static partial class MessageTypeReflection {
+
+ #region Descriptor
+ /// File descriptor for MessageType.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static MessageTypeReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChFNZXNzYWdlVHlwZS5wcm90bxIIcHJvdG9idWYqhwEKCkJ1bGxldFR5cGUS",
+ "FAoQTlVMTF9CVUxMRVRfVFlQRRAAEhAKDEZMWUlOR19LTklGRRABEhwKGENP",
+ "TU1PTl9BVFRBQ0tfT0ZfVFJJQ0tFUhACEg8KC0ZBU1RfQlVMTEVUEAMSEwoP",
+ "T1JESU5BUllfQlVMTEVUEAQSDQoJQVRPTV9CT01CEAUqoQEKCVBsYWNlVHlw",
+ "ZRITCg9OVUxMX1BMQUNFX1RZUEUQABIICgRMQU5EEAESCAoEV0FMTBACEgkK",
+ "BUdSQVNTEAMSDQoJQ0xBU1NST09NEAQSCAoER0FURRAFEg8KC0hJRERFTl9H",
+ "QVRFEAYSCgoGV0lORE9XEAcSCQoFRE9PUjMQCBIJCgVET09SNRAJEgkKBURP",
+ "T1I2EAoSCQoFQ0hFU1QQCyo4CglTaGFwZVR5cGUSEwoPTlVMTF9TSEFQRV9U",
+ "WVBFEAASCgoGQ0lSQ0xFEAESCgoGU1FVQVJFEAIqSAoIUHJvcFR5cGUSEgoO",
+ "TlVMTF9QUk9QX1RZUEUQABIICgRLRVkzEAESCAoES0VZNRACEggKBEtFWTYQ",
+ "AxIKCgZQVFlQRTQQBCpmCg9TdHVkZW50QnVmZlR5cGUSEwoPTlVMTF9TQlVG",
+ "Rl9UWVBFEAASDgoKU0JVRkZUWVBFMRABEg4KClNCVUZGVFlQRTIQAhIOCgpT",
+ "QlVGRlRZUEUzEAMSDgoKU0JVRkZUWVBFNBAEKqkCCgtQbGF5ZXJTdGF0ZRIP",
+ "CgtOVUxMX1NUQVRVUxAAEggKBElETEUQARIMCghMRUFSTklORxACEgwKCEFE",
+ "RElDVEVEEAMSCAoEUVVJVBAEEg0KCUdSQURVQVRFRBAFEgsKB1RSRUFURUQQ",
+ "BhILCgdSRVNDVUVEEAcSCwoHU1RVTk5FRBAIEgwKCFRSRUFUSU5HEAkSDAoI",
+ "UkVTQ1VJTkcQChIMCghTV0lOR0lORxALEg0KCUFUVEFDS0lORxAMEgsKB0xP",
+ "Q0tJTkcQDRINCglSVU1NQUdJTkcQDhIMCghDTElNQklORxAPEhMKD09QRU5J",
+ "TkdfQV9DSEVTVBAQEhcKE1VTSU5HX1NQRUNJQUxfU0tJTEwQERISCg5PUEVO",
+ "SU5HX0FfR0FURRASKmYKD1RyaWNrZXJCdWZmVHlwZRITCg9OVUxMX1RCVUZG",
+ "X1RZUEUQABIOCgpUQlVGRlRZUEUxEAESDgoKVEJVRkZUWVBFMhACEg4KClRC",
+ "VUZGVFlQRTMQAxIOCgpUQlVGRlRZUEU0EAQqSgoKUGxheWVyVHlwZRIUChBO",
+ "VUxMX1BMQVlFUl9UWVBFEAASEgoOU1RVREVOVF9QTEFZRVIQARISCg5UUklD",
+ "S0VSX1BMQVlFUhACKmcKC1N0dWRlbnRUeXBlEhUKEU5VTExfU1RVREVOVF9U",
+ "WVBFEAASCwoHQVRITEVURRABEhAKDFNUVURFTlRUWVBFMhACEhAKDFNUVURF",
+ "TlRUWVBFMxADEhAKDFNUVURFTlRUWVBFNBAEKmgKC1RyaWNrZXJUeXBlEhUK",
+ "EU5VTExfVFJJQ0tFUl9UWVBFEAASDAoIQVNTQVNTSU4QARIQCgxUUklDS0VS",
+ "VFlQRTIQAhIQCgxUUklDS0VSVFlQRTMQAxIQCgxUUklDS0VSVFlQRTQQBCpQ",
+ "CglHYW1lU3RhdGUSEwoPTlVMTF9HQU1FX1NUQVRFEAASDgoKR0FNRV9TVEFS",
+ "VBABEhAKDEdBTUVfUlVOTklORxACEgwKCEdBTUVfRU5EEANiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Protobuf.BulletType), typeof(global::Protobuf.PlaceType), typeof(global::Protobuf.ShapeType), typeof(global::Protobuf.PropType), typeof(global::Protobuf.StudentBuffType), typeof(global::Protobuf.PlayerState), typeof(global::Protobuf.TrickerBuffType), typeof(global::Protobuf.PlayerType), typeof(global::Protobuf.StudentType), typeof(global::Protobuf.TrickerType), typeof(global::Protobuf.GameState), }, null, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum BulletType {
+ [pbr::OriginalName("NULL_BULLET_TYPE")] NullBulletType = 0,
+ [pbr::OriginalName("FLYING_KNIFE")] FlyingKnife = 1,
+ [pbr::OriginalName("COMMON_ATTACK_OF_TRICKER")] CommonAttackOfTricker = 2,
+ [pbr::OriginalName("FAST_BULLET")] FastBullet = 3,
+ [pbr::OriginalName("ORDINARY_BULLET")] OrdinaryBullet = 4,
+ [pbr::OriginalName("ATOM_BOMB")] AtomBomb = 5,
+ }
+
+ public enum PlaceType {
+ [pbr::OriginalName("NULL_PLACE_TYPE")] NullPlaceType = 0,
+ ///
+ /// 地图情况,其中Gate是总体的大门,HiddenGate是地窖
+ ///
+ [pbr::OriginalName("LAND")] Land = 1,
+ [pbr::OriginalName("WALL")] Wall = 2,
+ [pbr::OriginalName("GRASS")] Grass = 3,
+ [pbr::OriginalName("CLASSROOM")] Classroom = 4,
+ [pbr::OriginalName("GATE")] Gate = 5,
+ [pbr::OriginalName("HIDDEN_GATE")] HiddenGate = 6,
+ [pbr::OriginalName("WINDOW")] Window = 7,
+ [pbr::OriginalName("DOOR3")] Door3 = 8,
+ [pbr::OriginalName("DOOR5")] Door5 = 9,
+ [pbr::OriginalName("DOOR6")] Door6 = 10,
+ ///
+ /// 待补充有特殊效果的地形
+ ///
+ [pbr::OriginalName("CHEST")] Chest = 11,
+ }
+
+ public enum ShapeType {
+ [pbr::OriginalName("NULL_SHAPE_TYPE")] NullShapeType = 0,
+ ///
+ /// 人类、屠夫、可拾取道具等为圆形
+ ///
+ [pbr::OriginalName("CIRCLE")] Circle = 1,
+ ///
+ /// 地形均为方形
+ ///
+ [pbr::OriginalName("SQUARE")] Square = 2,
+ }
+
+ public enum PropType {
+ [pbr::OriginalName("NULL_PROP_TYPE")] NullPropType = 0,
+ [pbr::OriginalName("KEY3")] Key3 = 1,
+ [pbr::OriginalName("KEY5")] Key5 = 2,
+ [pbr::OriginalName("KEY6")] Key6 = 3,
+ [pbr::OriginalName("PTYPE4")] Ptype4 = 4,
+ }
+
+ public enum StudentBuffType {
+ [pbr::OriginalName("NULL_SBUFF_TYPE")] NullSbuffType = 0,
+ [pbr::OriginalName("SBUFFTYPE1")] Sbufftype1 = 1,
+ [pbr::OriginalName("SBUFFTYPE2")] Sbufftype2 = 2,
+ [pbr::OriginalName("SBUFFTYPE3")] Sbufftype3 = 3,
+ [pbr::OriginalName("SBUFFTYPE4")] Sbufftype4 = 4,
+ }
+
+ public enum PlayerState {
+ [pbr::OriginalName("NULL_STATUS")] NullStatus = 0,
+ ///
+ /// 正常状态
+ ///
+ [pbr::OriginalName("IDLE")] Idle = 1,
+ ///
+ /// 学习状态,相当于在修机器
+ ///
+ [pbr::OriginalName("LEARNING")] Learning = 2,
+ ///
+ /// 血条归零后原地沉迷游戏
+ ///
+ [pbr::OriginalName("ADDICTED")] Addicted = 3,
+ ///
+ /// 退学状态,相当于寄了
+ ///
+ [pbr::OriginalName("QUIT")] Quit = 4,
+ ///
+ /// 毕业状态,相当于逃脱了
+ ///
+ [pbr::OriginalName("GRADUATED")] Graduated = 5,
+ [pbr::OriginalName("TREATED")] Treated = 6,
+ [pbr::OriginalName("RESCUED")] Rescued = 7,
+ [pbr::OriginalName("STUNNED")] Stunned = 8,
+ [pbr::OriginalName("TREATING")] Treating = 9,
+ [pbr::OriginalName("RESCUING")] Rescuing = 10,
+ ///
+ /// 后摇
+ ///
+ [pbr::OriginalName("SWINGING")] Swinging = 11,
+ ///
+ /// 前摇
+ ///
+ [pbr::OriginalName("ATTACKING")] Attacking = 12,
+ [pbr::OriginalName("LOCKING")] Locking = 13,
+ [pbr::OriginalName("RUMMAGING")] Rummaging = 14,
+ ///
+ /// 翻窗
+ ///
+ [pbr::OriginalName("CLIMBING")] Climbing = 15,
+ [pbr::OriginalName("OPENING_A_CHEST")] OpeningAChest = 16,
+ [pbr::OriginalName("USING_SPECIAL_SKILL")] UsingSpecialSkill = 17,
+ [pbr::OriginalName("OPENING_A_GATE")] OpeningAGate = 18,
+ }
+
+ public enum TrickerBuffType {
+ [pbr::OriginalName("NULL_TBUFF_TYPE")] NullTbuffType = 0,
+ [pbr::OriginalName("TBUFFTYPE1")] Tbufftype1 = 1,
+ [pbr::OriginalName("TBUFFTYPE2")] Tbufftype2 = 2,
+ [pbr::OriginalName("TBUFFTYPE3")] Tbufftype3 = 3,
+ [pbr::OriginalName("TBUFFTYPE4")] Tbufftype4 = 4,
+ }
+
+ public enum PlayerType {
+ [pbr::OriginalName("NULL_PLAYER_TYPE")] NullPlayerType = 0,
+ [pbr::OriginalName("STUDENT_PLAYER")] StudentPlayer = 1,
+ [pbr::OriginalName("TRICKER_PLAYER")] TrickerPlayer = 2,
+ }
+
+ public enum StudentType {
+ [pbr::OriginalName("NULL_STUDENT_TYPE")] NullStudentType = 0,
+ [pbr::OriginalName("ATHLETE")] Athlete = 1,
+ [pbr::OriginalName("STUDENTTYPE2")] _2 = 2,
+ [pbr::OriginalName("STUDENTTYPE3")] _3 = 3,
+ [pbr::OriginalName("STUDENTTYPE4")] _4 = 4,
+ }
+
+ public enum TrickerType {
+ [pbr::OriginalName("NULL_TRICKER_TYPE")] NullTrickerType = 0,
+ [pbr::OriginalName("ASSASSIN")] Assassin = 1,
+ [pbr::OriginalName("TRICKERTYPE2")] _2 = 2,
+ [pbr::OriginalName("TRICKERTYPE3")] _3 = 3,
+ [pbr::OriginalName("TRICKERTYPE4")] _4 = 4,
+ }
+
+ ///
+ /// 游戏进行状态
+ ///
+ public enum GameState {
+ [pbr::OriginalName("NULL_GAME_STATE")] NullGameState = 0,
+ [pbr::OriginalName("GAME_START")] GameStart = 1,
+ [pbr::OriginalName("GAME_RUNNING")] GameRunning = 2,
+ [pbr::OriginalName("GAME_END")] GameEnd = 3,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code
diff --git a/interface/Assets/Scripts/Proto/MessageTypeGrpc.cs b/interface/Assets/Scripts/Proto/MessageTypeGrpc.cs
new file mode 100644
index 0000000..e69de29
diff --git a/interface/Assets/Scripts/Proto/Services.cs b/interface/Assets/Scripts/Proto/Services.cs
new file mode 100644
index 0000000..fbbae4f
--- /dev/null
+++ b/interface/Assets/Scripts/Proto/Services.cs
@@ -0,0 +1,61 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Services.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Protobuf {
+
+ /// Holder for reflection information generated from Services.proto
+ public static partial class ServicesReflection {
+
+ #region Descriptor
+ /// File descriptor for Services.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static ServicesReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Cg5TZXJ2aWNlcy5wcm90bxIIcHJvdG9idWYaFU1lc3NhZ2UyQ2xpZW50cy5w",
+ "cm90bxoUTWVzc2FnZTJTZXJ2ZXIucHJvdG8y6AcKEEF2YWlsYWJsZVNlcnZp",
+ "Y2USMwoNVHJ5Q29ubmVjdGlvbhIPLnByb3RvYnVmLklETXNnGhEucHJvdG9i",
+ "dWYuQm9vbFJlcxI9CglBZGRQbGF5ZXISEy5wcm90b2J1Zi5QbGF5ZXJNc2ca",
+ "GS5wcm90b2J1Zi5NZXNzYWdlVG9DbGllbnQwARIsCgRNb3ZlEhEucHJvdG9i",
+ "dWYuTW92ZU1zZxoRLnByb3RvYnVmLk1vdmVSZXMSMAoIUGlja1Byb3ASES5w",
+ "cm90b2J1Zi5Qcm9wTXNnGhEucHJvdG9idWYuQm9vbFJlcxIvCgdVc2VQcm9w",
+ "EhEucHJvdG9idWYuUHJvcE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSMQoJVGhy",
+ "b3dQcm9wEhEucHJvdG9idWYuUHJvcE1zZxoRLnByb3RvYnVmLkJvb2xSZXMS",
+ "MQoIVXNlU2tpbGwSEi5wcm90b2J1Zi5Ta2lsbE1zZxoRLnByb3RvYnVmLkJv",
+ "b2xSZXMSMwoLU2VuZE1lc3NhZ2USES5wcm90b2J1Zi5TZW5kTXNnGhEucHJv",
+ "dG9idWYuQm9vbFJlcxIzCg1TdGFydExlYXJuaW5nEg8ucHJvdG9idWYuSURN",
+ "c2caES5wcm90b2J1Zi5Cb29sUmVzEjUKD1N0YXJ0UmVzY3VlTWF0ZRIPLnBy",
+ "b3RvYnVmLklETXNnGhEucHJvdG9idWYuQm9vbFJlcxI0Cg5TdGFydFRyZWF0",
+ "TWF0ZRIPLnByb3RvYnVmLklETXNnGhEucHJvdG9idWYuQm9vbFJlcxIwCgZB",
+ "dHRhY2sSEy5wcm90b2J1Zi5BdHRhY2tNc2caES5wcm90b2J1Zi5Cb29sUmVz",
+ "Ei4KCEdyYWR1YXRlEg8ucHJvdG9idWYuSURNc2caES5wcm90b2J1Zi5Cb29s",
+ "UmVzEi4KCE9wZW5Eb29yEg8ucHJvdG9idWYuSURNc2caES5wcm90b2J1Zi5C",
+ "b29sUmVzEi8KCUNsb3NlRG9vchIPLnByb3RvYnVmLklETXNnGhEucHJvdG9i",
+ "dWYuQm9vbFJlcxIwCgpTa2lwV2luZG93Eg8ucHJvdG9idWYuSURNc2caES5w",
+ "cm90b2J1Zi5Cb29sUmVzEjMKDVN0YXJ0T3BlbkdhdGUSDy5wcm90b2J1Zi5J",
+ "RE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSNAoOU3RhcnRPcGVuQ2hlc3QSDy5w",
+ "cm90b2J1Zi5JRE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSMgoMRW5kQWxsQWN0",
+ "aW9uEg8ucHJvdG9idWYuSURNc2caES5wcm90b2J1Zi5Cb29sUmVzYgZwcm90",
+ "bzM="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Protobuf.Message2ClientsReflection.Descriptor, global::Protobuf.Message2ServerReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, null));
+ }
+ #endregion
+
+ }
+}
+
+#endregion Designer generated code
diff --git a/interface/Assets/Scripts/Proto/ServicesGrpc.cs b/interface/Assets/Scripts/Proto/ServicesGrpc.cs
new file mode 100644
index 0000000..c475bb4
--- /dev/null
+++ b/interface/Assets/Scripts/Proto/ServicesGrpc.cs
@@ -0,0 +1,1170 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Services.proto
+//
+#pragma warning disable 0414, 1591, 8981
+#region Designer generated code
+
+using grpc = global::Grpc.Core;
+
+namespace Protobuf {
+ public static partial class AvailableService
+ {
+ static readonly string __ServiceName = "protobuf.AvailableService";
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
+ {
+ #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
+ if (message is global::Google.Protobuf.IBufferMessage)
+ {
+ context.SetPayloadLength(message.CalculateSize());
+ global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
+ context.Complete();
+ return;
+ }
+ #endif
+ context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static class __Helper_MessageCache
+ {
+ public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage
+ {
+ #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
+ if (__Helper_MessageCache.IsBufferMessage)
+ {
+ return parser.ParseFrom(context.PayloadAsReadOnlySequence());
+ }
+ #endif
+ return parser.ParseFrom(context.PayloadAsNewBuffer());
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_IDMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.IDMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_BoolRes = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.BoolRes.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_PlayerMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.PlayerMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_MessageToClient = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MessageToClient.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_MoveMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MoveMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_MoveRes = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MoveRes.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_PropMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.PropMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_SkillMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.SkillMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_SendMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.SendMsg.Parser));
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Marshaller __Marshaller_protobuf_AttackMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.AttackMsg.Parser));
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_TryConnection = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "TryConnection",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_AddPlayer = new grpc::Method(
+ grpc::MethodType.ServerStreaming,
+ __ServiceName,
+ "AddPlayer",
+ __Marshaller_protobuf_PlayerMsg,
+ __Marshaller_protobuf_MessageToClient);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_Move = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "Move",
+ __Marshaller_protobuf_MoveMsg,
+ __Marshaller_protobuf_MoveRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_PickProp = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "PickProp",
+ __Marshaller_protobuf_PropMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_UseProp = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "UseProp",
+ __Marshaller_protobuf_PropMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_ThrowProp = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "ThrowProp",
+ __Marshaller_protobuf_PropMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_UseSkill = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "UseSkill",
+ __Marshaller_protobuf_SkillMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_SendMessage = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "SendMessage",
+ __Marshaller_protobuf_SendMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_StartLearning = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "StartLearning",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_StartRescueMate = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "StartRescueMate",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_StartTreatMate = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "StartTreatMate",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_Attack = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "Attack",
+ __Marshaller_protobuf_AttackMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_Graduate = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "Graduate",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_OpenDoor = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "OpenDoor",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_CloseDoor = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "CloseDoor",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_SkipWindow = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "SkipWindow",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_StartOpenGate = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "StartOpenGate",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_StartOpenChest = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "StartOpenChest",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ static readonly grpc::Method __Method_EndAllAction = new grpc::Method(
+ grpc::MethodType.Unary,
+ __ServiceName,
+ "EndAllAction",
+ __Marshaller_protobuf_IDMsg,
+ __Marshaller_protobuf_BoolRes);
+
+ /// Service descriptor
+ public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
+ {
+ get { return global::Protobuf.ServicesReflection.Descriptor.Services[0]; }
+ }
+
+ /// Base class for server-side implementations of AvailableService
+ [grpc::BindServiceMethod(typeof(AvailableService), "BindService")]
+ public abstract partial class AvailableServiceBase
+ {
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task TryConnection(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 游戏开局调用一次的服务
+ ///
+ /// The request received from the client.
+ /// Used for sending responses back to the client.
+ /// The context of the server-side call handler being invoked.
+ /// A task indicating completion of the handler.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task AddPlayer(global::Protobuf.PlayerMsg request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 游戏过程中玩家执行操作的服务
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task Move(global::Protobuf.MoveMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task PickProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task UseProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task ThrowProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task UseSkill(global::Protobuf.SkillMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task SendMessage(global::Protobuf.SendMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// rpc GetMessage (IDMsg) returns (stream MsgRes);
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task StartLearning(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 开始救人
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task StartRescueMate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task StartTreatMate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 攻击
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task Attack(global::Protobuf.AttackMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 相当于逃跑
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task Graduate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 开门
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task OpenDoor(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 关门
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task CloseDoor(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 窗户
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task SkipWindow(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 开闸门
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task StartOpenGate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task StartOpenChest(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ ///
+ /// 结束所有动作
+ ///
+ /// The request received from the client.
+ /// The context of the server-side call handler being invoked.
+ /// The response to send back to the client (wrapped by a task).
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::System.Threading.Tasks.Task EndAllAction(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
+ {
+ throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
+ }
+
+ }
+
+ /// Client for AvailableService
+ public partial class AvailableServiceClient : grpc::ClientBase
+ {
+ /// Creates a new client for AvailableService
+ /// The channel to use to make remote calls.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public AvailableServiceClient(grpc::ChannelBase channel) : base(channel)
+ {
+ }
+ /// Creates a new client for AvailableService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public AvailableServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
+ {
+ }
+ /// Protected parameterless constructor to allow creation of test doubles.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ protected AvailableServiceClient() : base()
+ {
+ }
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ protected AvailableServiceClient(ClientBaseConfiguration configuration) : base(configuration)
+ {
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes TryConnection(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return TryConnection(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes TryConnection(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_TryConnection, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall TryConnectionAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return TryConnectionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall TryConnectionAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_TryConnection, null, options, request);
+ }
+ ///
+ /// 游戏开局调用一次的服务
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncServerStreamingCall AddPlayer(global::Protobuf.PlayerMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return AddPlayer(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 游戏开局调用一次的服务
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncServerStreamingCall AddPlayer(global::Protobuf.PlayerMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncServerStreamingCall(__Method_AddPlayer, null, options, request);
+ }
+ ///
+ /// 游戏过程中玩家执行操作的服务
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.MoveRes Move(global::Protobuf.MoveMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return Move(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 游戏过程中玩家执行操作的服务
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.MoveRes Move(global::Protobuf.MoveMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_Move, null, options, request);
+ }
+ ///
+ /// 游戏过程中玩家执行操作的服务
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall MoveAsync(global::Protobuf.MoveMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return MoveAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 游戏过程中玩家执行操作的服务
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall MoveAsync(global::Protobuf.MoveMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_Move, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes PickProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return PickProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes PickProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_PickProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall PickPropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return PickPropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall PickPropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_PickProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes UseProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return UseProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes UseProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_UseProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall UsePropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return UsePropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall UsePropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_UseProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes ThrowProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return ThrowProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes ThrowProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_ThrowProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall ThrowPropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return ThrowPropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall ThrowPropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_ThrowProp, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes UseSkill(global::Protobuf.SkillMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return UseSkill(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes UseSkill(global::Protobuf.SkillMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_UseSkill, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall UseSkillAsync(global::Protobuf.SkillMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return UseSkillAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall UseSkillAsync(global::Protobuf.SkillMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_UseSkill, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes SendMessage(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return SendMessage(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes SendMessage(global::Protobuf.SendMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_SendMessage, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall SendMessageAsync(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return SendMessageAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall SendMessageAsync(global::Protobuf.SendMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_SendMessage, null, options, request);
+ }
+ ///
+ /// rpc GetMessage (IDMsg) returns (stream MsgRes);
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartLearning(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartLearning(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// rpc GetMessage (IDMsg) returns (stream MsgRes);
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartLearning(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_StartLearning, null, options, request);
+ }
+ ///
+ /// rpc GetMessage (IDMsg) returns (stream MsgRes);
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartLearningAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartLearningAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// rpc GetMessage (IDMsg) returns (stream MsgRes);
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartLearningAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_StartLearning, null, options, request);
+ }
+ ///
+ /// 开始救人
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartRescueMate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartRescueMate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开始救人
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartRescueMate(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_StartRescueMate, null, options, request);
+ }
+ ///
+ /// 开始救人
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartRescueMateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartRescueMateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开始救人
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartRescueMateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_StartRescueMate, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartTreatMate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartTreatMate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartTreatMate(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_StartTreatMate, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartTreatMateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartTreatMateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartTreatMateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_StartTreatMate, null, options, request);
+ }
+ ///
+ /// 攻击
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes Attack(global::Protobuf.AttackMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return Attack(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 攻击
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes Attack(global::Protobuf.AttackMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_Attack, null, options, request);
+ }
+ ///
+ /// 攻击
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall AttackAsync(global::Protobuf.AttackMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return AttackAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 攻击
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall AttackAsync(global::Protobuf.AttackMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_Attack, null, options, request);
+ }
+ ///
+ /// 相当于逃跑
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes Graduate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return Graduate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 相当于逃跑
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes Graduate(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_Graduate, null, options, request);
+ }
+ ///
+ /// 相当于逃跑
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall GraduateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return GraduateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 相当于逃跑
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall GraduateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_Graduate, null, options, request);
+ }
+ ///
+ /// 开门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes OpenDoor(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return OpenDoor(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes OpenDoor(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_OpenDoor, null, options, request);
+ }
+ ///
+ /// 开门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall OpenDoorAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return OpenDoorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall OpenDoorAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_OpenDoor, null, options, request);
+ }
+ ///
+ /// 关门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes CloseDoor(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return CloseDoor(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 关门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes CloseDoor(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_CloseDoor, null, options, request);
+ }
+ ///
+ /// 关门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall CloseDoorAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return CloseDoorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 关门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall CloseDoorAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_CloseDoor, null, options, request);
+ }
+ ///
+ /// 窗户
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes SkipWindow(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return SkipWindow(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 窗户
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes SkipWindow(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_SkipWindow, null, options, request);
+ }
+ ///
+ /// 窗户
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall SkipWindowAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return SkipWindowAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 窗户
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall SkipWindowAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_SkipWindow, null, options, request);
+ }
+ ///
+ /// 开闸门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartOpenGate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartOpenGate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开闸门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartOpenGate(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_StartOpenGate, null, options, request);
+ }
+ ///
+ /// 开闸门
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartOpenGateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartOpenGateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 开闸门
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartOpenGateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_StartOpenGate, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartOpenChest(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartOpenChest(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes StartOpenChest(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_StartOpenChest, null, options, request);
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartOpenChestAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return StartOpenChestAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall StartOpenChestAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_StartOpenChest, null, options, request);
+ }
+ ///
+ /// 结束所有动作
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes EndAllAction(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return EndAllAction(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 结束所有动作
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The response received from the server.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual global::Protobuf.BoolRes EndAllAction(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.BlockingUnaryCall(__Method_EndAllAction, null, options, request);
+ }
+ ///
+ /// 结束所有动作
+ ///
+ /// The request to send to the server.
+ /// The initial metadata to send with the call. This parameter is optional.
+ /// An optional deadline for the call. The call will be cancelled if deadline is hit.
+ /// An optional token for canceling the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall EndAllActionAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ {
+ return EndAllActionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
+ }
+ ///
+ /// 结束所有动作
+ ///
+ /// The request to send to the server.
+ /// The options for the call.
+ /// The call object.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public virtual grpc::AsyncUnaryCall EndAllActionAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
+ {
+ return CallInvoker.AsyncUnaryCall(__Method_EndAllAction, null, options, request);
+ }
+ /// Creates a new instance of client from given ClientBaseConfiguration.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ protected override AvailableServiceClient NewInstance(ClientBaseConfiguration configuration)
+ {
+ return new AvailableServiceClient(configuration);
+ }
+ }
+
+ /// Creates service definition that can be registered with a server
+ /// An object implementing the server-side handling logic.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public static grpc::ServerServiceDefinition BindService(AvailableServiceBase serviceImpl)
+ {
+ return grpc::ServerServiceDefinition.CreateBuilder()
+ .AddMethod(__Method_TryConnection, serviceImpl.TryConnection)
+ .AddMethod(__Method_AddPlayer, serviceImpl.AddPlayer)
+ .AddMethod(__Method_Move, serviceImpl.Move)
+ .AddMethod(__Method_PickProp, serviceImpl.PickProp)
+ .AddMethod(__Method_UseProp, serviceImpl.UseProp)
+ .AddMethod(__Method_ThrowProp, serviceImpl.ThrowProp)
+ .AddMethod(__Method_UseSkill, serviceImpl.UseSkill)
+ .AddMethod(__Method_SendMessage, serviceImpl.SendMessage)
+ .AddMethod(__Method_StartLearning, serviceImpl.StartLearning)
+ .AddMethod(__Method_StartRescueMate, serviceImpl.StartRescueMate)
+ .AddMethod(__Method_StartTreatMate, serviceImpl.StartTreatMate)
+ .AddMethod(__Method_Attack, serviceImpl.Attack)
+ .AddMethod(__Method_Graduate, serviceImpl.Graduate)
+ .AddMethod(__Method_OpenDoor, serviceImpl.OpenDoor)
+ .AddMethod(__Method_CloseDoor, serviceImpl.CloseDoor)
+ .AddMethod(__Method_SkipWindow, serviceImpl.SkipWindow)
+ .AddMethod(__Method_StartOpenGate, serviceImpl.StartOpenGate)
+ .AddMethod(__Method_StartOpenChest, serviceImpl.StartOpenChest)
+ .AddMethod(__Method_EndAllAction, serviceImpl.EndAllAction).Build();
+ }
+
+ /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
+ /// Note: this method is part of an experimental API that can change or be removed without any prior notice.
+ /// Service methods will be bound by calling AddMethod on this object.
+ /// An object implementing the server-side handling logic.
+ [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
+ public static void BindService(grpc::ServiceBinderBase serviceBinder, AvailableServiceBase serviceImpl)
+ {
+ serviceBinder.AddMethod(__Method_TryConnection, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TryConnection));
+ serviceBinder.AddMethod(__Method_AddPlayer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.AddPlayer));
+ serviceBinder.AddMethod(__Method_Move, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Move));
+ serviceBinder.AddMethod(__Method_PickProp, serviceImpl == null ? null : new grpc::UnaryServerMethod