diff --git a/interface/Assets/Scripts/Debugger.cs b/interface/Assets/Scripts/Debugger.cs index 45fc7fd5..65e7573c 100644 --- a/interface/Assets/Scripts/Debugger.cs +++ b/interface/Assets/Scripts/Debugger.cs @@ -8,46 +8,14 @@ public class Debugger : MonoBehaviour // Start is called before the first frame update void Start() { - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.CivilianShip), - new Vector3(0, 0), - Quaternion.identity, - GameObject.Find("Ship").transform, - 0); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.MilitaryShip), - new Vector3(5, 0), - Quaternion.identity, - GameObject.Find("Ship").transform, - 0); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.FlagShip), - new Vector3(10, 0), - Quaternion.identity, - GameObject.Find("Ship").transform, - 0); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ConstructionType.Fort), - new Vector3(15, -5), - Quaternion.identity, - GameObject.Find("Ship").transform, - 0); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.CivilianShip), - new Vector3(0, -5), - Quaternion.identity, - GameObject.Find("Ship").transform, - 1); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.MilitaryShip), - new Vector3(5, -5), - Quaternion.identity, - GameObject.Find("Ship").transform, - 1); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.FlagShip), - new Vector3(10, -5), - Quaternion.identity, - GameObject.Find("Ship").transform, - 1); - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ConstructionType.Fort), - new Vector3(15, -5), - Quaternion.identity, - GameObject.Find("Ship").transform, - 1); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.CivilianShip), new Vector3(0, 0), Quaternion.identity, GameObject.Find("Ship").transform, 0); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.MilitaryShip), new Vector3(5, 0), Quaternion.identity, GameObject.Find("Ship").transform, 0); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.FlagShip), new Vector3(10, 0), Quaternion.identity, GameObject.Find("Ship").transform, 0); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ConstructionType.Fort), new Vector3(15, -5), Quaternion.identity, GameObject.Find("Ship").transform, 0); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.CivilianShip), new Vector3(0, -5), Quaternion.identity, GameObject.Find("Ship").transform, 1); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.MilitaryShip), new Vector3(5, -5), Quaternion.identity, GameObject.Find("Ship").transform, 1); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ShipType.FlagShip), new Vector3(10, -5), Quaternion.identity, GameObject.Find("Ship").transform, 1); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(ConstructionType.Fort), new Vector3(15, -5), Quaternion.identity, GameObject.Find("Ship").transform, 1); } // Update is called once per frame diff --git a/interface/Assets/Scripts/Live/MessageReceiverLive.cs b/interface/Assets/Scripts/Live/MessageReceiverLive.cs index e7f7e61a..a00f6b11 100644 --- a/interface/Assets/Scripts/Live/MessageReceiverLive.cs +++ b/interface/Assets/Scripts/Live/MessageReceiverLive.cs @@ -21,8 +21,7 @@ async void Start() var client = new AvailableService.AvailableServiceClient(channel); Debug.Log(channel); Debug.Log(client); - PlayerMsg msg = new PlayerMsg() - { + PlayerMsg msg = new PlayerMsg() { PlayerId = 2024, ShipType = ShipType.NullShipType, TeamId = -1, @@ -63,11 +62,7 @@ private void Receive(MessageToClient message) if (MessageManager.GetInstance().ShipG[messageOfObj.ShipMessage.Guid] == null) { MessageManager.GetInstance().ShipG[messageOfObj.ShipMessage.Guid] = - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(messageOfObj.ShipMessage.ShipType), - new Vector3(messageOfObj.ShipMessage.X, messageOfObj.ShipMessage.Y), - Quaternion.identity, - GameObject.Find("Ship").transform, - (int)messageOfObj.ShipMessage.TeamId); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(messageOfObj.ShipMessage.ShipType), new Vector3(messageOfObj.ShipMessage.X, messageOfObj.ShipMessage.Y), Quaternion.identity, GameObject.Find("Ship").transform, (int)messageOfObj.ShipMessage.TeamId); MessageManager.GetInstance().Ship[messageOfObj.ShipMessage.Guid] = messageOfObj.ShipMessage; } break; @@ -75,10 +70,7 @@ private void Receive(MessageToClient message) if (MessageManager.GetInstance().BulletG[messageOfObj.BulletMessage.Guid] == null) { MessageManager.GetInstance().BulletG[messageOfObj.BulletMessage.Guid] = - ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(messageOfObj.BulletMessage.Type), - new Vector3(messageOfObj.BulletMessage.X, messageOfObj.BulletMessage.Y), - Quaternion.identity, - GameObject.Find("Bullet").transform); + ObjectCreater.GetInstance().CreateObject(ParaDefine.GetInstance().PT(messageOfObj.BulletMessage.Type), new Vector3(messageOfObj.BulletMessage.X, messageOfObj.BulletMessage.Y), Quaternion.identity, GameObject.Find("Bullet").transform); MessageManager.GetInstance().Bullet[messageOfObj.BulletMessage.Guid] = messageOfObj.BulletMessage; } break; @@ -94,7 +86,8 @@ private void Receive(MessageToClient message) break; case MessageOfObj.MessageOfObjOneofCase.ResourceMessage: break; - default: break; + default: + break; } } } diff --git a/interface/Assets/Scripts/Manager/MapControl.cs b/interface/Assets/Scripts/Manager/MapControl.cs index 09c58033..f7f16281 100644 --- a/interface/Assets/Scripts/Manager/MapControl.cs +++ b/interface/Assets/Scripts/Manager/MapControl.cs @@ -20,12 +20,14 @@ public void DrawMap(MessageOfMap map) ParaDefine.GetInstance().PT(PlaceType.Space), ParaDefine.GetInstance().CellToMap(i, j), Quaternion.identity, - mapFa.transform); + mapFa.transform + ); ObjectCreater.GetInstance().CreateObject( ParaDefine.GetInstance().PT(map.Rows[i].Cols[j]), ParaDefine.GetInstance().CellToMap(i, j), Quaternion.identity, - mapFa.transform); + mapFa.transform + ); } } } diff --git a/interface/Assets/Scripts/Manager/ObjectCreater.cs b/interface/Assets/Scripts/Manager/ObjectCreater.cs index 9f76f892..3b658b8d 100644 --- a/interface/Assets/Scripts/Manager/ObjectCreater.cs +++ b/interface/Assets/Scripts/Manager/ObjectCreater.cs @@ -8,7 +8,8 @@ public class ObjectCreater : SingletonMono public GameObject CreateObject(GameObject targetG, Vector2 position, Quaternion quaternion, Transform targetPa, int teamKey = 0) { GameObject obj = Instantiate(targetG, position, quaternion, targetPa); - if (targetG.transform.childCount == 0) return obj; + if (targetG.transform.childCount == 0) + return obj; Debug.Log("step1"); RendererControl.GetInstance().SetColToChild(teamKey, obj.transform); Debug.Log("step3"); diff --git a/interface/Assets/Scripts/Manager/RendererControl.cs b/interface/Assets/Scripts/Manager/RendererControl.cs index d5fd8a1d..3ea231ff 100644 --- a/interface/Assets/Scripts/Manager/RendererControl.cs +++ b/interface/Assets/Scripts/Manager/RendererControl.cs @@ -66,7 +66,8 @@ public void SetColToChild(int teamKey, Transform targetTransform) CurrentPropertyBlock.SetColor("_GlowColor", Team1Color.Item2); CurrentRenderer.SetPropertyBlock(CurrentPropertyBlock); return; - default: return; + default: + return; } } } diff --git a/interface/Assets/Scripts/ParaDefine.cs b/interface/Assets/Scripts/ParaDefine.cs index 7e0cb7d3..b96f42c1 100755 --- a/interface/Assets/Scripts/ParaDefine.cs +++ b/interface/Assets/Scripts/ParaDefine.cs @@ -41,7 +41,8 @@ public GameObject PT(PlaceType _placeType, int teamKey = 0) return resourceG[GetRand() % 3]; case PlaceType.Wormhole: return wormholeG; - default: return null; + default: + return null; } } public GameObject PT(ConstructionType _constructionType, int teamKey = 0) @@ -54,7 +55,8 @@ public GameObject PT(ConstructionType _constructionType, int teamKey = 0) return factoryG[teamKey]; case ConstructionType.Fort: return fortG; - default: return null; + default: + return null; } } public GameObject PT(ShipType _shipType, int teamKey = 0) @@ -67,7 +69,8 @@ public GameObject PT(ShipType _shipType, int teamKey = 0) return militaryshipG; case ShipType.FlagShip: return flagshipG; - default: return null; + default: + return null; } } public GameObject PT(BulletType _bulletType, int teamKey = 0) @@ -84,7 +87,8 @@ public GameObject PT(BulletType _bulletType, int teamKey = 0) return missileG[teamKey]; case BulletType.Arc: return arcG[teamKey]; - default: return null; + default: + return null; } } public Vector3 CellToMap(int x, int y) diff --git a/interface/Assets/Scripts/Play/MessageReceiverPlay.cs b/interface/Assets/Scripts/Play/MessageReceiverPlay.cs index ce91e777..b229875b 100644 --- a/interface/Assets/Scripts/Play/MessageReceiverPlay.cs +++ b/interface/Assets/Scripts/Play/MessageReceiverPlay.cs @@ -21,8 +21,7 @@ async void Start() var client = new AvailableService.AvailableServiceClient(channel); Debug.Log(channel); Debug.Log(client); - PlayerMsg msg = new PlayerMsg() - { + PlayerMsg msg = new PlayerMsg() { PlayerId = 0, TeamId = 0, ShipType = ShipType.CivilianShip, @@ -93,10 +92,7 @@ private void Receive(MessageToClient message) if (MessageManager.GetInstance().ShipG[messageOfObj.ShipMessage.Guid] == null) { MessageManager.GetInstance().ShipG[messageOfObj.ShipMessage.Guid] = - Instantiate(ParaDefine.GetInstance().PT(messageOfObj.ShipMessage.ShipType), - new Vector3(messageOfObj.ShipMessage.X, messageOfObj.ShipMessage.Y), - Quaternion.identity, - GameObject.Find("Ship").transform); + Instantiate(ParaDefine.GetInstance().PT(messageOfObj.ShipMessage.ShipType), new Vector3(messageOfObj.ShipMessage.X, messageOfObj.ShipMessage.Y), Quaternion.identity, GameObject.Find("Ship").transform); MessageManager.GetInstance().Ship[messageOfObj.ShipMessage.Guid] = messageOfObj.ShipMessage; } break; @@ -104,10 +100,7 @@ private void Receive(MessageToClient message) if (MessageManager.GetInstance().BulletG[messageOfObj.BulletMessage.Guid] == null) { MessageManager.GetInstance().BulletG[messageOfObj.BulletMessage.Guid] = - Instantiate(ParaDefine.GetInstance().PT(messageOfObj.BulletMessage.Type), - new Vector3(messageOfObj.BulletMessage.X, messageOfObj.BulletMessage.Y), - Quaternion.identity, - GameObject.Find("Bullet").transform); + Instantiate(ParaDefine.GetInstance().PT(messageOfObj.BulletMessage.Type), new Vector3(messageOfObj.BulletMessage.X, messageOfObj.BulletMessage.Y), Quaternion.identity, GameObject.Find("Bullet").transform); MessageManager.GetInstance().Bullet[messageOfObj.BulletMessage.Guid] = messageOfObj.BulletMessage; } break; @@ -123,7 +116,8 @@ private void Receive(MessageToClient message) break; case MessageOfObj.MessageOfObjOneofCase.ResourceMessage: break; - default: break; + default: + break; } } } diff --git a/interface/Assets/Scripts/Proto/Message2Clients.cs b/interface/Assets/Scripts/Proto/Message2Clients.cs index 1dcce06f..e3a7e689 100755 --- a/interface/Assets/Scripts/Proto/Message2Clients.cs +++ b/interface/Assets/Scripts/Proto/Message2Clients.cs @@ -9,6344 +9,8050 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Protobuf { +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", + "ZS5wcm90byLyAwoNTWVzc2FnZU9mU2hpcBIJCgF4GAEgASgFEgkKAXkYAiAB", + "KAUSDQoFc3BlZWQYAyABKAUSCgoCaHAYBCABKAUSDQoFYXJtb3IYBSABKAUS", + "DgoGc2hpZWxkGAYgASgFEg8KB3RlYW1faWQYByABKAMSEQoJcGxheWVyX2lk", + "GAggASgDEgwKBGd1aWQYCSABKAMSJwoKc2hpcF9zdGF0ZRgKIAEoDjITLnBy", + "b3RvYnVmLlNoaXBTdGF0ZRIlCglzaGlwX3R5cGUYCyABKA4yEi5wcm90b2J1", + "Zi5TaGlwVHlwZRISCgp2aWV3X3JhbmdlGAwgASgFEi0KDXByb2R1Y2VyX3R5", + "cGUYDSABKA4yFi5wcm90b2J1Zi5Qcm9kdWNlclR5cGUSMwoQY29uc3RydWN0", + "b3JfdHlwZRgOIAEoDjIZLnByb3RvYnVmLkNvbnN0cnVjdG9yVHlwZRInCgph", + "cm1vcl90eXBlGA8gASgOMhMucHJvdG9idWYuQXJtb3JUeXBlEikKC3NoaWVs", + "ZF90eXBlGBAgASgOMhQucHJvdG9idWYuU2hpZWxkVHlwZRIpCgt3ZWFwb25f", + "dHlwZRgRIAEoDjIULnByb3RvYnVmLldlYXBvblR5cGUSGAoQZmFjaW5nX2Rp", + "cmVjdGlvbhgSIAEoASK3AQoPTWVzc2FnZU9mQnVsbGV0EiIKBHR5cGUYASAB", + "KA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkKAXgYAiABKAUSCQoBeRgDIAEo", + "BRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgBEg4KBmRhbWFnZRgFIAEoBRIP", + "Cgd0ZWFtX2lkGAYgASgDEgwKBGd1aWQYByABKAMSEgoKYm9tYl9yYW5nZRgI", + "IAEoARINCgVzcGVlZBgJIAEoBSKTAQoVTWVzc2FnZU9mQm9tYmVkQnVsbGV0", + "EiIKBHR5cGUYASABKA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkKAXgYAiAB", + "KAUSCQoBeRgDIAEoBRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgBEhIKCm1h", + "cHBpbmdfaWQYBSABKAMSEgoKYm9tYl9yYW5nZRgGIAEoASJFChBNZXNzYWdl", + "T2ZGYWN0b3J5EgkKAXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgDIAEoBRIP", + "Cgd0ZWFtX2lkGAQgASgDIkcKEk1lc3NhZ2VPZkNvbW11bml0eRIJCgF4GAEg", + "ASgFEgkKAXkYAiABKAUSCgoCaHAYAyABKAUSDwoHdGVhbV9pZBgEIAEoAyJC", + "Cg1NZXNzYWdlT2ZGb3J0EgkKAXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgD", + "IAEoBRIPCgd0ZWFtX2lkGAQgASgDIjUKEU1lc3NhZ2VPZldvcm1ob2xlEgkK", + "AXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgDIAEoBSI7ChFNZXNzYWdlT2ZS", + "ZXNvdXJjZRIJCgF4GAEgASgFEgkKAXkYAiABKAUSEAoIcHJvZ3Jlc3MYAyAB", + "KAUiQgoNTWVzc2FnZU9mSG9tZRIJCgF4GAEgASgFEgkKAXkYAiABKAUSCgoC", + "aHAYAyABKAUSDwoHdGVhbV9pZBgEIAEoAyKBAQoMTWVzc2FnZU9mTWFwEg4K", + "BmhlaWdodBgBIAEoDRINCgV3aWR0aBgCIAEoDRIoCgRyb3dzGAMgAygLMhou", + "cHJvdG9idWYuTWVzc2FnZU9mTWFwLlJvdxooCgNSb3cSIQoEY29scxgBIAMo", + "DjITLnByb3RvYnVmLlBsYWNlVHlwZSJRCg1NZXNzYWdlT2ZUZWFtEg8KB3Rl", + "YW1faWQYASABKAMSEQoJcGxheWVyX2lkGAIgASgDEg0KBXNjb3JlGAMgASgF", + "Eg0KBW1vbmV5GAQgASgFIp8FCgxNZXNzYWdlT2ZPYmoSLwoMc2hpcF9tZXNz", + "YWdlGAEgASgLMhcucHJvdG9idWYuTWVzc2FnZU9mU2hpcEgAEjMKDmJ1bGxl", + "dF9tZXNzYWdlGAIgASgLMhkucHJvdG9idWYuTWVzc2FnZU9mQnVsbGV0SAAS", + "NQoPZmFjdG9yeV9tZXNzYWdlGAMgASgLMhoucHJvdG9idWYuTWVzc2FnZU9m", + "RmFjdG9yeUgAEjkKEWNvbW11bml0eV9tZXNzYWdlGAQgASgLMhwucHJvdG9i", + "dWYuTWVzc2FnZU9mQ29tbXVuaXR5SAASLwoMZm9ydF9tZXNzYWdlGAUgASgL", + "MhcucHJvdG9idWYuTWVzc2FnZU9mRm9ydEgAEjcKEHdvcm1ob2xlX21lc3Nh", + "Z2UYBiABKAsyGy5wcm90b2J1Zi5NZXNzYWdlT2ZXb3JtaG9sZUgAEi8KDGhv", + "bWVfbWVzc2FnZRgHIAEoCzIXLnByb3RvYnVmLk1lc3NhZ2VPZkhvbWVIABI3", + "ChByZXNvdXJjZV9tZXNzYWdlGAggASgLMhsucHJvdG9idWYuTWVzc2FnZU9m", + "UmVzb3VyY2VIABItCgttYXBfbWVzc2FnZRgJIAEoCzIWLnByb3RvYnVmLk1l", + "c3NhZ2VPZk1hcEgAEi8KDG5ld3NfbWVzc2FnZRgKIAEoCzIXLnByb3RvYnVm", + "Lk1lc3NhZ2VPZk5ld3NIABJAChVib21iZWRfYnVsbGV0X21lc3NhZ2UYCyAB", + "KAsyHy5wcm90b2J1Zi5NZXNzYWdlT2ZCb21iZWRCdWxsZXRIABIvCgx0ZWFt", + "X21lc3NhZ2UYDCABKAsyFy5wcm90b2J1Zi5NZXNzYWdlT2ZUZWFtSABCEAoO", + "bWVzc2FnZV9vZl9vYmoiUgoMTWVzc2FnZU9mQWxsEhEKCWdhbWVfdGltZRgB", + "IAEoBRIWCg5yZWRfdGVhbV9zY29yZRgCIAEoBRIXCg9ibHVlX3RlYW1fc2Nv", + "cmUYAyABKAUilAEKD01lc3NhZ2VUb0NsaWVudBIrCgtvYmpfbWVzc2FnZRgB", + "IAMoCzIWLnByb3RvYnVmLk1lc3NhZ2VPZk9iahInCgpnYW1lX3N0YXRlGAIg", + "ASgOMhMucHJvdG9idWYuR2FtZVN0YXRlEisKC2FsbF9tZXNzYWdlGAMgASgL", + "MhYucHJvdG9idWYuTWVzc2FnZU9mQWxsIkoKB01vdmVSZXMSFAoMYWN0dWFs", + "X3NwZWVkGAEgASgDEhQKDGFjdHVhbF9hbmdsZRgCIAEoARITCgthY3Rfc3Vj", + "Y2VzcxgDIAEoCCIeCgdCb29sUmVzEhMKC2FjdF9zdWNjZXNzGAEgASgIIjkK", + "C1NoaXBJbmZvUmVzEioKCXNoaXBfaW5mbxgBIAMoCzIXLnByb3RvYnVmLk1l", + "c3NhZ2VPZlNoaXAiGQoGRWNvUmVzEg8KB2Vjb25vbXkYASABKAMiaQoNTWVz", + "c2FnZU9mTmV3cxIWCgx0ZXh0X21lc3NhZ2UYASABKAlIABIYCg5iaW5hcnlf", + "bWVzc2FnZRgEIAEoDEgAEg8KB2Zyb21faWQYAiABKAMSDQoFdG9faWQYAyAB", + "KANCBgoEbmV3c2IGcHJvdG8z" + ) + ); + 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.MessageOfShip), global::Protobuf.MessageOfShip.Parser, new[] { "X", "Y", "Speed", "Hp", "Armor", "Shield", "TeamId", "PlayerId", "Guid", "ShipState", "ShipType", "ViewRange", "ProducerType", "ConstructorType", "ArmorType", "ShieldType", "WeaponType", "FacingDirection" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfBullet), global::Protobuf.MessageOfBullet.Parser, new[] { "Type", "X", "Y", "FacingDirection", "Damage", "TeamId", "Guid", "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.MessageOfFactory), global::Protobuf.MessageOfFactory.Parser, new[] { "X", "Y", "Hp", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfCommunity), global::Protobuf.MessageOfCommunity.Parser, new[] { "X", "Y", "Hp", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfFort), global::Protobuf.MessageOfFort.Parser, new[] { "X", "Y", "Hp", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfWormhole), global::Protobuf.MessageOfWormhole.Parser, new[] { "X", "Y", "Hp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfResource), global::Protobuf.MessageOfResource.Parser, new[] { "X", "Y", "Progress" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfHome), global::Protobuf.MessageOfHome.Parser, new[] { "X", "Y", "Hp", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap), global::Protobuf.MessageOfMap.Parser, new[] { "Height", "Width", "Rows" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap.Types.Row), global::Protobuf.MessageOfMap.Types.Row.Parser, new[] { "Cols" }, null, null, null, null) }), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfTeam), global::Protobuf.MessageOfTeam.Parser, new[] { "TeamId", "PlayerId", "Score", "Money" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfObj), global::Protobuf.MessageOfObj.Parser, new[] { "ShipMessage", "BulletMessage", "FactoryMessage", "CommunityMessage", "FortMessage", "WormholeMessage", "HomeMessage", "ResourceMessage", "MapMessage", "NewsMessage", "BombedBulletMessage", "TeamMessage" }, new[] { "MessageOfObj" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfAll), global::Protobuf.MessageOfAll.Parser, new[] { "GameTime", "RedTeamScore", "BlueTeamScore" }, 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), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.ShipInfoRes), global::Protobuf.ShipInfoRes.Parser, new[] { "ShipInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.EcoRes), global::Protobuf.EcoRes.Parser, new[] { "Economy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfNews), global::Protobuf.MessageOfNews.Parser, new[] { "TextMessage", "BinaryMessage", "FromId", "ToId" }, new[] { "News" }, null, null, null) })); + } +#endregion + } +#region Messages + public sealed partial class MessageOfShip : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfShip()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - /// Holder for reflection information generated from Message2Clients.proto - public static partial class Message2ClientsReflection { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[0]; + } + } - #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", - "ZS5wcm90byLyAwoNTWVzc2FnZU9mU2hpcBIJCgF4GAEgASgFEgkKAXkYAiAB", - "KAUSDQoFc3BlZWQYAyABKAUSCgoCaHAYBCABKAUSDQoFYXJtb3IYBSABKAUS", - "DgoGc2hpZWxkGAYgASgFEg8KB3RlYW1faWQYByABKAMSEQoJcGxheWVyX2lk", - "GAggASgDEgwKBGd1aWQYCSABKAMSJwoKc2hpcF9zdGF0ZRgKIAEoDjITLnBy", - "b3RvYnVmLlNoaXBTdGF0ZRIlCglzaGlwX3R5cGUYCyABKA4yEi5wcm90b2J1", - "Zi5TaGlwVHlwZRISCgp2aWV3X3JhbmdlGAwgASgFEi0KDXByb2R1Y2VyX3R5", - "cGUYDSABKA4yFi5wcm90b2J1Zi5Qcm9kdWNlclR5cGUSMwoQY29uc3RydWN0", - "b3JfdHlwZRgOIAEoDjIZLnByb3RvYnVmLkNvbnN0cnVjdG9yVHlwZRInCgph", - "cm1vcl90eXBlGA8gASgOMhMucHJvdG9idWYuQXJtb3JUeXBlEikKC3NoaWVs", - "ZF90eXBlGBAgASgOMhQucHJvdG9idWYuU2hpZWxkVHlwZRIpCgt3ZWFwb25f", - "dHlwZRgRIAEoDjIULnByb3RvYnVmLldlYXBvblR5cGUSGAoQZmFjaW5nX2Rp", - "cmVjdGlvbhgSIAEoASK3AQoPTWVzc2FnZU9mQnVsbGV0EiIKBHR5cGUYASAB", - "KA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkKAXgYAiABKAUSCQoBeRgDIAEo", - "BRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgBEg4KBmRhbWFnZRgFIAEoBRIP", - "Cgd0ZWFtX2lkGAYgASgDEgwKBGd1aWQYByABKAMSEgoKYm9tYl9yYW5nZRgI", - "IAEoARINCgVzcGVlZBgJIAEoBSKTAQoVTWVzc2FnZU9mQm9tYmVkQnVsbGV0", - "EiIKBHR5cGUYASABKA4yFC5wcm90b2J1Zi5CdWxsZXRUeXBlEgkKAXgYAiAB", - "KAUSCQoBeRgDIAEoBRIYChBmYWNpbmdfZGlyZWN0aW9uGAQgASgBEhIKCm1h", - "cHBpbmdfaWQYBSABKAMSEgoKYm9tYl9yYW5nZRgGIAEoASJFChBNZXNzYWdl", - "T2ZGYWN0b3J5EgkKAXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgDIAEoBRIP", - "Cgd0ZWFtX2lkGAQgASgDIkcKEk1lc3NhZ2VPZkNvbW11bml0eRIJCgF4GAEg", - "ASgFEgkKAXkYAiABKAUSCgoCaHAYAyABKAUSDwoHdGVhbV9pZBgEIAEoAyJC", - "Cg1NZXNzYWdlT2ZGb3J0EgkKAXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgD", - "IAEoBRIPCgd0ZWFtX2lkGAQgASgDIjUKEU1lc3NhZ2VPZldvcm1ob2xlEgkK", - "AXgYASABKAUSCQoBeRgCIAEoBRIKCgJocBgDIAEoBSI7ChFNZXNzYWdlT2ZS", - "ZXNvdXJjZRIJCgF4GAEgASgFEgkKAXkYAiABKAUSEAoIcHJvZ3Jlc3MYAyAB", - "KAUiQgoNTWVzc2FnZU9mSG9tZRIJCgF4GAEgASgFEgkKAXkYAiABKAUSCgoC", - "aHAYAyABKAUSDwoHdGVhbV9pZBgEIAEoAyKBAQoMTWVzc2FnZU9mTWFwEg4K", - "BmhlaWdodBgBIAEoDRINCgV3aWR0aBgCIAEoDRIoCgRyb3dzGAMgAygLMhou", - "cHJvdG9idWYuTWVzc2FnZU9mTWFwLlJvdxooCgNSb3cSIQoEY29scxgBIAMo", - "DjITLnByb3RvYnVmLlBsYWNlVHlwZSJRCg1NZXNzYWdlT2ZUZWFtEg8KB3Rl", - "YW1faWQYASABKAMSEQoJcGxheWVyX2lkGAIgASgDEg0KBXNjb3JlGAMgASgF", - "Eg0KBW1vbmV5GAQgASgFIp8FCgxNZXNzYWdlT2ZPYmoSLwoMc2hpcF9tZXNz", - "YWdlGAEgASgLMhcucHJvdG9idWYuTWVzc2FnZU9mU2hpcEgAEjMKDmJ1bGxl", - "dF9tZXNzYWdlGAIgASgLMhkucHJvdG9idWYuTWVzc2FnZU9mQnVsbGV0SAAS", - "NQoPZmFjdG9yeV9tZXNzYWdlGAMgASgLMhoucHJvdG9idWYuTWVzc2FnZU9m", - "RmFjdG9yeUgAEjkKEWNvbW11bml0eV9tZXNzYWdlGAQgASgLMhwucHJvdG9i", - "dWYuTWVzc2FnZU9mQ29tbXVuaXR5SAASLwoMZm9ydF9tZXNzYWdlGAUgASgL", - "MhcucHJvdG9idWYuTWVzc2FnZU9mRm9ydEgAEjcKEHdvcm1ob2xlX21lc3Nh", - "Z2UYBiABKAsyGy5wcm90b2J1Zi5NZXNzYWdlT2ZXb3JtaG9sZUgAEi8KDGhv", - "bWVfbWVzc2FnZRgHIAEoCzIXLnByb3RvYnVmLk1lc3NhZ2VPZkhvbWVIABI3", - "ChByZXNvdXJjZV9tZXNzYWdlGAggASgLMhsucHJvdG9idWYuTWVzc2FnZU9m", - "UmVzb3VyY2VIABItCgttYXBfbWVzc2FnZRgJIAEoCzIWLnByb3RvYnVmLk1l", - "c3NhZ2VPZk1hcEgAEi8KDG5ld3NfbWVzc2FnZRgKIAEoCzIXLnByb3RvYnVm", - "Lk1lc3NhZ2VPZk5ld3NIABJAChVib21iZWRfYnVsbGV0X21lc3NhZ2UYCyAB", - "KAsyHy5wcm90b2J1Zi5NZXNzYWdlT2ZCb21iZWRCdWxsZXRIABIvCgx0ZWFt", - "X21lc3NhZ2UYDCABKAsyFy5wcm90b2J1Zi5NZXNzYWdlT2ZUZWFtSABCEAoO", - "bWVzc2FnZV9vZl9vYmoiUgoMTWVzc2FnZU9mQWxsEhEKCWdhbWVfdGltZRgB", - "IAEoBRIWCg5yZWRfdGVhbV9zY29yZRgCIAEoBRIXCg9ibHVlX3RlYW1fc2Nv", - "cmUYAyABKAUilAEKD01lc3NhZ2VUb0NsaWVudBIrCgtvYmpfbWVzc2FnZRgB", - "IAMoCzIWLnByb3RvYnVmLk1lc3NhZ2VPZk9iahInCgpnYW1lX3N0YXRlGAIg", - "ASgOMhMucHJvdG9idWYuR2FtZVN0YXRlEisKC2FsbF9tZXNzYWdlGAMgASgL", - "MhYucHJvdG9idWYuTWVzc2FnZU9mQWxsIkoKB01vdmVSZXMSFAoMYWN0dWFs", - "X3NwZWVkGAEgASgDEhQKDGFjdHVhbF9hbmdsZRgCIAEoARITCgthY3Rfc3Vj", - "Y2VzcxgDIAEoCCIeCgdCb29sUmVzEhMKC2FjdF9zdWNjZXNzGAEgASgIIjkK", - "C1NoaXBJbmZvUmVzEioKCXNoaXBfaW5mbxgBIAMoCzIXLnByb3RvYnVmLk1l", - "c3NhZ2VPZlNoaXAiGQoGRWNvUmVzEg8KB2Vjb25vbXkYASABKAMiaQoNTWVz", - "c2FnZU9mTmV3cxIWCgx0ZXh0X21lc3NhZ2UYASABKAlIABIYCg5iaW5hcnlf", - "bWVzc2FnZRgEIAEoDEgAEg8KB2Zyb21faWQYAiABKAMSDQoFdG9faWQYAyAB", - "KANCBgoEbmV3c2IGcHJvdG8z")); - 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.MessageOfShip), global::Protobuf.MessageOfShip.Parser, new[]{ "X", "Y", "Speed", "Hp", "Armor", "Shield", "TeamId", "PlayerId", "Guid", "ShipState", "ShipType", "ViewRange", "ProducerType", "ConstructorType", "ArmorType", "ShieldType", "WeaponType", "FacingDirection" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfBullet), global::Protobuf.MessageOfBullet.Parser, new[]{ "Type", "X", "Y", "FacingDirection", "Damage", "TeamId", "Guid", "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.MessageOfFactory), global::Protobuf.MessageOfFactory.Parser, new[]{ "X", "Y", "Hp", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfCommunity), global::Protobuf.MessageOfCommunity.Parser, new[]{ "X", "Y", "Hp", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfFort), global::Protobuf.MessageOfFort.Parser, new[]{ "X", "Y", "Hp", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfWormhole), global::Protobuf.MessageOfWormhole.Parser, new[]{ "X", "Y", "Hp" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfResource), global::Protobuf.MessageOfResource.Parser, new[]{ "X", "Y", "Progress" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfHome), global::Protobuf.MessageOfHome.Parser, new[]{ "X", "Y", "Hp", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap), global::Protobuf.MessageOfMap.Parser, new[]{ "Height", "Width", "Rows" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfMap.Types.Row), global::Protobuf.MessageOfMap.Types.Row.Parser, new[]{ "Cols" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfTeam), global::Protobuf.MessageOfTeam.Parser, new[]{ "TeamId", "PlayerId", "Score", "Money" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfObj), global::Protobuf.MessageOfObj.Parser, new[]{ "ShipMessage", "BulletMessage", "FactoryMessage", "CommunityMessage", "FortMessage", "WormholeMessage", "HomeMessage", "ResourceMessage", "MapMessage", "NewsMessage", "BombedBulletMessage", "TeamMessage" }, new[]{ "MessageOfObj" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfAll), global::Protobuf.MessageOfAll.Parser, new[]{ "GameTime", "RedTeamScore", "BlueTeamScore" }, 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), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.ShipInfoRes), global::Protobuf.ShipInfoRes.Parser, new[]{ "ShipInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.EcoRes), global::Protobuf.EcoRes.Parser, new[]{ "Economy" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MessageOfNews), global::Protobuf.MessageOfNews.Parser, new[]{ "TextMessage", "BinaryMessage", "FromId", "ToId" }, new[]{ "News" }, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class MessageOfShip : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfShip()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[0]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfShip() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfShip() { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfShip(MessageOfShip other) : this() { - x_ = other.x_; - y_ = other.y_; - speed_ = other.speed_; - hp_ = other.hp_; - armor_ = other.armor_; - shield_ = other.shield_; - teamId_ = other.teamId_; - playerId_ = other.playerId_; - guid_ = other.guid_; - shipState_ = other.shipState_; - shipType_ = other.shipType_; - viewRange_ = other.viewRange_; - producerType_ = other.producerType_; - constructorType_ = other.constructorType_; - armorType_ = other.armorType_; - shieldType_ = other.shieldType_; - weaponType_ = other.weaponType_; - facingDirection_ = other.facingDirection_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfShip(MessageOfShip other) : + this() + { + x_ = other.x_; + y_ = other.y_; + speed_ = other.speed_; + hp_ = other.hp_; + armor_ = other.armor_; + shield_ = other.shield_; + teamId_ = other.teamId_; + playerId_ = other.playerId_; + guid_ = other.guid_; + shipState_ = other.shipState_; + shipType_ = other.shipType_; + viewRange_ = other.viewRange_; + producerType_ = other.producerType_; + constructorType_ = other.constructorType_; + armorType_ = other.armorType_; + shieldType_ = other.shieldType_; + weaponType_ = other.weaponType_; + facingDirection_ = other.facingDirection_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfShip Clone() { - return new MessageOfShip(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfShip Clone() + { + return new MessageOfShip(this); + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public int Speed { - get { return speed_; } - set { - speed_ = value; - } - } + /// Field number for the "speed" field. + public const int SpeedFieldNumber = 3; + private int speed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Speed + { + get { + return speed_; + } + set { + speed_ = value; + } + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 4; - private int hp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 4; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - /// Field number for the "armor" field. - public const int ArmorFieldNumber = 5; - private int armor_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Armor { - get { return armor_; } - set { - armor_ = value; - } - } + /// Field number for the "armor" field. + public const int ArmorFieldNumber = 5; + private int armor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Armor + { + get { + return armor_; + } + set { + armor_ = value; + } + } - /// Field number for the "shield" field. - public const int ShieldFieldNumber = 6; - private int shield_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Shield { - get { return shield_; } - set { - shield_ = value; - } - } + /// Field number for the "shield" field. + public const int ShieldFieldNumber = 6; + private int shield_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Shield + { + get { + return shield_; + } + set { + shield_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 7; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 7; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 8; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 8; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - /// Field number for the "guid" field. - public const int GuidFieldNumber = 9; - private long guid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Guid { - get { return guid_; } - set { - guid_ = value; - } - } + /// Field number for the "guid" field. + public const int GuidFieldNumber = 9; + private long guid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Guid + { + get { + return guid_; + } + set { + guid_ = value; + } + } - /// Field number for the "ship_state" field. - public const int ShipStateFieldNumber = 10; - private global::Protobuf.ShipState shipState_ = global::Protobuf.ShipState.NullStatus; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ShipState ShipState { - get { return shipState_; } - set { - shipState_ = value; - } - } + /// Field number for the "ship_state" field. + public const int ShipStateFieldNumber = 10; + private global::Protobuf.ShipState shipState_ = global::Protobuf.ShipState.NullStatus; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ShipState ShipState + { + get { + return shipState_; + } + set { + shipState_ = value; + } + } - /// Field number for the "ship_type" field. - public const int ShipTypeFieldNumber = 11; - private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ShipType ShipType { - get { return shipType_; } - set { - shipType_ = value; - } - } + /// Field number for the "ship_type" field. + public const int ShipTypeFieldNumber = 11; + private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ShipType ShipType + { + get { + return shipType_; + } + set { + shipType_ = value; + } + } - /// Field number for the "view_range" field. - public const int ViewRangeFieldNumber = 12; - private int viewRange_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int ViewRange { - get { return viewRange_; } - set { - viewRange_ = value; - } - } + /// Field number for the "view_range" field. + public const int ViewRangeFieldNumber = 12; + private int viewRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ViewRange + { + get { + return viewRange_; + } + set { + viewRange_ = value; + } + } - /// Field number for the "producer_type" field. - public const int ProducerTypeFieldNumber = 13; - private global::Protobuf.ProducerType producerType_ = global::Protobuf.ProducerType.NullProducerType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ProducerType ProducerType { - get { return producerType_; } - set { - producerType_ = value; - } - } + /// Field number for the "producer_type" field. + public const int ProducerTypeFieldNumber = 13; + private global::Protobuf.ProducerType producerType_ = global::Protobuf.ProducerType.NullProducerType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ProducerType ProducerType + { + get { + return producerType_; + } + set { + producerType_ = value; + } + } - /// Field number for the "constructor_type" field. - public const int ConstructorTypeFieldNumber = 14; - private global::Protobuf.ConstructorType constructorType_ = global::Protobuf.ConstructorType.NullConstructorType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ConstructorType ConstructorType { - get { return constructorType_; } - set { - constructorType_ = value; - } - } + /// Field number for the "constructor_type" field. + public const int ConstructorTypeFieldNumber = 14; + private global::Protobuf.ConstructorType constructorType_ = global::Protobuf.ConstructorType.NullConstructorType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ConstructorType ConstructorType + { + get { + return constructorType_; + } + set { + constructorType_ = value; + } + } + + /// Field number for the "armor_type" field. + public const int ArmorTypeFieldNumber = 15; + private global::Protobuf.ArmorType armorType_ = global::Protobuf.ArmorType.NullArmorType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ArmorType ArmorType + { + get { + return armorType_; + } + set { + armorType_ = value; + } + } + + /// Field number for the "shield_type" field. + public const int ShieldTypeFieldNumber = 16; + private global::Protobuf.ShieldType shieldType_ = global::Protobuf.ShieldType.NullShieldType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ShieldType ShieldType + { + get { + return shieldType_; + } + set { + shieldType_ = value; + } + } + + /// Field number for the "weapon_type" field. + public const int WeaponTypeFieldNumber = 17; + private global::Protobuf.WeaponType weaponType_ = global::Protobuf.WeaponType.NullWeaponType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.WeaponType WeaponType + { + get { + return weaponType_; + } + set { + weaponType_ = value; + } + } + + /// Field number for the "facing_direction" field. + public const int FacingDirectionFieldNumber = 18; + private double facingDirection_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double FacingDirection + { + get { + return facingDirection_; + } + set { + facingDirection_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfShip); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfShip 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 (Hp != other.Hp) + return false; + if (Armor != other.Armor) + return false; + if (Shield != other.Shield) + return false; + if (TeamId != other.TeamId) + return false; + if (PlayerId != other.PlayerId) + return false; + if (Guid != other.Guid) + return false; + if (ShipState != other.ShipState) + return false; + if (ShipType != other.ShipType) + return false; + if (ViewRange != other.ViewRange) + return false; + if (ProducerType != other.ProducerType) + return false; + if (ConstructorType != other.ConstructorType) + return false; + if (ArmorType != other.ArmorType) + return false; + if (ShieldType != other.ShieldType) + return false; + if (WeaponType != other.WeaponType) + return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) + return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + hash ^= Hp.GetHashCode(); + if (Armor != 0) + hash ^= Armor.GetHashCode(); + if (Shield != 0) + hash ^= Shield.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (Guid != 0L) + hash ^= Guid.GetHashCode(); + if (ShipState != global::Protobuf.ShipState.NullStatus) + hash ^= ShipState.GetHashCode(); + if (ShipType != global::Protobuf.ShipType.NullShipType) + hash ^= ShipType.GetHashCode(); + if (ViewRange != 0) + hash ^= ViewRange.GetHashCode(); + if (ProducerType != global::Protobuf.ProducerType.NullProducerType) + hash ^= ProducerType.GetHashCode(); + if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) + hash ^= ConstructorType.GetHashCode(); + if (ArmorType != global::Protobuf.ArmorType.NullArmorType) + hash ^= ArmorType.GetHashCode(); + if (ShieldType != global::Protobuf.ShieldType.NullShieldType) + hash ^= ShieldType.GetHashCode(); + if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) + hash ^= WeaponType.GetHashCode(); + if (FacingDirection != 0D) + hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(32); + output.WriteInt32(Hp); + } + if (Armor != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Armor); + } + if (Shield != 0) + { + output.WriteRawTag(48); + output.WriteInt32(Shield); + } + if (TeamId != 0L) + { + output.WriteRawTag(56); + output.WriteInt64(TeamId); + } + if (PlayerId != 0L) + { + output.WriteRawTag(64); + output.WriteInt64(PlayerId); + } + if (Guid != 0L) + { + output.WriteRawTag(72); + output.WriteInt64(Guid); + } + if (ShipState != global::Protobuf.ShipState.NullStatus) + { + output.WriteRawTag(80); + output.WriteEnum((int)ShipState); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(88); + output.WriteEnum((int)ShipType); + } + if (ViewRange != 0) + { + output.WriteRawTag(96); + output.WriteInt32(ViewRange); + } + if (ProducerType != global::Protobuf.ProducerType.NullProducerType) + { + output.WriteRawTag(104); + output.WriteEnum((int)ProducerType); + } + if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) + { + output.WriteRawTag(112); + output.WriteEnum((int)ConstructorType); + } + if (ArmorType != global::Protobuf.ArmorType.NullArmorType) + { + output.WriteRawTag(120); + output.WriteEnum((int)ArmorType); + } + if (ShieldType != global::Protobuf.ShieldType.NullShieldType) + { + output.WriteRawTag(128, 1); + output.WriteEnum((int)ShieldType); + } + if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) + { + output.WriteRawTag(136, 1); + output.WriteEnum((int)WeaponType); + } + if (FacingDirection != 0D) + { + output.WriteRawTag(145, 1); + output.WriteDouble(FacingDirection); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(32); + output.WriteInt32(Hp); + } + if (Armor != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Armor); + } + if (Shield != 0) + { + output.WriteRawTag(48); + output.WriteInt32(Shield); + } + if (TeamId != 0L) + { + output.WriteRawTag(56); + output.WriteInt64(TeamId); + } + if (PlayerId != 0L) + { + output.WriteRawTag(64); + output.WriteInt64(PlayerId); + } + if (Guid != 0L) + { + output.WriteRawTag(72); + output.WriteInt64(Guid); + } + if (ShipState != global::Protobuf.ShipState.NullStatus) + { + output.WriteRawTag(80); + output.WriteEnum((int)ShipState); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(88); + output.WriteEnum((int)ShipType); + } + if (ViewRange != 0) + { + output.WriteRawTag(96); + output.WriteInt32(ViewRange); + } + if (ProducerType != global::Protobuf.ProducerType.NullProducerType) + { + output.WriteRawTag(104); + output.WriteEnum((int)ProducerType); + } + if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) + { + output.WriteRawTag(112); + output.WriteEnum((int)ConstructorType); + } + if (ArmorType != global::Protobuf.ArmorType.NullArmorType) + { + output.WriteRawTag(120); + output.WriteEnum((int)ArmorType); + } + if (ShieldType != global::Protobuf.ShieldType.NullShieldType) + { + output.WriteRawTag(128, 1); + output.WriteEnum((int)ShieldType); + } + if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) + { + output.WriteRawTag(136, 1); + output.WriteEnum((int)WeaponType); + } + if (FacingDirection != 0D) + { + output.WriteRawTag(145, 1); + output.WriteDouble(FacingDirection); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (Armor != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Armor); + } + if (Shield != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Shield); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (Guid != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid); + } + if (ShipState != global::Protobuf.ShipState.NullStatus) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ShipState); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ShipType); + } + if (ViewRange != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ViewRange); + } + if (ProducerType != global::Protobuf.ProducerType.NullProducerType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ProducerType); + } + if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ConstructorType); + } + if (ArmorType != global::Protobuf.ArmorType.NullArmorType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ArmorType); + } + if (ShieldType != global::Protobuf.ShieldType.NullShieldType) + { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int)ShieldType); + } + if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) + { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int)WeaponType); + } + if (FacingDirection != 0D) + { + size += 2 + 8; + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfShip 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.Hp != 0) + { + Hp = other.Hp; + } + if (other.Armor != 0) + { + Armor = other.Armor; + } + if (other.Shield != 0) + { + Shield = other.Shield; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.Guid != 0L) + { + Guid = other.Guid; + } + if (other.ShipState != global::Protobuf.ShipState.NullStatus) + { + ShipState = other.ShipState; + } + if (other.ShipType != global::Protobuf.ShipType.NullShipType) + { + ShipType = other.ShipType; + } + if (other.ViewRange != 0) + { + ViewRange = other.ViewRange; + } + if (other.ProducerType != global::Protobuf.ProducerType.NullProducerType) + { + ProducerType = other.ProducerType; + } + if (other.ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) + { + ConstructorType = other.ConstructorType; + } + if (other.ArmorType != global::Protobuf.ArmorType.NullArmorType) + { + ArmorType = other.ArmorType; + } + if (other.ShieldType != global::Protobuf.ShieldType.NullShieldType) + { + ShieldType = other.ShieldType; + } + if (other.WeaponType != global::Protobuf.WeaponType.NullWeaponType) + { + WeaponType = other.WeaponType; + } + if (other.FacingDirection != 0D) + { + FacingDirection = other.FacingDirection; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 40: + { + Armor = input.ReadInt32(); + break; + } + case 48: + { + Shield = input.ReadInt32(); + break; + } + case 56: + { + TeamId = input.ReadInt64(); + break; + } + case 64: + { + PlayerId = input.ReadInt64(); + break; + } + case 72: + { + Guid = input.ReadInt64(); + break; + } + case 80: + { + ShipState = (global::Protobuf.ShipState)input.ReadEnum(); + break; + } + case 88: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 96: + { + ViewRange = input.ReadInt32(); + break; + } + case 104: + { + ProducerType = (global::Protobuf.ProducerType)input.ReadEnum(); + break; + } + case 112: + { + ConstructorType = (global::Protobuf.ConstructorType)input.ReadEnum(); + break; + } + case 120: + { + ArmorType = (global::Protobuf.ArmorType)input.ReadEnum(); + break; + } + case 128: + { + ShieldType = (global::Protobuf.ShieldType)input.ReadEnum(); + break; + } + case 136: + { + WeaponType = (global::Protobuf.WeaponType)input.ReadEnum(); + break; + } + case 145: + { + FacingDirection = input.ReadDouble(); + break; + } + } + } +#endif + } - /// Field number for the "armor_type" field. - public const int ArmorTypeFieldNumber = 15; - private global::Protobuf.ArmorType armorType_ = global::Protobuf.ArmorType.NullArmorType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ArmorType ArmorType { - get { return armorType_; } - set { - armorType_ = value; - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 40: + { + Armor = input.ReadInt32(); + break; + } + case 48: + { + Shield = input.ReadInt32(); + break; + } + case 56: + { + TeamId = input.ReadInt64(); + break; + } + case 64: + { + PlayerId = input.ReadInt64(); + break; + } + case 72: + { + Guid = input.ReadInt64(); + break; + } + case 80: + { + ShipState = (global::Protobuf.ShipState)input.ReadEnum(); + break; + } + case 88: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 96: + { + ViewRange = input.ReadInt32(); + break; + } + case 104: + { + ProducerType = (global::Protobuf.ProducerType)input.ReadEnum(); + break; + } + case 112: + { + ConstructorType = (global::Protobuf.ConstructorType)input.ReadEnum(); + break; + } + case 120: + { + ArmorType = (global::Protobuf.ArmorType)input.ReadEnum(); + break; + } + case 128: + { + ShieldType = (global::Protobuf.ShieldType)input.ReadEnum(); + break; + } + case 136: + { + WeaponType = (global::Protobuf.WeaponType)input.ReadEnum(); + break; + } + case 145: + { + FacingDirection = input.ReadDouble(); + break; + } + } + } + } +#endif } - /// Field number for the "shield_type" field. - public const int ShieldTypeFieldNumber = 16; - private global::Protobuf.ShieldType shieldType_ = global::Protobuf.ShieldType.NullShieldType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ShieldType ShieldType { - get { return shieldType_; } - set { - shieldType_ = value; - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[1]; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfBullet() + { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfBullet(MessageOfBullet other) : + this() + { + type_ = other.type_; + x_ = other.x_; + y_ = other.y_; + facingDirection_ = other.facingDirection_; + damage_ = other.damage_; + teamId_ = other.teamId_; + guid_ = other.guid_; + bombRange_ = other.bombRange_; + speed_ = other.speed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + public double FacingDirection + { + get { + return facingDirection_; + } + set { + facingDirection_ = value; + } + } + + /// Field number for the "damage" field. + public const int DamageFieldNumber = 5; + private int damage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Damage + { + get { + return damage_; + } + set { + damage_ = value; + } + } + + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 6; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } + + /// Field number for the "guid" field. + public const int GuidFieldNumber = 7; + private long guid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Guid + { + get { + return guid_; + } + set { + guid_ = value; + } + } + + /// Field number for the "bomb_range" field. + public const int BombRangeFieldNumber = 8; + private double bombRange_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public int Speed + { + get { + return speed_; + } + set { + speed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfBullet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Damage != other.Damage) + return false; + if (TeamId != other.TeamId) + return false; + if (Guid != other.Guid) + 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] + 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 (Damage != 0) + hash ^= Damage.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (Guid != 0L) + hash ^= Guid.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] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Damage != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Damage); + } + if (TeamId != 0L) + { + output.WriteRawTag(48); + output.WriteInt64(TeamId); + } + if (Guid != 0L) + { + output.WriteRawTag(56); + output.WriteInt64(Guid); + } + 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] + 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 (Damage != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Damage); + } + if (TeamId != 0L) + { + output.WriteRawTag(48); + output.WriteInt64(TeamId); + } + if (Guid != 0L) + { + output.WriteRawTag(56); + output.WriteInt64(Guid); + } + 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] + 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 (Damage != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Damage); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (Guid != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid); + } + 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] + 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.Damage != 0) + { + Damage = other.Damage; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + if (other.Guid != 0L) + { + Guid = other.Guid; + } + 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] + 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: + { + Damage = input.ReadInt32(); + break; + } + case 48: + { + TeamId = input.ReadInt64(); + break; + } + case 56: + { + Guid = input.ReadInt64(); + break; + } + case 65: + { + BombRange = input.ReadDouble(); + break; + } + case 72: + { + Speed = input.ReadInt32(); + break; + } + } + } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Damage = input.ReadInt32(); + break; + } + case 48: + { + TeamId = input.ReadInt64(); + break; + } + case 56: + { + Guid = input.ReadInt64(); + break; + } + case 65: + { + BombRange = input.ReadDouble(); + break; + } + case 72: + { + Speed = input.ReadInt32(); + break; + } + } + } + } +#endif } - /// Field number for the "weapon_type" field. - public const int WeaponTypeFieldNumber = 17; - private global::Protobuf.WeaponType weaponType_ = global::Protobuf.WeaponType.NullWeaponType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.WeaponType WeaponType { - get { return weaponType_; } - set { - weaponType_ = value; - } - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[2]; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfBombedBullet() + { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + 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] + 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] + 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] + 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] + 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] + public double BombRange + { + get { + return bombRange_; + } + set { + bombRange_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfBombedBullet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + 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] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - /// Field number for the "facing_direction" field. - public const int FacingDirectionFieldNumber = 18; - private double facingDirection_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double FacingDirection { - get { return facingDirection_; } - set { - facingDirection_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfShip); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public bool Equals(MessageOfShip 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 (Hp != other.Hp) return false; - if (Armor != other.Armor) return false; - if (Shield != other.Shield) return false; - if (TeamId != other.TeamId) return false; - if (PlayerId != other.PlayerId) return false; - if (Guid != other.Guid) return false; - if (ShipState != other.ShipState) return false; - if (ShipType != other.ShipType) return false; - if (ViewRange != other.ViewRange) return false; - if (ProducerType != other.ProducerType) return false; - if (ConstructorType != other.ConstructorType) return false; - if (ArmorType != other.ArmorType) return false; - if (ShieldType != other.ShieldType) return false; - if (WeaponType != other.WeaponType) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FacingDirection, other.FacingDirection)) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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 (Hp != 0) hash ^= Hp.GetHashCode(); - if (Armor != 0) hash ^= Armor.GetHashCode(); - if (Shield != 0) hash ^= Shield.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (Guid != 0L) hash ^= Guid.GetHashCode(); - if (ShipState != global::Protobuf.ShipState.NullStatus) hash ^= ShipState.GetHashCode(); - if (ShipType != global::Protobuf.ShipType.NullShipType) hash ^= ShipType.GetHashCode(); - if (ViewRange != 0) hash ^= ViewRange.GetHashCode(); - if (ProducerType != global::Protobuf.ProducerType.NullProducerType) hash ^= ProducerType.GetHashCode(); - if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) hash ^= ConstructorType.GetHashCode(); - if (ArmorType != global::Protobuf.ArmorType.NullArmorType) hash ^= ArmorType.GetHashCode(); - if (ShieldType != global::Protobuf.ShieldType.NullShieldType) hash ^= ShieldType.GetHashCode(); - if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) hash ^= WeaponType.GetHashCode(); - if (FacingDirection != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FacingDirection); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(32); - output.WriteInt32(Hp); - } - if (Armor != 0) { - output.WriteRawTag(40); - output.WriteInt32(Armor); - } - if (Shield != 0) { - output.WriteRawTag(48); - output.WriteInt32(Shield); - } - if (TeamId != 0L) { - output.WriteRawTag(56); - output.WriteInt64(TeamId); - } - if (PlayerId != 0L) { - output.WriteRawTag(64); - output.WriteInt64(PlayerId); - } - if (Guid != 0L) { - output.WriteRawTag(72); - output.WriteInt64(Guid); - } - if (ShipState != global::Protobuf.ShipState.NullStatus) { - output.WriteRawTag(80); - output.WriteEnum((int) ShipState); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(88); - output.WriteEnum((int) ShipType); - } - if (ViewRange != 0) { - output.WriteRawTag(96); - output.WriteInt32(ViewRange); - } - if (ProducerType != global::Protobuf.ProducerType.NullProducerType) { - output.WriteRawTag(104); - output.WriteEnum((int) ProducerType); - } - if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) { - output.WriteRawTag(112); - output.WriteEnum((int) ConstructorType); - } - if (ArmorType != global::Protobuf.ArmorType.NullArmorType) { - output.WriteRawTag(120); - output.WriteEnum((int) ArmorType); - } - if (ShieldType != global::Protobuf.ShieldType.NullShieldType) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) ShieldType); - } - if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) WeaponType); - } - if (FacingDirection != 0D) { - output.WriteRawTag(145, 1); - output.WriteDouble(FacingDirection); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(32); - output.WriteInt32(Hp); - } - if (Armor != 0) { - output.WriteRawTag(40); - output.WriteInt32(Armor); - } - if (Shield != 0) { - output.WriteRawTag(48); - output.WriteInt32(Shield); - } - if (TeamId != 0L) { - output.WriteRawTag(56); - output.WriteInt64(TeamId); - } - if (PlayerId != 0L) { - output.WriteRawTag(64); - output.WriteInt64(PlayerId); - } - if (Guid != 0L) { - output.WriteRawTag(72); - output.WriteInt64(Guid); - } - if (ShipState != global::Protobuf.ShipState.NullStatus) { - output.WriteRawTag(80); - output.WriteEnum((int) ShipState); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(88); - output.WriteEnum((int) ShipType); - } - if (ViewRange != 0) { - output.WriteRawTag(96); - output.WriteInt32(ViewRange); - } - if (ProducerType != global::Protobuf.ProducerType.NullProducerType) { - output.WriteRawTag(104); - output.WriteEnum((int) ProducerType); - } - if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) { - output.WriteRawTag(112); - output.WriteEnum((int) ConstructorType); - } - if (ArmorType != global::Protobuf.ArmorType.NullArmorType) { - output.WriteRawTag(120); - output.WriteEnum((int) ArmorType); - } - if (ShieldType != global::Protobuf.ShieldType.NullShieldType) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) ShieldType); - } - if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) WeaponType); - } - if (FacingDirection != 0D) { - output.WriteRawTag(145, 1); - output.WriteDouble(FacingDirection); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (Armor != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Armor); - } - if (Shield != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Shield); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (Guid != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid); - } - if (ShipState != global::Protobuf.ShipState.NullStatus) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShipState); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShipType); - } - if (ViewRange != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ViewRange); - } - if (ProducerType != global::Protobuf.ProducerType.NullProducerType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProducerType); - } - if (ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConstructorType); - } - if (ArmorType != global::Protobuf.ArmorType.NullArmorType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ArmorType); - } - if (ShieldType != global::Protobuf.ShieldType.NullShieldType) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ShieldType); - } - if (WeaponType != global::Protobuf.WeaponType.NullWeaponType) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) WeaponType); - } - if (FacingDirection != 0D) { - size += 2 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + public sealed partial class MessageOfFactory : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfFactory()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfShip 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.Hp != 0) { - Hp = other.Hp; - } - if (other.Armor != 0) { - Armor = other.Armor; - } - if (other.Shield != 0) { - Shield = other.Shield; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.Guid != 0L) { - Guid = other.Guid; - } - if (other.ShipState != global::Protobuf.ShipState.NullStatus) { - ShipState = other.ShipState; - } - if (other.ShipType != global::Protobuf.ShipType.NullShipType) { - ShipType = other.ShipType; - } - if (other.ViewRange != 0) { - ViewRange = other.ViewRange; - } - if (other.ProducerType != global::Protobuf.ProducerType.NullProducerType) { - ProducerType = other.ProducerType; - } - if (other.ConstructorType != global::Protobuf.ConstructorType.NullConstructorType) { - ConstructorType = other.ConstructorType; - } - if (other.ArmorType != global::Protobuf.ArmorType.NullArmorType) { - ArmorType = other.ArmorType; - } - if (other.ShieldType != global::Protobuf.ShieldType.NullShieldType) { - ShieldType = other.ShieldType; - } - if (other.WeaponType != global::Protobuf.WeaponType.NullWeaponType) { - WeaponType = other.WeaponType; - } - if (other.FacingDirection != 0D) { - FacingDirection = other.FacingDirection; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[3]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 40: { - Armor = input.ReadInt32(); - break; - } - case 48: { - Shield = input.ReadInt32(); - break; - } - case 56: { - TeamId = input.ReadInt64(); - break; - } - case 64: { - PlayerId = input.ReadInt64(); - break; - } - case 72: { - Guid = input.ReadInt64(); - break; - } - case 80: { - ShipState = (global::Protobuf.ShipState) input.ReadEnum(); - break; - } - case 88: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 96: { - ViewRange = input.ReadInt32(); - break; - } - case 104: { - ProducerType = (global::Protobuf.ProducerType) input.ReadEnum(); - break; - } - case 112: { - ConstructorType = (global::Protobuf.ConstructorType) input.ReadEnum(); - break; - } - case 120: { - ArmorType = (global::Protobuf.ArmorType) input.ReadEnum(); - break; - } - case 128: { - ShieldType = (global::Protobuf.ShieldType) input.ReadEnum(); - break; - } - case 136: { - WeaponType = (global::Protobuf.WeaponType) input.ReadEnum(); - break; - } - case 145: { - FacingDirection = input.ReadDouble(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 40: { - Armor = input.ReadInt32(); - break; - } - case 48: { - Shield = input.ReadInt32(); - break; - } - case 56: { - TeamId = input.ReadInt64(); - break; - } - case 64: { - PlayerId = input.ReadInt64(); - break; - } - case 72: { - Guid = input.ReadInt64(); - break; - } - case 80: { - ShipState = (global::Protobuf.ShipState) input.ReadEnum(); - break; - } - case 88: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 96: { - ViewRange = input.ReadInt32(); - break; - } - case 104: { - ProducerType = (global::Protobuf.ProducerType) input.ReadEnum(); - break; - } - case 112: { - ConstructorType = (global::Protobuf.ConstructorType) input.ReadEnum(); - break; - } - case 120: { - ArmorType = (global::Protobuf.ArmorType) input.ReadEnum(); - break; - } - case 128: { - ShieldType = (global::Protobuf.ShieldType) input.ReadEnum(); - break; - } - case 136: { - WeaponType = (global::Protobuf.WeaponType) input.ReadEnum(); - break; - } - case 145: { - FacingDirection = input.ReadDouble(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[1]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFactory() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfBullet() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFactory(MessageOfFactory other) : + this() + { + x_ = other.x_; + y_ = other.y_; + hp_ = other.hp_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfBullet(MessageOfBullet other) : this() { - type_ = other.type_; - x_ = other.x_; - y_ = other.y_; - facingDirection_ = other.facingDirection_; - damage_ = other.damage_; - teamId_ = other.teamId_; - guid_ = other.guid_; - bombRange_ = other.bombRange_; - speed_ = other.speed_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFactory Clone() + { + return new MessageOfFactory(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfBullet Clone() { - return new MessageOfBullet(this); - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Protobuf.BulletType type_ = global::Protobuf.BulletType.NullBulletType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.BulletType Type { - get { return type_; } - set { - type_ = value; - } - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 2; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private int hp_; + /// + /// 剩余的血量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 3; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - /// Field number for the "facing_direction" field. - public const int FacingDirectionFieldNumber = 4; - private double facingDirection_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double FacingDirection { - get { return facingDirection_; } - set { - facingDirection_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfFactory); + } - /// Field number for the "damage" field. - public const int DamageFieldNumber = 5; - private int damage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Damage { - get { return damage_; } - set { - damage_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfFactory 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 (Hp != other.Hp) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 6; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (Hp != 0) + hash ^= Hp.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - /// Field number for the "guid" field. - public const int GuidFieldNumber = 7; - private long guid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Guid { - get { return guid_; } - set { - guid_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - /// Field number for the "bomb_range" field. - public const int BombRangeFieldNumber = 8; - private double bombRange_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double BombRange { - get { return bombRange_; } - set { - bombRange_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - /// Field number for the "speed" field. - public const int SpeedFieldNumber = 9; - private int speed_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Speed { - get { return speed_; } - set { - speed_ = value; - } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfBullet); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Damage != other.Damage) return false; - if (TeamId != other.TeamId) return false; - if (Guid != other.Guid) 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] + public void MergeFrom(MessageOfFactory other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.Hp != 0) + { + Hp = other.Hp; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Damage != 0) hash ^= Damage.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (Guid != 0L) hash ^= Guid.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] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Damage != 0) { - output.WriteRawTag(40); - output.WriteInt32(Damage); - } - if (TeamId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(TeamId); - } - if (Guid != 0L) { - output.WriteRawTag(56); - output.WriteInt64(Guid); - } - 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 - } + public sealed partial class MessageOfCommunity : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfCommunity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Damage != 0) { - output.WriteRawTag(40); - output.WriteInt32(Damage); - } - if (TeamId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(TeamId); - } - if (Guid != 0L) { - output.WriteRawTag(56); - output.WriteInt64(Guid); - } - 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] - 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 (Damage != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Damage); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (Guid != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Guid); - } - 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] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[4]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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.Damage != 0) { - Damage = other.Damage; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - if (other.Guid != 0L) { - Guid = other.Guid; - } - 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] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Damage = input.ReadInt32(); - break; - } - case 48: { - TeamId = input.ReadInt64(); - break; - } - case 56: { - Guid = input.ReadInt64(); - break; - } - case 65: { - BombRange = input.ReadDouble(); - break; - } - case 72: { - Speed = input.ReadInt32(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfCommunity() + { + OnConstruction(); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Damage = input.ReadInt32(); - break; - } - case 48: { - TeamId = input.ReadInt64(); - break; - } - case 56: { - Guid = input.ReadInt64(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[2]; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfCommunity(MessageOfCommunity other) : + this() + { + x_ = other.x_; + y_ = other.y_; + hp_ = other.hp_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfBombedBullet() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfCommunity Clone() + { + return new MessageOfCommunity(this); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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); - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfBombedBullet Clone() { - return new MessageOfBombedBullet(this); - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Protobuf.BulletType type_ = global::Protobuf.BulletType.NullBulletType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.BulletType Type { - get { return type_; } - set { - type_ = value; - } - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private int hp_; + /// + /// 剩余的血量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 2; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 3; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfCommunity); + } - /// Field number for the "facing_direction" field. - public const int FacingDirectionFieldNumber = 4; - private double facingDirection_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double FacingDirection { - get { return facingDirection_; } - set { - facingDirection_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfCommunity 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 (Hp != other.Hp) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - /// Field number for the "mapping_id" field. - public const int MappingIdFieldNumber = 5; - private long mappingId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long MappingId { - get { return mappingId_; } - set { - mappingId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (Hp != 0) + hash ^= Hp.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - /// Field number for the "bomb_range" field. - public const int BombRangeFieldNumber = 6; - private double bombRange_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double BombRange { - get { return bombRange_; } - set { - bombRange_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfBombedBullet); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfCommunity other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.Hp != 0) + { + Hp = other.Hp; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - 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; +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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); - } + public sealed partial class MessageOfFort : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfFort()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[5]; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 MessageOfFactory : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfFactory()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[3]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFort() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFactory() { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFort(MessageOfFort other) : + this() + { + x_ = other.x_; + y_ = other.y_; + hp_ = other.hp_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFactory(MessageOfFactory other) : this() { - x_ = other.x_; - y_ = other.y_; - hp_ = other.hp_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfFort Clone() + { + return new MessageOfFort(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFactory Clone() { - return new MessageOfFactory(this); - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private int hp_; + /// + /// 剩余的血量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 3; - private int hp_; - /// - /// 剩余的血量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfFort); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfFactory); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfFort 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 (Hp != other.Hp) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfFactory 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 (Hp != other.Hp) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (Hp != 0) + hash ^= Hp.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (Hp != 0) hash ^= Hp.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfFactory other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.Hp != 0) { - Hp = other.Hp; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfFort other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.Hp != 0) + { + Hp = other.Hp; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MessageOfCommunity : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfCommunity()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[4]; } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + public sealed partial class MessageOfWormhole : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfWormhole()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfCommunity() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[6]; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfCommunity(MessageOfCommunity other) : this() { - x_ = other.x_; - y_ = other.y_; - hp_ = other.hp_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfWormhole() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfCommunity Clone() { - return new MessageOfCommunity(this); - } + partial void OnConstruction(); - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfWormhole(MessageOfWormhole other) : + this() + { + x_ = other.x_; + y_ = other.y_; + hp_ = other.hp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfWormhole Clone() + { + return new MessageOfWormhole(this); + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 3; - private int hp_; - /// - /// 剩余的血量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfCommunity); - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private int hp_; + /// + /// 剩余的血量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfCommunity 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 (Hp != other.Hp) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfWormhole); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (Hp != 0) hash ^= Hp.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfWormhole 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 (Hp != other.Hp) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (Hp != 0) + hash ^= Hp.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfCommunity other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.Hp != 0) { - Hp = other.Hp; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MessageOfFort : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfFort()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[5]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfWormhole other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.Hp != 0) + { + Hp = other.Hp; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFort() { - OnConstruction(); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + } + } + } +#endif } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFort(MessageOfFort other) : this() { - x_ = other.x_; - y_ = other.y_; - hp_ = other.hp_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + public sealed partial class MessageOfResource : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfResource()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfFort Clone() { - return new MessageOfFort(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[7]; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfResource() + { + OnConstruction(); + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 3; - private int hp_; - /// - /// 剩余的血量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } + partial void OnConstruction(); - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfResource(MessageOfResource other) : + this() + { + x_ = other.x_; + y_ = other.y_; + progress_ = other.progress_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfFort); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfResource Clone() + { + return new MessageOfResource(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfFort 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 (Hp != other.Hp) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (Hp != 0) hash ^= Hp.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 3; + private int progress_; + /// + /// 采集进度 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Progress + { + get { + return progress_; + } + set { + progress_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfResource); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfResource 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] - public void MergeFrom(MessageOfFort other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.Hp != 0) { - Hp = other.Hp; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MessageOfWormhole : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfWormhole()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[6]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public MessageOfWormhole() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfResource 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] - public MessageOfWormhole(MessageOfWormhole other) : this() { - x_ = other.x_; - y_ = other.y_; - hp_ = other.hp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfWormhole Clone() { - return new MessageOfWormhole(this); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + public sealed partial class MessageOfHome : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfHome()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[8]; + } + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 3; - private int hp_; - /// - /// 剩余的血量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfWormhole); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfHome() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfWormhole 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 (Hp != other.Hp) return false; - return Equals(_unknownFields, other._unknownFields); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (Hp != 0) hash ^= Hp.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfHome(MessageOfHome other) : + this() + { + x_ = other.x_; + y_ = other.y_; + hp_ = other.hp_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfHome Clone() + { + return new MessageOfHome(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfWormhole other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.Hp != 0) { - Hp = other.Hp; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + /// Field number for the "hp" field. + public const int HpFieldNumber = 3; + private int hp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Hp + { + get { + return hp_; + } + set { + hp_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - } - } - #endif - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MessageOfResource : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfResource()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[7]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfHome); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfHome 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 (Hp != other.Hp) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfResource() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (Hp != 0) + hash ^= Hp.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfResource(MessageOfResource other) : this() { - x_ = other.x_; - y_ = other.y_; - progress_ = other.progress_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfResource Clone() { - return new MessageOfResource(this); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Hp); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (Hp != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfHome other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.Hp != 0) + { + Hp = other.Hp; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - /// Field number for the "progress" field. - public const int ProgressFieldNumber = 3; - private int progress_; - /// - /// 采集进度 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Progress { - get { return progress_; } - set { - progress_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfResource); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Hp = input.ReadInt32(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfResource 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); - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[9]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfMap() + { + OnConstruction(); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - 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; - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfResource 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] + public MessageOfMap(MessageOfMap other) : + this() + { + height_ = other.height_; + width_ = other.width_; + rows_ = other.rows_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfMap Clone() + { + return new MessageOfMap(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 MessageOfHome : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfHome()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[8]; } - } + /// Field number for the "height" field. + public const int HeightFieldNumber = 1; + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Height + { + get { + return height_; + } + set { + height_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + /// Field number for the "width" field. + public const int WidthFieldNumber = 2; + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Width + { + get { + return width_; + } + set { + width_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfHome() { - OnConstruction(); - } + /// Field number for the "rows" field. + public const int RowsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_rows_codec = pb::FieldCodec.ForMessage(26, global::Protobuf.MessageOfMap.Types.Row.Parser); + private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Rows + { + get { + return rows_; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfMap); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfHome(MessageOfHome other) : this() { - x_ = other.x_; - y_ = other.y_; - hp_ = other.hp_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfMap other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (Height != other.Height) + return false; + if (Width != other.Width) + return false; + if (!rows_.Equals(other.rows_)) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfHome Clone() { - return new MessageOfHome(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (Height != 0) + hash ^= Height.GetHashCode(); + if (Width != 0) + hash ^= Width.GetHashCode(); + hash ^= rows_.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (Height != 0) + { + output.WriteRawTag(8); + output.WriteUInt32(Height); + } + if (Width != 0) + { + output.WriteRawTag(16); + output.WriteUInt32(Width); + } + rows_.WriteTo(output, _repeated_rows_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - /// Field number for the "hp" field. - public const int HpFieldNumber = 3; - private int hp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Hp { - get { return hp_; } - set { - hp_ = value; - } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Height != 0) + { + output.WriteRawTag(8); + output.WriteUInt32(Height); + } + if (Width != 0) + { + output.WriteRawTag(16); + output.WriteUInt32(Width); + } + rows_.WriteTo(ref output, _repeated_rows_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (Height != 0) + { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (Width != 0) + { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + size += rows_.CalculateSize(_repeated_rows_codec); + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfHome); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfMap other) + { + if (other == null) + { + return; + } + if (other.Height != 0) + { + Height = other.Height; + } + if (other.Width != 0) + { + Width = other.Width; + } + rows_.Add(other.rows_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfHome 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 (Hp != other.Hp) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Height = input.ReadUInt32(); + break; + } + case 16: + { + Width = input.ReadUInt32(); + break; + } + case 26: + { + rows_.AddEntriesFrom(input, _repeated_rows_codec); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (Hp != 0) hash ^= Hp.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Height = input.ReadUInt32(); + break; + } + case 16: + { + Width = input.ReadUInt32(); + break; + } + case 26: + { + rows_.AddEntriesFrom(ref input, _repeated_rows_codec); + break; + } + } + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); +#region Nested types + /// Container for nested types declared in the MessageOfMap message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.MessageOfMap.Descriptor.NestedTypes[0]; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Row() + { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Row(Row other) : + this() + { + cols_ = other.cols_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Row Clone() + { + return new Row(this); + } + + /// Field number for the "cols" field. + public const int ColsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_cols_codec = pb::FieldCodec.ForEnum(10, x => (int)x, x => (global::Protobuf.PlaceType)x); + private readonly pbc::RepeatedField cols_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Cols + { + get { + return cols_; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as Row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Row other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (!cols_.Equals(other.cols_)) + return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + hash ^= cols_.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + cols_.WriteTo(output, _repeated_cols_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + cols_.WriteTo(ref output, _repeated_cols_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + size += cols_.CalculateSize(_repeated_cols_codec); + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Row other) + { + if (other == null) + { + return; + } + cols_.Add(other.cols_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + cols_.AddEntriesFrom(input, _repeated_cols_codec); + break; + } + } + } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + cols_.AddEntriesFrom(ref input, _repeated_cols_codec); + break; + } + } + } + } +#endif + } + } +#endregion } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + public sealed partial class MessageOfTeam : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfTeam()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - output.WriteRawTag(24); - output.WriteInt32(Hp); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (Hp != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hp); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[10]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfHome other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.Hp != 0) { - Hp = other.Hp; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfTeam() + { + OnConstruction(); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Hp = input.ReadInt32(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[9]; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfTeam(MessageOfTeam other) : + this() + { + teamId_ = other.teamId_; + playerId_ = other.playerId_; + score_ = other.score_; + money_ = other.money_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfMap() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfTeam Clone() + { + return new MessageOfTeam(this); + } - partial void OnConstruction(); + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 1; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfMap(MessageOfMap other) : this() { - height_ = other.height_; - width_ = other.width_; - rows_ = other.rows_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 2; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfMap Clone() { - return new MessageOfMap(this); - } + /// Field number for the "score" field. + public const int ScoreFieldNumber = 3; + private int score_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Score + { + get { + return score_; + } + set { + score_ = value; + } + } - /// Field number for the "height" field. - public const int HeightFieldNumber = 1; - private uint height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint Height { - get { return height_; } - set { - height_ = value; - } - } + /// Field number for the "money" field. + public const int MoneyFieldNumber = 4; + private int money_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Money + { + get { + return money_; + } + set { + money_ = value; + } + } - /// Field number for the "width" field. - public const int WidthFieldNumber = 2; - private uint width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint Width { - get { return width_; } - set { - width_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfTeam); + } - /// Field number for the "rows" field. - public const int RowsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_rows_codec - = pb::FieldCodec.ForMessage(26, global::Protobuf.MessageOfMap.Types.Row.Parser); - private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Rows { - get { return rows_; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfTeam other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (TeamId != other.TeamId) + return false; + if (PlayerId != other.PlayerId) + return false; + if (Score != other.Score) + return false; + if (Money != other.Money) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfMap); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (Score != 0) + hash ^= Score.GetHashCode(); + if (Money != 0) + hash ^= Money.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfMap other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Height != other.Height) return false; - if (Width != other.Width) return false; - if(!rows_.Equals(other.rows_)) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Height != 0) hash ^= Height.GetHashCode(); - if (Width != 0) hash ^= Width.GetHashCode(); - hash ^= rows_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (TeamId != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(TeamId); + } + if (PlayerId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(PlayerId); + } + if (Score != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Score); + } + if (Money != 0) + { + output.WriteRawTag(32); + output.WriteInt32(Money); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (TeamId != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(TeamId); + } + if (PlayerId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(PlayerId); + } + if (Score != 0) + { + output.WriteRawTag(24); + output.WriteInt32(Score); + } + if (Money != 0) + { + output.WriteRawTag(32); + output.WriteInt32(Money); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Height != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Height); - } - if (Width != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Width); - } - rows_.WriteTo(output, _repeated_rows_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (Score != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score); + } + if (Money != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Money); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Height != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Height); - } - if (Width != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Width); - } - rows_.WriteTo(ref output, _repeated_rows_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Height != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); - } - if (Width != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); - } - size += rows_.CalculateSize(_repeated_rows_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfTeam other) + { + if (other == null) + { + return; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.Score != 0) + { + Score = other.Score; + } + if (other.Money != 0) + { + Money = other.Money; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfMap other) { - if (other == null) { - return; - } - if (other.Height != 0) { - Height = other.Height; - } - if (other.Width != 0) { - Width = other.Width; - } - rows_.Add(other.rows_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + case 16: + { + PlayerId = input.ReadInt64(); + break; + } + case 24: + { + Score = input.ReadInt32(); + break; + } + case 32: + { + Money = input.ReadInt32(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Height = input.ReadUInt32(); - break; - } - case 16: { - Width = input.ReadUInt32(); - break; - } - case 26: { - rows_.AddEntriesFrom(input, _repeated_rows_codec); - break; - } - } - } - #endif +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + case 16: + { + PlayerId = input.ReadInt64(); + break; + } + case 24: + { + Score = input.ReadInt32(); + break; + } + case 32: + { + Money = input.ReadInt32(); + break; + } + } + } + } +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Height = input.ReadUInt32(); - break; - } - case 16: { - Width = input.ReadUInt32(); - break; - } - case 26: { - rows_.AddEntriesFrom(ref input, _repeated_rows_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the MessageOfMap message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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()); + 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] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser + { + get { + return _parser; + } + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.MessageOfMap.Descriptor.NestedTypes[0]; } + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[11]; + } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row() { - OnConstruction(); + public MessageOfObj() + { + OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row(Row other) : this() { - cols_ = other.cols_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + public MessageOfObj(MessageOfObj other) : + this() + { + switch (other.MessageOfObjCase) + { + case MessageOfObjOneofCase.ShipMessage: + ShipMessage = other.ShipMessage.Clone(); + break; + case MessageOfObjOneofCase.BulletMessage: + BulletMessage = other.BulletMessage.Clone(); + break; + case MessageOfObjOneofCase.FactoryMessage: + FactoryMessage = other.FactoryMessage.Clone(); + break; + case MessageOfObjOneofCase.CommunityMessage: + CommunityMessage = other.CommunityMessage.Clone(); + break; + case MessageOfObjOneofCase.FortMessage: + FortMessage = other.FortMessage.Clone(); + break; + case MessageOfObjOneofCase.WormholeMessage: + WormholeMessage = other.WormholeMessage.Clone(); + break; + case MessageOfObjOneofCase.HomeMessage: + HomeMessage = other.HomeMessage.Clone(); + break; + case MessageOfObjOneofCase.ResourceMessage: + ResourceMessage = other.ResourceMessage.Clone(); + break; + case MessageOfObjOneofCase.MapMessage: + MapMessage = other.MapMessage.Clone(); + break; + case MessageOfObjOneofCase.NewsMessage: + NewsMessage = other.NewsMessage.Clone(); + break; + case MessageOfObjOneofCase.BombedBulletMessage: + BombedBulletMessage = other.BombedBulletMessage.Clone(); + break; + case MessageOfObjOneofCase.TeamMessage: + TeamMessage = other.TeamMessage.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Row Clone() { - return new Row(this); + public MessageOfObj Clone() + { + return new MessageOfObj(this); } - /// Field number for the "cols" field. - public const int ColsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_cols_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Protobuf.PlaceType) x); - private readonly pbc::RepeatedField cols_ = new pbc::RepeatedField(); + /// Field number for the "ship_message" field. + public const int ShipMessageFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Cols { - get { return cols_; } + public global::Protobuf.MessageOfShip ShipMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage ? (global::Protobuf.MessageOfShip)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ShipMessage; + } } + /// Field number for the "bullet_message" field. + public const int BulletMessageFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Row); + 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 "factory_message" field. + public const int FactoryMessageFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Row other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!cols_.Equals(other.cols_)) return false; - return Equals(_unknownFields, other._unknownFields); + public global::Protobuf.MessageOfFactory FactoryMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage ? (global::Protobuf.MessageOfFactory)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.FactoryMessage; + } } + /// Field number for the "community_message" field. + public const int CommunityMessageFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= cols_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; + public global::Protobuf.MessageOfCommunity CommunityMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage ? (global::Protobuf.MessageOfCommunity)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.CommunityMessage; + } } + /// Field number for the "fort_message" field. + public const int FortMessageFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); + public global::Protobuf.MessageOfFort FortMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.FortMessage ? (global::Protobuf.MessageOfFort)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.FortMessage; + } } + /// Field number for the "wormhole_message" field. + public const int WormholeMessageFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - cols_.WriteTo(output, _repeated_cols_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif + public global::Protobuf.MessageOfWormhole WormholeMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage ? (global::Protobuf.MessageOfWormhole)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.WormholeMessage; + } } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Field number for the "home_message" field. + public const int HomeMessageFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - cols_.WriteTo(ref output, _repeated_cols_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } + public global::Protobuf.MessageOfHome HomeMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage ? (global::Protobuf.MessageOfHome)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.HomeMessage; + } } - #endif + /// Field number for the "resource_message" field. + public const int ResourceMessageFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += cols_.CalculateSize(_repeated_cols_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; + public global::Protobuf.MessageOfResource ResourceMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage ? (global::Protobuf.MessageOfResource)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ResourceMessage; + } } + /// Field number for the "map_message" field. + public const int MapMessageFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Row other) { - if (other == null) { - return; - } - cols_.Add(other.cols_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + 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; + } } + /// Field number for the "news_message" field. + public const int NewsMessageFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - cols_.AddEntriesFrom(input, _repeated_cols_codec); - break; - } + 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; } - } - #endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Field number for the "bombed_bullet_message" field. + public const int BombedBulletMessageFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - cols_.AddEntriesFrom(ref input, _repeated_cols_codec); - break; - } + 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; } - } } - #endif - - } - - } - #endregion - - } - - public sealed partial class MessageOfTeam : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageOfTeam()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfTeam() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfTeam(MessageOfTeam other) : this() { - teamId_ = other.teamId_; - playerId_ = other.playerId_; - score_ = other.score_; - money_ = other.money_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfTeam Clone() { - return new MessageOfTeam(this); - } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 1; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } - - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 2; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } - - /// Field number for the "score" field. - public const int ScoreFieldNumber = 3; - private int score_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Score { - get { return score_; } - set { - score_ = value; - } - } + /// Field number for the "team_message" field. + public const int TeamMessageFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.MessageOfTeam TeamMessage + { + get { + return messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage ? (global::Protobuf.MessageOfTeam)messageOfObj_ : null; + } + set { + messageOfObj_ = value; + messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.TeamMessage; + } + } - /// Field number for the "money" field. - public const int MoneyFieldNumber = 4; - private int money_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Money { - get { return money_; } - set { - money_ = value; - } - } + private object messageOfObj_; + /// Enum of possible cases for the "message_of_obj" oneof. + public enum MessageOfObjOneofCase + { + None = 0, + ShipMessage = 1, + BulletMessage = 2, + FactoryMessage = 3, + CommunityMessage = 4, + FortMessage = 5, + WormholeMessage = 6, + HomeMessage = 7, + ResourceMessage = 8, + MapMessage = 9, + NewsMessage = 10, + BombedBulletMessage = 11, + TeamMessage = 12, + } + private MessageOfObjOneofCase messageOfObjCase_ = MessageOfObjOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfObjOneofCase MessageOfObjCase + { + get { + return messageOfObjCase_; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfTeam); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessageOfObj() + { + messageOfObjCase_ = MessageOfObjOneofCase.None; + messageOfObj_ = null; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfTeam other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TeamId != other.TeamId) return false; - if (PlayerId != other.PlayerId) return false; - if (Score != other.Score) return false; - if (Money != other.Money) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfObj); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (Score != 0) hash ^= Score.GetHashCode(); - if (Money != 0) hash ^= Money.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfObj other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (!object.Equals(ShipMessage, other.ShipMessage)) + return false; + if (!object.Equals(BulletMessage, other.BulletMessage)) + return false; + if (!object.Equals(FactoryMessage, other.FactoryMessage)) + return false; + if (!object.Equals(CommunityMessage, other.CommunityMessage)) + return false; + if (!object.Equals(FortMessage, other.FortMessage)) + return false; + if (!object.Equals(WormholeMessage, other.WormholeMessage)) + return false; + if (!object.Equals(HomeMessage, other.HomeMessage)) + return false; + if (!object.Equals(ResourceMessage, other.ResourceMessage)) + return false; + if (!object.Equals(MapMessage, other.MapMessage)) + return false; + if (!object.Equals(NewsMessage, other.NewsMessage)) + return false; + if (!object.Equals(BombedBulletMessage, other.BombedBulletMessage)) + return false; + if (!object.Equals(TeamMessage, other.TeamMessage)) + return false; + if (MessageOfObjCase != other.MessageOfObjCase) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + hash ^= ShipMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + hash ^= BulletMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + hash ^= FactoryMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + hash ^= CommunityMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + hash ^= FortMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + hash ^= WormholeMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + hash ^= HomeMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + hash ^= ResourceMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + hash ^= MapMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + hash ^= NewsMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + hash ^= BombedBulletMessage.GetHashCode(); + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + hash ^= TeamMessage.GetHashCode(); + hash ^= (int)messageOfObjCase_; + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TeamId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TeamId); - } - if (PlayerId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(PlayerId); - } - if (Score != 0) { - output.WriteRawTag(24); - output.WriteInt32(Score); - } - if (Money != 0) { - output.WriteRawTag(32); - output.WriteInt32(Money); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TeamId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TeamId); - } - if (PlayerId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(PlayerId); - } - if (Score != 0) { - output.WriteRawTag(24); - output.WriteInt32(Score); - } - if (Money != 0) { - output.WriteRawTag(32); - output.WriteInt32(Money); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (Score != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score); - } - if (Money != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Money); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + { + output.WriteRawTag(10); + output.WriteMessage(ShipMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + { + output.WriteRawTag(18); + output.WriteMessage(BulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + { + output.WriteRawTag(26); + output.WriteMessage(FactoryMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + { + output.WriteRawTag(34); + output.WriteMessage(CommunityMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + { + output.WriteRawTag(42); + output.WriteMessage(FortMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + { + output.WriteRawTag(50); + output.WriteMessage(WormholeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + { + output.WriteRawTag(58); + output.WriteMessage(HomeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + { + output.WriteRawTag(66); + output.WriteMessage(ResourceMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + { + output.WriteRawTag(74); + output.WriteMessage(MapMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + { + output.WriteRawTag(82); + output.WriteMessage(NewsMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + { + output.WriteRawTag(90); + output.WriteMessage(BombedBulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + { + output.WriteRawTag(98); + output.WriteMessage(TeamMessage); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfTeam other) { - if (other == null) { - return; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.Score != 0) { - Score = other.Score; - } - if (other.Money != 0) { - Money = other.Money; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + { + output.WriteRawTag(10); + output.WriteMessage(ShipMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + { + output.WriteRawTag(18); + output.WriteMessage(BulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + { + output.WriteRawTag(26); + output.WriteMessage(FactoryMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + { + output.WriteRawTag(34); + output.WriteMessage(CommunityMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + { + output.WriteRawTag(42); + output.WriteMessage(FortMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + { + output.WriteRawTag(50); + output.WriteMessage(WormholeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + { + output.WriteRawTag(58); + output.WriteMessage(HomeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + { + output.WriteRawTag(66); + output.WriteMessage(ResourceMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + { + output.WriteRawTag(74); + output.WriteMessage(MapMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + { + output.WriteRawTag(82); + output.WriteMessage(NewsMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + { + output.WriteRawTag(90); + output.WriteMessage(BombedBulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + { + output.WriteRawTag(98); + output.WriteMessage(TeamMessage); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - case 16: { - PlayerId = input.ReadInt64(); - break; - } - case 24: { - Score = input.ReadInt32(); - break; - } - case 32: { - Money = input.ReadInt32(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShipMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FactoryMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommunityMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FortMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WormholeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomeMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewsMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BombedBulletMessage); + } + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamMessage); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - case 16: { - PlayerId = input.ReadInt64(); - break; - } - case 24: { - Score = input.ReadInt32(); - break; - } - case 32: { - Money = input.ReadInt32(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[11]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfObj other) + { + if (other == null) + { + return; + } + switch (other.MessageOfObjCase) + { + case MessageOfObjOneofCase.ShipMessage: + if (ShipMessage == null) + { + ShipMessage = new global::Protobuf.MessageOfShip(); + } + ShipMessage.MergeFrom(other.ShipMessage); + break; + case MessageOfObjOneofCase.BulletMessage: + if (BulletMessage == null) + { + BulletMessage = new global::Protobuf.MessageOfBullet(); + } + BulletMessage.MergeFrom(other.BulletMessage); + break; + case MessageOfObjOneofCase.FactoryMessage: + if (FactoryMessage == null) + { + FactoryMessage = new global::Protobuf.MessageOfFactory(); + } + FactoryMessage.MergeFrom(other.FactoryMessage); + break; + case MessageOfObjOneofCase.CommunityMessage: + if (CommunityMessage == null) + { + CommunityMessage = new global::Protobuf.MessageOfCommunity(); + } + CommunityMessage.MergeFrom(other.CommunityMessage); + break; + case MessageOfObjOneofCase.FortMessage: + if (FortMessage == null) + { + FortMessage = new global::Protobuf.MessageOfFort(); + } + FortMessage.MergeFrom(other.FortMessage); + break; + case MessageOfObjOneofCase.WormholeMessage: + if (WormholeMessage == null) + { + WormholeMessage = new global::Protobuf.MessageOfWormhole(); + } + WormholeMessage.MergeFrom(other.WormholeMessage); + break; + case MessageOfObjOneofCase.HomeMessage: + if (HomeMessage == null) + { + HomeMessage = new global::Protobuf.MessageOfHome(); + } + HomeMessage.MergeFrom(other.HomeMessage); + break; + case MessageOfObjOneofCase.ResourceMessage: + if (ResourceMessage == null) + { + ResourceMessage = new global::Protobuf.MessageOfResource(); + } + ResourceMessage.MergeFrom(other.ResourceMessage); + break; + case MessageOfObjOneofCase.MapMessage: + if (MapMessage == null) + { + MapMessage = new global::Protobuf.MessageOfMap(); + } + MapMessage.MergeFrom(other.MapMessage); + break; + case MessageOfObjOneofCase.NewsMessage: + if (NewsMessage == null) + { + NewsMessage = new global::Protobuf.MessageOfNews(); + } + NewsMessage.MergeFrom(other.NewsMessage); + break; + case MessageOfObjOneofCase.BombedBulletMessage: + if (BombedBulletMessage == null) + { + BombedBulletMessage = new global::Protobuf.MessageOfBombedBullet(); + } + BombedBulletMessage.MergeFrom(other.BombedBulletMessage); + break; + case MessageOfObjOneofCase.TeamMessage: + if (TeamMessage == null) + { + TeamMessage = new global::Protobuf.MessageOfTeam(); + } + TeamMessage.MergeFrom(other.TeamMessage); + break; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfObj() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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.MessageOfShip subBuilder = new global::Protobuf.MessageOfShip(); + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + { + subBuilder.MergeFrom(ShipMessage); + } + input.ReadMessage(subBuilder); + ShipMessage = subBuilder; + break; + } + case 18: + { + global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + { + subBuilder.MergeFrom(BulletMessage); + } + input.ReadMessage(subBuilder); + BulletMessage = subBuilder; + break; + } + case 26: + { + global::Protobuf.MessageOfFactory subBuilder = new global::Protobuf.MessageOfFactory(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + { + subBuilder.MergeFrom(FactoryMessage); + } + input.ReadMessage(subBuilder); + FactoryMessage = subBuilder; + break; + } + case 34: + { + global::Protobuf.MessageOfCommunity subBuilder = new global::Protobuf.MessageOfCommunity(); + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + { + subBuilder.MergeFrom(CommunityMessage); + } + input.ReadMessage(subBuilder); + CommunityMessage = subBuilder; + break; + } + case 42: + { + global::Protobuf.MessageOfFort subBuilder = new global::Protobuf.MessageOfFort(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + { + subBuilder.MergeFrom(FortMessage); + } + input.ReadMessage(subBuilder); + FortMessage = subBuilder; + break; + } + case 50: + { + global::Protobuf.MessageOfWormhole subBuilder = new global::Protobuf.MessageOfWormhole(); + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + { + subBuilder.MergeFrom(WormholeMessage); + } + input.ReadMessage(subBuilder); + WormholeMessage = subBuilder; + break; + } + case 58: + { + global::Protobuf.MessageOfHome subBuilder = new global::Protobuf.MessageOfHome(); + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + { + subBuilder.MergeFrom(HomeMessage); + } + input.ReadMessage(subBuilder); + HomeMessage = subBuilder; + break; + } + case 66: + { + global::Protobuf.MessageOfResource subBuilder = new global::Protobuf.MessageOfResource(); + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + { + subBuilder.MergeFrom(ResourceMessage); + } + input.ReadMessage(subBuilder); + ResourceMessage = subBuilder; + break; + } + case 74: + { + global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap(); + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + { + subBuilder.MergeFrom(MapMessage); + } + input.ReadMessage(subBuilder); + MapMessage = subBuilder; + break; + } + case 82: + { + global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews(); + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + { + subBuilder.MergeFrom(NewsMessage); + } + input.ReadMessage(subBuilder); + NewsMessage = subBuilder; + break; + } + case 90: + { + global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + { + subBuilder.MergeFrom(BombedBulletMessage); + } + input.ReadMessage(subBuilder); + BombedBulletMessage = subBuilder; + break; + } + case 98: + { + global::Protobuf.MessageOfTeam subBuilder = new global::Protobuf.MessageOfTeam(); + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + { + subBuilder.MergeFrom(TeamMessage); + } + input.ReadMessage(subBuilder); + TeamMessage = subBuilder; + break; + } + } + } +#endif + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfObj(MessageOfObj other) : this() { - switch (other.MessageOfObjCase) { - case MessageOfObjOneofCase.ShipMessage: - ShipMessage = other.ShipMessage.Clone(); - break; - case MessageOfObjOneofCase.BulletMessage: - BulletMessage = other.BulletMessage.Clone(); - break; - case MessageOfObjOneofCase.FactoryMessage: - FactoryMessage = other.FactoryMessage.Clone(); - break; - case MessageOfObjOneofCase.CommunityMessage: - CommunityMessage = other.CommunityMessage.Clone(); - break; - case MessageOfObjOneofCase.FortMessage: - FortMessage = other.FortMessage.Clone(); - break; - case MessageOfObjOneofCase.WormholeMessage: - WormholeMessage = other.WormholeMessage.Clone(); - break; - case MessageOfObjOneofCase.HomeMessage: - HomeMessage = other.HomeMessage.Clone(); - break; - case MessageOfObjOneofCase.ResourceMessage: - ResourceMessage = other.ResourceMessage.Clone(); - break; - case MessageOfObjOneofCase.MapMessage: - MapMessage = other.MapMessage.Clone(); - break; - case MessageOfObjOneofCase.NewsMessage: - NewsMessage = other.NewsMessage.Clone(); - break; - case MessageOfObjOneofCase.BombedBulletMessage: - BombedBulletMessage = other.BombedBulletMessage.Clone(); - break; - case MessageOfObjOneofCase.TeamMessage: - TeamMessage = other.TeamMessage.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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.MessageOfShip subBuilder = new global::Protobuf.MessageOfShip(); + if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) + { + subBuilder.MergeFrom(ShipMessage); + } + input.ReadMessage(subBuilder); + ShipMessage = subBuilder; + break; + } + case 18: + { + global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) + { + subBuilder.MergeFrom(BulletMessage); + } + input.ReadMessage(subBuilder); + BulletMessage = subBuilder; + break; + } + case 26: + { + global::Protobuf.MessageOfFactory subBuilder = new global::Protobuf.MessageOfFactory(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) + { + subBuilder.MergeFrom(FactoryMessage); + } + input.ReadMessage(subBuilder); + FactoryMessage = subBuilder; + break; + } + case 34: + { + global::Protobuf.MessageOfCommunity subBuilder = new global::Protobuf.MessageOfCommunity(); + if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) + { + subBuilder.MergeFrom(CommunityMessage); + } + input.ReadMessage(subBuilder); + CommunityMessage = subBuilder; + break; + } + case 42: + { + global::Protobuf.MessageOfFort subBuilder = new global::Protobuf.MessageOfFort(); + if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) + { + subBuilder.MergeFrom(FortMessage); + } + input.ReadMessage(subBuilder); + FortMessage = subBuilder; + break; + } + case 50: + { + global::Protobuf.MessageOfWormhole subBuilder = new global::Protobuf.MessageOfWormhole(); + if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) + { + subBuilder.MergeFrom(WormholeMessage); + } + input.ReadMessage(subBuilder); + WormholeMessage = subBuilder; + break; + } + case 58: + { + global::Protobuf.MessageOfHome subBuilder = new global::Protobuf.MessageOfHome(); + if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) + { + subBuilder.MergeFrom(HomeMessage); + } + input.ReadMessage(subBuilder); + HomeMessage = subBuilder; + break; + } + case 66: + { + global::Protobuf.MessageOfResource subBuilder = new global::Protobuf.MessageOfResource(); + if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) + { + subBuilder.MergeFrom(ResourceMessage); + } + input.ReadMessage(subBuilder); + ResourceMessage = subBuilder; + break; + } + case 74: + { + global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap(); + if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) + { + subBuilder.MergeFrom(MapMessage); + } + input.ReadMessage(subBuilder); + MapMessage = subBuilder; + break; + } + case 82: + { + global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews(); + if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) + { + subBuilder.MergeFrom(NewsMessage); + } + input.ReadMessage(subBuilder); + NewsMessage = subBuilder; + break; + } + case 90: + { + global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet(); + if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) + { + subBuilder.MergeFrom(BombedBulletMessage); + } + input.ReadMessage(subBuilder); + BombedBulletMessage = subBuilder; + break; + } + case 98: + { + global::Protobuf.MessageOfTeam subBuilder = new global::Protobuf.MessageOfTeam(); + if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) + { + subBuilder.MergeFrom(TeamMessage); + } + input.ReadMessage(subBuilder); + TeamMessage = subBuilder; + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfObj Clone() { - return new MessageOfObj(this); - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - /// Field number for the "ship_message" field. - public const int ShipMessageFieldNumber = 1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfShip ShipMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage ? (global::Protobuf.MessageOfShip) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ShipMessage; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[12]; + } + } - /// Field number for the "bullet_message" field. - public const int BulletMessageFieldNumber = 2; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - /// Field number for the "factory_message" field. - public const int FactoryMessageFieldNumber = 3; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfFactory FactoryMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage ? (global::Protobuf.MessageOfFactory) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.FactoryMessage; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfAll() + { + OnConstruction(); + } - /// Field number for the "community_message" field. - public const int CommunityMessageFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfCommunity CommunityMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage ? (global::Protobuf.MessageOfCommunity) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.CommunityMessage; - } - } + partial void OnConstruction(); - /// Field number for the "fort_message" field. - public const int FortMessageFieldNumber = 5; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfFort FortMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.FortMessage ? (global::Protobuf.MessageOfFort) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.FortMessage; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfAll(MessageOfAll other) : + this() + { + gameTime_ = other.gameTime_; + redTeamScore_ = other.redTeamScore_; + blueTeamScore_ = other.blueTeamScore_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "wormhole_message" field. - public const int WormholeMessageFieldNumber = 6; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfWormhole WormholeMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage ? (global::Protobuf.MessageOfWormhole) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.WormholeMessage; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfAll Clone() + { + return new MessageOfAll(this); + } - /// Field number for the "home_message" field. - public const int HomeMessageFieldNumber = 7; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfHome HomeMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage ? (global::Protobuf.MessageOfHome) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.HomeMessage; - } - } + /// Field number for the "game_time" field. + public const int GameTimeFieldNumber = 1; + private int gameTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int GameTime + { + get { + return gameTime_; + } + set { + gameTime_ = value; + } + } - /// Field number for the "resource_message" field. - public const int ResourceMessageFieldNumber = 8; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfResource ResourceMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage ? (global::Protobuf.MessageOfResource) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.ResourceMessage; - } - } + /// Field number for the "red_team_score" field. + public const int RedTeamScoreFieldNumber = 2; + private int redTeamScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RedTeamScore + { + get { + return redTeamScore_; + } + set { + redTeamScore_ = value; + } + } - /// Field number for the "map_message" field. - public const int MapMessageFieldNumber = 9; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } + /// Field number for the "blue_team_score" field. + public const int BlueTeamScoreFieldNumber = 3; + private int blueTeamScore_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int BlueTeamScore + { + get { + return blueTeamScore_; + } + set { + blueTeamScore_ = value; + } + } - /// Field number for the "news_message" field. - public const int NewsMessageFieldNumber = 10; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfAll); + } - /// Field number for the "bombed_bullet_message" field. - public const int BombedBulletMessageFieldNumber = 11; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfAll other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (GameTime != other.GameTime) + return false; + if (RedTeamScore != other.RedTeamScore) + return false; + if (BlueTeamScore != other.BlueTeamScore) + return false; + return Equals(_unknownFields, other._unknownFields); + } - /// Field number for the "team_message" field. - public const int TeamMessageFieldNumber = 12; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfTeam TeamMessage { - get { return messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage ? (global::Protobuf.MessageOfTeam) messageOfObj_ : null; } - set { - messageOfObj_ = value; - messageOfObjCase_ = value == null ? MessageOfObjOneofCase.None : MessageOfObjOneofCase.TeamMessage; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (GameTime != 0) + hash ^= GameTime.GetHashCode(); + if (RedTeamScore != 0) + hash ^= RedTeamScore.GetHashCode(); + if (BlueTeamScore != 0) + hash ^= BlueTeamScore.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - private object messageOfObj_; - /// Enum of possible cases for the "message_of_obj" oneof. - public enum MessageOfObjOneofCase { - None = 0, - ShipMessage = 1, - BulletMessage = 2, - FactoryMessage = 3, - CommunityMessage = 4, - FortMessage = 5, - WormholeMessage = 6, - HomeMessage = 7, - ResourceMessage = 8, - MapMessage = 9, - NewsMessage = 10, - BombedBulletMessage = 11, - TeamMessage = 12, - } - private MessageOfObjOneofCase messageOfObjCase_ = MessageOfObjOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfObjOneofCase MessageOfObjCase { - get { return messageOfObjCase_; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void ClearMessageOfObj() { - messageOfObjCase_ = MessageOfObjOneofCase.None; - messageOfObj_ = null; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (RedTeamScore != 0) + { + output.WriteRawTag(16); + output.WriteInt32(RedTeamScore); + } + if (BlueTeamScore != 0) + { + output.WriteRawTag(24); + output.WriteInt32(BlueTeamScore); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfObj); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (GameTime != 0) + { + output.WriteRawTag(8); + output.WriteInt32(GameTime); + } + if (RedTeamScore != 0) + { + output.WriteRawTag(16); + output.WriteInt32(RedTeamScore); + } + if (BlueTeamScore != 0) + { + output.WriteRawTag(24); + output.WriteInt32(BlueTeamScore); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfObj other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ShipMessage, other.ShipMessage)) return false; - if (!object.Equals(BulletMessage, other.BulletMessage)) return false; - if (!object.Equals(FactoryMessage, other.FactoryMessage)) return false; - if (!object.Equals(CommunityMessage, other.CommunityMessage)) return false; - if (!object.Equals(FortMessage, other.FortMessage)) return false; - if (!object.Equals(WormholeMessage, other.WormholeMessage)) return false; - if (!object.Equals(HomeMessage, other.HomeMessage)) return false; - if (!object.Equals(ResourceMessage, other.ResourceMessage)) return false; - if (!object.Equals(MapMessage, other.MapMessage)) return false; - if (!object.Equals(NewsMessage, other.NewsMessage)) return false; - if (!object.Equals(BombedBulletMessage, other.BombedBulletMessage)) return false; - if (!object.Equals(TeamMessage, other.TeamMessage)) return false; - if (MessageOfObjCase != other.MessageOfObjCase) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (GameTime != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameTime); + } + if (RedTeamScore != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RedTeamScore); + } + if (BlueTeamScore != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(BlueTeamScore); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) hash ^= ShipMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) hash ^= BulletMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) hash ^= FactoryMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) hash ^= CommunityMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) hash ^= FortMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) hash ^= WormholeMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) hash ^= HomeMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) hash ^= ResourceMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) hash ^= MapMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) hash ^= NewsMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) hash ^= BombedBulletMessage.GetHashCode(); - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) hash ^= TeamMessage.GetHashCode(); - hash ^= (int) messageOfObjCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfAll other) + { + if (other == null) + { + return; + } + if (other.GameTime != 0) + { + GameTime = other.GameTime; + } + if (other.RedTeamScore != 0) + { + RedTeamScore = other.RedTeamScore; + } + if (other.BlueTeamScore != 0) + { + BlueTeamScore = other.BlueTeamScore; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + RedTeamScore = input.ReadInt32(); + break; + } + case 24: + { + BlueTeamScore = input.ReadInt32(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) { - output.WriteRawTag(10); - output.WriteMessage(ShipMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) { - output.WriteRawTag(18); - output.WriteMessage(BulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) { - output.WriteRawTag(26); - output.WriteMessage(FactoryMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) { - output.WriteRawTag(34); - output.WriteMessage(CommunityMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) { - output.WriteRawTag(42); - output.WriteMessage(FortMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) { - output.WriteRawTag(50); - output.WriteMessage(WormholeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) { - output.WriteRawTag(58); - output.WriteMessage(HomeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) { - output.WriteRawTag(66); - output.WriteMessage(ResourceMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) { - output.WriteRawTag(74); - output.WriteMessage(MapMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) { - output.WriteRawTag(82); - output.WriteMessage(NewsMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) { - output.WriteRawTag(90); - output.WriteMessage(BombedBulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) { - output.WriteRawTag(98); - output.WriteMessage(TeamMessage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + RedTeamScore = input.ReadInt32(); + break; + } + case 24: + { + BlueTeamScore = input.ReadInt32(); + break; + } + } + } + } +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) { - output.WriteRawTag(10); - output.WriteMessage(ShipMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) { - output.WriteRawTag(18); - output.WriteMessage(BulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) { - output.WriteRawTag(26); - output.WriteMessage(FactoryMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) { - output.WriteRawTag(34); - output.WriteMessage(CommunityMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) { - output.WriteRawTag(42); - output.WriteMessage(FortMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) { - output.WriteRawTag(50); - output.WriteMessage(WormholeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) { - output.WriteRawTag(58); - output.WriteMessage(HomeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) { - output.WriteRawTag(66); - output.WriteMessage(ResourceMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) { - output.WriteRawTag(74); - output.WriteMessage(MapMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) { - output.WriteRawTag(82); - output.WriteMessage(NewsMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) { - output.WriteRawTag(90); - output.WriteMessage(BombedBulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) { - output.WriteRawTag(98); - output.WriteMessage(TeamMessage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShipMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FactoryMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommunityMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FortMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WormholeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HomeMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewsMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BombedBulletMessage); - } - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamMessage); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(MessageOfObj other) { - if (other == null) { - return; - } - switch (other.MessageOfObjCase) { - case MessageOfObjOneofCase.ShipMessage: - if (ShipMessage == null) { - ShipMessage = new global::Protobuf.MessageOfShip(); - } - ShipMessage.MergeFrom(other.ShipMessage); - break; - case MessageOfObjOneofCase.BulletMessage: - if (BulletMessage == null) { - BulletMessage = new global::Protobuf.MessageOfBullet(); - } - BulletMessage.MergeFrom(other.BulletMessage); - break; - case MessageOfObjOneofCase.FactoryMessage: - if (FactoryMessage == null) { - FactoryMessage = new global::Protobuf.MessageOfFactory(); - } - FactoryMessage.MergeFrom(other.FactoryMessage); - break; - case MessageOfObjOneofCase.CommunityMessage: - if (CommunityMessage == null) { - CommunityMessage = new global::Protobuf.MessageOfCommunity(); - } - CommunityMessage.MergeFrom(other.CommunityMessage); - break; - case MessageOfObjOneofCase.FortMessage: - if (FortMessage == null) { - FortMessage = new global::Protobuf.MessageOfFort(); - } - FortMessage.MergeFrom(other.FortMessage); - break; - case MessageOfObjOneofCase.WormholeMessage: - if (WormholeMessage == null) { - WormholeMessage = new global::Protobuf.MessageOfWormhole(); - } - WormholeMessage.MergeFrom(other.WormholeMessage); - break; - case MessageOfObjOneofCase.HomeMessage: - if (HomeMessage == null) { - HomeMessage = new global::Protobuf.MessageOfHome(); - } - HomeMessage.MergeFrom(other.HomeMessage); - break; - case MessageOfObjOneofCase.ResourceMessage: - if (ResourceMessage == null) { - ResourceMessage = new global::Protobuf.MessageOfResource(); - } - ResourceMessage.MergeFrom(other.ResourceMessage); - break; - case MessageOfObjOneofCase.MapMessage: - if (MapMessage == null) { - MapMessage = new global::Protobuf.MessageOfMap(); - } - MapMessage.MergeFrom(other.MapMessage); - break; - case MessageOfObjOneofCase.NewsMessage: - if (NewsMessage == null) { - NewsMessage = new global::Protobuf.MessageOfNews(); - } - NewsMessage.MergeFrom(other.NewsMessage); - break; - case MessageOfObjOneofCase.BombedBulletMessage: - if (BombedBulletMessage == null) { - BombedBulletMessage = new global::Protobuf.MessageOfBombedBullet(); - } - BombedBulletMessage.MergeFrom(other.BombedBulletMessage); - break; - case MessageOfObjOneofCase.TeamMessage: - if (TeamMessage == null) { - TeamMessage = new global::Protobuf.MessageOfTeam(); - } - TeamMessage.MergeFrom(other.TeamMessage); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[13]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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.MessageOfShip subBuilder = new global::Protobuf.MessageOfShip(); - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) { - subBuilder.MergeFrom(ShipMessage); - } - input.ReadMessage(subBuilder); - ShipMessage = subBuilder; - break; - } - case 18: { - global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) { - subBuilder.MergeFrom(BulletMessage); - } - input.ReadMessage(subBuilder); - BulletMessage = subBuilder; - break; - } - case 26: { - global::Protobuf.MessageOfFactory subBuilder = new global::Protobuf.MessageOfFactory(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) { - subBuilder.MergeFrom(FactoryMessage); - } - input.ReadMessage(subBuilder); - FactoryMessage = subBuilder; - break; - } - case 34: { - global::Protobuf.MessageOfCommunity subBuilder = new global::Protobuf.MessageOfCommunity(); - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) { - subBuilder.MergeFrom(CommunityMessage); - } - input.ReadMessage(subBuilder); - CommunityMessage = subBuilder; - break; - } - case 42: { - global::Protobuf.MessageOfFort subBuilder = new global::Protobuf.MessageOfFort(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) { - subBuilder.MergeFrom(FortMessage); - } - input.ReadMessage(subBuilder); - FortMessage = subBuilder; - break; - } - case 50: { - global::Protobuf.MessageOfWormhole subBuilder = new global::Protobuf.MessageOfWormhole(); - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) { - subBuilder.MergeFrom(WormholeMessage); - } - input.ReadMessage(subBuilder); - WormholeMessage = subBuilder; - break; - } - case 58: { - global::Protobuf.MessageOfHome subBuilder = new global::Protobuf.MessageOfHome(); - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) { - subBuilder.MergeFrom(HomeMessage); - } - input.ReadMessage(subBuilder); - HomeMessage = subBuilder; - break; - } - case 66: { - global::Protobuf.MessageOfResource subBuilder = new global::Protobuf.MessageOfResource(); - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) { - subBuilder.MergeFrom(ResourceMessage); - } - input.ReadMessage(subBuilder); - ResourceMessage = subBuilder; - break; - } - case 74: { - global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap(); - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) { - subBuilder.MergeFrom(MapMessage); - } - input.ReadMessage(subBuilder); - MapMessage = subBuilder; - break; - } - case 82: { - global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews(); - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) { - subBuilder.MergeFrom(NewsMessage); - } - input.ReadMessage(subBuilder); - NewsMessage = subBuilder; - break; - } - case 90: { - global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) { - subBuilder.MergeFrom(BombedBulletMessage); - } - input.ReadMessage(subBuilder); - BombedBulletMessage = subBuilder; - break; - } - case 98: { - global::Protobuf.MessageOfTeam subBuilder = new global::Protobuf.MessageOfTeam(); - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) { - subBuilder.MergeFrom(TeamMessage); - } - input.ReadMessage(subBuilder); - TeamMessage = subBuilder; - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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.MessageOfShip subBuilder = new global::Protobuf.MessageOfShip(); - if (messageOfObjCase_ == MessageOfObjOneofCase.ShipMessage) { - subBuilder.MergeFrom(ShipMessage); - } - input.ReadMessage(subBuilder); - ShipMessage = subBuilder; - break; - } - case 18: { - global::Protobuf.MessageOfBullet subBuilder = new global::Protobuf.MessageOfBullet(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BulletMessage) { - subBuilder.MergeFrom(BulletMessage); - } - input.ReadMessage(subBuilder); - BulletMessage = subBuilder; - break; - } - case 26: { - global::Protobuf.MessageOfFactory subBuilder = new global::Protobuf.MessageOfFactory(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FactoryMessage) { - subBuilder.MergeFrom(FactoryMessage); - } - input.ReadMessage(subBuilder); - FactoryMessage = subBuilder; - break; - } - case 34: { - global::Protobuf.MessageOfCommunity subBuilder = new global::Protobuf.MessageOfCommunity(); - if (messageOfObjCase_ == MessageOfObjOneofCase.CommunityMessage) { - subBuilder.MergeFrom(CommunityMessage); - } - input.ReadMessage(subBuilder); - CommunityMessage = subBuilder; - break; - } - case 42: { - global::Protobuf.MessageOfFort subBuilder = new global::Protobuf.MessageOfFort(); - if (messageOfObjCase_ == MessageOfObjOneofCase.FortMessage) { - subBuilder.MergeFrom(FortMessage); - } - input.ReadMessage(subBuilder); - FortMessage = subBuilder; - break; - } - case 50: { - global::Protobuf.MessageOfWormhole subBuilder = new global::Protobuf.MessageOfWormhole(); - if (messageOfObjCase_ == MessageOfObjOneofCase.WormholeMessage) { - subBuilder.MergeFrom(WormholeMessage); - } - input.ReadMessage(subBuilder); - WormholeMessage = subBuilder; - break; - } - case 58: { - global::Protobuf.MessageOfHome subBuilder = new global::Protobuf.MessageOfHome(); - if (messageOfObjCase_ == MessageOfObjOneofCase.HomeMessage) { - subBuilder.MergeFrom(HomeMessage); - } - input.ReadMessage(subBuilder); - HomeMessage = subBuilder; - break; - } - case 66: { - global::Protobuf.MessageOfResource subBuilder = new global::Protobuf.MessageOfResource(); - if (messageOfObjCase_ == MessageOfObjOneofCase.ResourceMessage) { - subBuilder.MergeFrom(ResourceMessage); - } - input.ReadMessage(subBuilder); - ResourceMessage = subBuilder; - break; - } - case 74: { - global::Protobuf.MessageOfMap subBuilder = new global::Protobuf.MessageOfMap(); - if (messageOfObjCase_ == MessageOfObjOneofCase.MapMessage) { - subBuilder.MergeFrom(MapMessage); - } - input.ReadMessage(subBuilder); - MapMessage = subBuilder; - break; - } - case 82: { - global::Protobuf.MessageOfNews subBuilder = new global::Protobuf.MessageOfNews(); - if (messageOfObjCase_ == MessageOfObjOneofCase.NewsMessage) { - subBuilder.MergeFrom(NewsMessage); - } - input.ReadMessage(subBuilder); - NewsMessage = subBuilder; - break; - } - case 90: { - global::Protobuf.MessageOfBombedBullet subBuilder = new global::Protobuf.MessageOfBombedBullet(); - if (messageOfObjCase_ == MessageOfObjOneofCase.BombedBulletMessage) { - subBuilder.MergeFrom(BombedBulletMessage); - } - input.ReadMessage(subBuilder); - BombedBulletMessage = subBuilder; - break; - } - case 98: { - global::Protobuf.MessageOfTeam subBuilder = new global::Protobuf.MessageOfTeam(); - if (messageOfObjCase_ == MessageOfObjOneofCase.TeamMessage) { - subBuilder.MergeFrom(TeamMessage); - } - input.ReadMessage(subBuilder); - TeamMessage = 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[12]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageToClient() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfAll() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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); + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageToClient Clone() + { + return new MessageToClient(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfAll(MessageOfAll other) : this() { - gameTime_ = other.gameTime_; - redTeamScore_ = other.redTeamScore_; - blueTeamScore_ = other.blueTeamScore_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + /// 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] + public pbc::RepeatedField ObjMessage + { + get { + return objMessage_; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfAll Clone() { - return new MessageOfAll(this); - } + /// 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] + public global::Protobuf.GameState GameState + { + get { + return gameState_; + } + set { + gameState_ = value; + } + } - /// Field number for the "game_time" field. - public const int GameTimeFieldNumber = 1; - private int gameTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int GameTime { - get { return gameTime_; } - set { - gameTime_ = value; - } - } + /// Field number for the "all_message" field. + public const int AllMessageFieldNumber = 3; + private global::Protobuf.MessageOfAll allMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.MessageOfAll AllMessage + { + get { + return allMessage_; + } + set { + allMessage_ = value; + } + } - /// Field number for the "red_team_score" field. - public const int RedTeamScoreFieldNumber = 2; - private int redTeamScore_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int RedTeamScore { - get { return redTeamScore_; } - set { - redTeamScore_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageToClient); + } - /// Field number for the "blue_team_score" field. - public const int BlueTeamScoreFieldNumber = 3; - private int blueTeamScore_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int BlueTeamScore { - get { return blueTeamScore_; } - set { - blueTeamScore_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public override bool Equals(object other) { - return Equals(other as MessageOfAll); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public bool Equals(MessageOfAll other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GameTime != other.GameTime) return false; - if (RedTeamScore != other.RedTeamScore) return false; - if (BlueTeamScore != other.BlueTeamScore) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (GameTime != 0) hash ^= GameTime.GetHashCode(); - if (RedTeamScore != 0) hash ^= RedTeamScore.GetHashCode(); - if (BlueTeamScore != 0) hash ^= BlueTeamScore.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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 (RedTeamScore != 0) { - output.WriteRawTag(16); - output.WriteInt32(RedTeamScore); - } - if (BlueTeamScore != 0) { - output.WriteRawTag(24); - output.WriteInt32(BlueTeamScore); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GameTime != 0) { - output.WriteRawTag(8); - output.WriteInt32(GameTime); - } - if (RedTeamScore != 0) { - output.WriteRawTag(16); - output.WriteInt32(RedTeamScore); - } - if (BlueTeamScore != 0) { - output.WriteRawTag(24); - output.WriteInt32(BlueTeamScore); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (GameTime != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameTime); - } - if (RedTeamScore != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RedTeamScore); - } - if (BlueTeamScore != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(BlueTeamScore); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public void MergeFrom(MessageOfAll other) { - if (other == null) { - return; - } - if (other.GameTime != 0) { - GameTime = other.GameTime; - } - if (other.RedTeamScore != 0) { - RedTeamScore = other.RedTeamScore; - } - if (other.BlueTeamScore != 0) { - BlueTeamScore = other.BlueTeamScore; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - RedTeamScore = input.ReadInt32(); - break; - } - case 24: { - BlueTeamScore = input.ReadInt32(); - break; - } - } - } - #endif +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - RedTeamScore = input.ReadInt32(); - break; - } - case 24: { - BlueTeamScore = input.ReadInt32(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[13]; } - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[14]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageToClient() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MoveRes() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageToClient Clone() { - return new MessageToClient(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MoveRes(MoveRes other) : + this() + { + actualSpeed_ = other.actualSpeed_; + actualAngle_ = other.actualAngle_; + actSuccess_ = other.actSuccess_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// 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] - public pbc::RepeatedField ObjMessage { - get { return objMessage_; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MoveRes Clone() + { + return new MoveRes(this); + } - /// 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] - public global::Protobuf.GameState GameState { - get { return gameState_; } - set { - gameState_ = value; - } - } + /// Field number for the "actual_speed" field. + public const int ActualSpeedFieldNumber = 1; + private long actualSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long ActualSpeed + { + get { + return actualSpeed_; + } + set { + actualSpeed_ = value; + } + } - /// Field number for the "all_message" field. - public const int AllMessageFieldNumber = 3; - private global::Protobuf.MessageOfAll allMessage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.MessageOfAll AllMessage { - get { return allMessage_; } - set { - allMessage_ = value; - } - } + /// Field number for the "actual_angle" field. + public const int ActualAngleFieldNumber = 2; + private double actualAngle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double ActualAngle + { + get { + return actualAngle_; + } + set { + actualAngle_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageToClient); - } + /// Field number for the "act_success" field. + public const int ActSuccessFieldNumber = 3; + private bool actSuccess_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ActSuccess + { + get { + return actSuccess_; + } + set { + actSuccess_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public override bool Equals(object other) + { + return Equals(other as MoveRes); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + 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] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - 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] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[14]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveRes() { - OnConstruction(); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveRes(MoveRes other) : this() { - actualSpeed_ = other.actualSpeed_; - actualAngle_ = other.actualAngle_; - actSuccess_ = other.actSuccess_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveRes Clone() { - return new MoveRes(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[15]; + } + } - /// Field number for the "actual_speed" field. - public const int ActualSpeedFieldNumber = 1; - private long actualSpeed_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long ActualSpeed { - get { return actualSpeed_; } - set { - actualSpeed_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - /// Field number for the "actual_angle" field. - public const int ActualAngleFieldNumber = 2; - private double actualAngle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double ActualAngle { - get { return actualAngle_; } - set { - actualAngle_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BoolRes() + { + OnConstruction(); + } - /// Field number for the "act_success" field. - public const int ActSuccessFieldNumber = 3; - private bool actSuccess_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool ActSuccess { - get { return actSuccess_; } - set { - actSuccess_ = value; - } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MoveRes); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BoolRes(BoolRes other) : + this() + { + actSuccess_ = other.actSuccess_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public BoolRes Clone() + { + return new BoolRes(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } + /// Field number for the "act_success" field. + public const int ActSuccessFieldNumber = 1; + private bool actSuccess_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ActSuccess + { + get { + return actSuccess_; + } + set { + actSuccess_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as BoolRes); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - 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] + 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] - 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] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[15]; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (ActSuccess != false) + { + size += 1 + 1; + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BoolRes() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BoolRes other) + { + if (other == null) + { + return; + } + if (other.ActSuccess != false) + { + ActSuccess = other.ActSuccess; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BoolRes(BoolRes other) : this() { - actSuccess_ = other.actSuccess_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BoolRes Clone() { - return new BoolRes(this); - } + public sealed partial class ShipInfoRes : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShipInfoRes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - /// Field number for the "act_success" field. - public const int ActSuccessFieldNumber = 1; - private bool actSuccess_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool ActSuccess { - get { return actSuccess_; } - set { - actSuccess_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[16]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as BoolRes); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public ShipInfoRes() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ActSuccess != false) hash ^= ActSuccess.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ShipInfoRes(ShipInfoRes other) : + this() + { + shipInfo_ = other.shipInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ShipInfoRes Clone() + { + return new ShipInfoRes(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] - public int CalculateSize() { - int size = 0; - if (ActSuccess != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + /// Field number for the "ship_info" field. + public const int ShipInfoFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_shipInfo_codec = pb::FieldCodec.ForMessage(10, global::Protobuf.MessageOfShip.Parser); + private readonly pbc::RepeatedField shipInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField ShipInfo + { + get { + return shipInfo_; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public override bool Equals(object other) + { + return Equals(other as ShipInfoRes); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ShipInfoRes other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (!shipInfo_.Equals(other.shipInfo_)) + return false; + return Equals(_unknownFields, other._unknownFields); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 - - } - - public sealed partial class ShipInfoRes : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShipInfoRes()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[16]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + hash ^= shipInfo_.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ShipInfoRes() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + shipInfo_.WriteTo(output, _repeated_shipInfo_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - partial void OnConstruction(); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + shipInfo_.WriteTo(ref output, _repeated_shipInfo_codec); + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ShipInfoRes(ShipInfoRes other) : this() { - shipInfo_ = other.shipInfo_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + size += shipInfo_.CalculateSize(_repeated_shipInfo_codec); + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ShipInfoRes Clone() { - return new ShipInfoRes(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ShipInfoRes other) + { + if (other == null) + { + return; + } + shipInfo_.Add(other.shipInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - /// Field number for the "ship_info" field. - public const int ShipInfoFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_shipInfo_codec - = pb::FieldCodec.ForMessage(10, global::Protobuf.MessageOfShip.Parser); - private readonly pbc::RepeatedField shipInfo_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField ShipInfo { - get { return shipInfo_; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + shipInfo_.AddEntriesFrom(input, _repeated_shipInfo_codec); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ShipInfoRes); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + shipInfo_.AddEntriesFrom(ref input, _repeated_shipInfo_codec); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ShipInfoRes other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!shipInfo_.Equals(other.shipInfo_)) return false; - return Equals(_unknownFields, other._unknownFields); - } + public sealed partial class EcoRes : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EcoRes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= shipInfo_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[17]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - shipInfo_.WriteTo(output, _repeated_shipInfo_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EcoRes() + { + OnConstruction(); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - shipInfo_.WriteTo(ref output, _repeated_shipInfo_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += shipInfo_.CalculateSize(_repeated_shipInfo_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ShipInfoRes other) { - if (other == null) { - return; - } - shipInfo_.Add(other.shipInfo_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EcoRes(EcoRes other) : + this() + { + economy_ = other.economy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - shipInfo_.AddEntriesFrom(input, _repeated_shipInfo_codec); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public EcoRes Clone() + { + return new EcoRes(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - shipInfo_.AddEntriesFrom(ref input, _repeated_shipInfo_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class EcoRes : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EcoRes()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[17]; } - } + /// Field number for the "economy" field. + public const int EconomyFieldNumber = 1; + private long economy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Economy + { + get { + return economy_; + } + set { + economy_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as EcoRes); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public EcoRes() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(EcoRes other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (Economy != other.Economy) + return false; + return Equals(_unknownFields, other._unknownFields); + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (Economy != 0L) + hash ^= Economy.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public EcoRes(EcoRes other) : this() { - economy_ = other.economy_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public EcoRes Clone() { - return new EcoRes(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (Economy != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(Economy); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - /// Field number for the "economy" field. - public const int EconomyFieldNumber = 1; - private long economy_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Economy { - get { return economy_; } - set { - economy_ = value; - } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Economy != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(Economy); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as EcoRes); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (Economy != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Economy); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(EcoRes other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Economy != other.Economy) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(EcoRes other) + { + if (other == null) + { + return; + } + if (other.Economy != 0L) + { + Economy = other.Economy; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Economy != 0L) hash ^= Economy.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Economy = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + Economy = input.ReadInt64(); + break; + } + } + } + } +#endif } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Economy != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Economy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Economy != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Economy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Economy != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Economy); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[18]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(EcoRes other) { - if (other == null) { - return; - } - if (other.Economy != 0L) { - Economy = other.Economy; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Economy = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfNews() + { + OnConstruction(); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - Economy = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ClientsReflection.Descriptor.MessageTypes[18]; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfNews(MessageOfNews other) : + this() + { + fromId_ = other.fromId_; + toId_ = other.toId_; + switch (other.NewsCase) + { + case NewsOneofCase.TextMessage: + TextMessage = other.TextMessage; + break; + case NewsOneofCase.BinaryMessage: + BinaryMessage = other.BinaryMessage; + break; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfNews() { - OnConstruction(); - } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfNews(MessageOfNews other) : this() { - fromId_ = other.fromId_; - toId_ = other.toId_; - switch (other.NewsCase) { - case NewsOneofCase.TextMessage: - TextMessage = other.TextMessage; - break; - case NewsOneofCase.BinaryMessage: - BinaryMessage = other.BinaryMessage; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOfNews Clone() + { + return new MessageOfNews(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOfNews Clone() { - return new MessageOfNews(this); - } + /// Field number for the "text_message" field. + public const int TextMessageFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TextMessage + { + get { + return newsCase_ == NewsOneofCase.TextMessage ? (string)news_ : ""; + } + set { + news_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + newsCase_ = NewsOneofCase.TextMessage; + } + } - /// Field number for the "text_message" field. - public const int TextMessageFieldNumber = 1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string TextMessage { - get { return newsCase_ == NewsOneofCase.TextMessage ? (string) news_ : ""; } - set { - news_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - newsCase_ = NewsOneofCase.TextMessage; - } - } + /// Field number for the "binary_message" field. + public const int BinaryMessageFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString BinaryMessage + { + get { + return newsCase_ == NewsOneofCase.BinaryMessage ? (pb::ByteString)news_ : pb::ByteString.Empty; + } + set { + news_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + newsCase_ = NewsOneofCase.BinaryMessage; + } + } - /// Field number for the "binary_message" field. - public const int BinaryMessageFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString BinaryMessage { - get { return newsCase_ == NewsOneofCase.BinaryMessage ? (pb::ByteString) news_ : pb::ByteString.Empty; } - set { - news_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - newsCase_ = NewsOneofCase.BinaryMessage; - } - } + /// Field number for the "from_id" field. + public const int FromIdFieldNumber = 2; + private long fromId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long FromId + { + get { + return fromId_; + } + set { + fromId_ = value; + } + } - /// Field number for the "from_id" field. - public const int FromIdFieldNumber = 2; - private long fromId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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] + public long ToId + { + get { + return toId_; + } + set { + toId_ = value; + } + } - /// Field number for the "to_id" field. - public const int ToIdFieldNumber = 3; - private long toId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long ToId { - get { return toId_; } - set { - toId_ = value; - } - } + private object news_; + /// Enum of possible cases for the "news" oneof. + public enum NewsOneofCase + { + None = 0, + TextMessage = 1, + BinaryMessage = 4, + } + private NewsOneofCase newsCase_ = NewsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NewsOneofCase NewsCase + { + get { + return newsCase_; + } + } - private object news_; - /// Enum of possible cases for the "news" oneof. - public enum NewsOneofCase { - None = 0, - TextMessage = 1, - BinaryMessage = 4, - } - private NewsOneofCase newsCase_ = NewsOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public NewsOneofCase NewsCase { - get { return newsCase_; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNews() + { + newsCase_ = NewsOneofCase.None; + news_ = null; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void ClearNews() { - newsCase_ = NewsOneofCase.None; - news_ = null; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MessageOfNews); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MessageOfNews); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(MessageOfNews other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (TextMessage != other.TextMessage) + return false; + if (BinaryMessage != other.BinaryMessage) + return false; + if (FromId != other.FromId) + return false; + if (ToId != other.ToId) + return false; + if (NewsCase != other.NewsCase) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(MessageOfNews other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TextMessage != other.TextMessage) return false; - if (BinaryMessage != other.BinaryMessage) return false; - if (FromId != other.FromId) return false; - if (ToId != other.ToId) return false; - if (NewsCase != other.NewsCase) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (newsCase_ == NewsOneofCase.TextMessage) + hash ^= TextMessage.GetHashCode(); + if (newsCase_ == NewsOneofCase.BinaryMessage) + hash ^= BinaryMessage.GetHashCode(); + if (FromId != 0L) + hash ^= FromId.GetHashCode(); + if (ToId != 0L) + hash ^= ToId.GetHashCode(); + hash ^= (int)newsCase_; + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (newsCase_ == NewsOneofCase.TextMessage) hash ^= TextMessage.GetHashCode(); - if (newsCase_ == NewsOneofCase.BinaryMessage) hash ^= BinaryMessage.GetHashCode(); - if (FromId != 0L) hash ^= FromId.GetHashCode(); - if (ToId != 0L) hash ^= ToId.GetHashCode(); - hash ^= (int) newsCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (newsCase_ == NewsOneofCase.TextMessage) + { + output.WriteRawTag(10); + output.WriteString(TextMessage); + } + if (FromId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(FromId); + } + if (ToId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(ToId); + } + if (newsCase_ == NewsOneofCase.BinaryMessage) + { + output.WriteRawTag(34); + output.WriteBytes(BinaryMessage); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (newsCase_ == NewsOneofCase.TextMessage) { - output.WriteRawTag(10); - output.WriteString(TextMessage); - } - if (FromId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(FromId); - } - if (ToId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ToId); - } - if (newsCase_ == NewsOneofCase.BinaryMessage) { - output.WriteRawTag(34); - output.WriteBytes(BinaryMessage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (newsCase_ == NewsOneofCase.TextMessage) + { + output.WriteRawTag(10); + output.WriteString(TextMessage); + } + if (FromId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(FromId); + } + if (ToId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(ToId); + } + if (newsCase_ == NewsOneofCase.BinaryMessage) + { + output.WriteRawTag(34); + output.WriteBytes(BinaryMessage); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (newsCase_ == NewsOneofCase.TextMessage) { - output.WriteRawTag(10); - output.WriteString(TextMessage); - } - if (FromId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(FromId); - } - if (ToId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ToId); - } - if (newsCase_ == NewsOneofCase.BinaryMessage) { - output.WriteRawTag(34); - output.WriteBytes(BinaryMessage); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (newsCase_ == NewsOneofCase.TextMessage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TextMessage); - } - if (newsCase_ == NewsOneofCase.BinaryMessage) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(BinaryMessage); - } - 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] + public int CalculateSize() + { + int size = 0; + if (newsCase_ == NewsOneofCase.TextMessage) + { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TextMessage); + } + if (newsCase_ == NewsOneofCase.BinaryMessage) + { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BinaryMessage); + } + 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] - public void MergeFrom(MessageOfNews other) { - if (other == null) { - return; - } - if (other.FromId != 0L) { - FromId = other.FromId; - } - if (other.ToId != 0L) { - ToId = other.ToId; - } - switch (other.NewsCase) { - case NewsOneofCase.TextMessage: - TextMessage = other.TextMessage; - break; - case NewsOneofCase.BinaryMessage: - BinaryMessage = other.BinaryMessage; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(MessageOfNews other) + { + if (other == null) + { + return; + } + if (other.FromId != 0L) + { + FromId = other.FromId; + } + if (other.ToId != 0L) + { + ToId = other.ToId; + } + switch (other.NewsCase) + { + case NewsOneofCase.TextMessage: + TextMessage = other.TextMessage; + break; + case NewsOneofCase.BinaryMessage: + BinaryMessage = other.BinaryMessage; + break; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TextMessage = input.ReadString(); - break; - } - case 16: { - FromId = input.ReadInt64(); - break; - } - case 24: { - ToId = input.ReadInt64(); - break; - } - case 34: { - BinaryMessage = input.ReadBytes(); - break; - } - } - } - #endif - } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TextMessage = input.ReadString(); - break; - } - case 16: { - FromId = input.ReadInt64(); - break; - } - case 24: { - ToId = input.ReadInt64(); - break; - } - case 34: { - BinaryMessage = input.ReadBytes(); - break; - } - } - } - } - #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TextMessage = input.ReadString(); + break; + } + case 16: + { + FromId = input.ReadInt64(); + break; + } + case 24: + { + ToId = input.ReadInt64(); + break; + } + case 34: + { + BinaryMessage = input.ReadBytes(); + break; + } + } + } +#endif + } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TextMessage = input.ReadString(); + break; + } + case 16: + { + FromId = input.ReadInt64(); + break; + } + case 24: + { + ToId = input.ReadInt64(); + break; + } + case 34: + { + BinaryMessage = input.ReadBytes(); + break; + } + } + } + } +#endif + } - #endregion +#endregion } diff --git a/interface/Assets/Scripts/Proto/Message2Server.cs b/interface/Assets/Scripts/Proto/Message2Server.cs index db10f078..f1e02291 100755 --- a/interface/Assets/Scripts/Proto/Message2Server.cs +++ b/interface/Assets/Scripts/Proto/Message2Server.cs @@ -9,2357 +9,2995 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Protobuf { +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", + "LnByb3RvIg0KC051bGxSZXF1ZXN0IisKBUlETXNnEhEKCXBsYXllcl9pZBgB", + "IAEoAxIPCgd0ZWFtX2lkGAIgASgDImwKCVBsYXllck1zZxIRCglwbGF5ZXJf", + "aWQYASABKAMSDwoHdGVhbV9pZBgCIAEoAxIlCglzaGlwX3R5cGUYAyABKA4y", + "Ei5wcm90b2J1Zi5TaGlwVHlwZRIJCgF4GAQgASgFEgkKAXkYBSABKAUiWgoH", + "TW92ZU1zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5nbGUYAiABKAESHAoU", + "dGltZV9pbl9taWxsaXNlY29uZHMYAyABKAMSDwoHdGVhbV9pZBgEIAEoAyKA", + "AQoHU2VuZE1zZxIRCglwbGF5ZXJfaWQYASABKAMSFAoMdG9fcGxheWVyX2lk", + "GAIgASgDEhYKDHRleHRfbWVzc2FnZRgDIAEoCUgAEhgKDmJpbmFyeV9tZXNz", + "YWdlGAQgASgMSAASDwoHdGVhbV9pZBgFIAEoA0IJCgdtZXNzYWdlIj4KCUF0", + "dGFja01zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5nbGUYAiABKAESDwoH", + "dGVhbV9pZBgDIAEoAyJpCgxDb25zdHJ1Y3RNc2cSEQoJcGxheWVyX2lkGAEg", + "ASgDEjUKEWNvbnN0cnVjdGlvbl90eXBlGAIgASgOMhoucHJvdG9idWYuQ29u", + "c3RydWN0aW9uVHlwZRIPCgd0ZWFtX2lkGAMgASgDIlsKCkluc3RhbGxNc2cS", + "KQoLbW9kdWxlX3R5cGUYASABKA4yFC5wcm90b2J1Zi5Nb2R1bGVUeXBlEhEK", + "CXBsYXllcl9pZBgCIAEoAxIPCgd0ZWFtX2lkGAMgASgDIlwKDEJ1aWxkU2hp", + "cE1zZxIJCgF4GAEgASgFEgkKAXkYAiABKAUSJQoJc2hpcF90eXBlGAMgASgO", + "MhIucHJvdG9idWYuU2hpcFR5cGUSDwoHdGVhbV9pZBgEIAEoA2IGcHJvdG8z" + ) + ); + 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.NullRequest), global::Protobuf.NullRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.IDMsg), global::Protobuf.IDMsg.Parser, new[] { "PlayerId", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PlayerMsg), global::Protobuf.PlayerMsg.Parser, new[] { "PlayerId", "TeamId", "ShipType", "X", "Y" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MoveMsg), global::Protobuf.MoveMsg.Parser, new[] { "PlayerId", "Angle", "TimeInMilliseconds", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SendMsg), global::Protobuf.SendMsg.Parser, new[] { "PlayerId", "ToPlayerId", "TextMessage", "BinaryMessage", "TeamId" }, new[] { "Message" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.AttackMsg), global::Protobuf.AttackMsg.Parser, new[] { "PlayerId", "Angle", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.ConstructMsg), global::Protobuf.ConstructMsg.Parser, new[] { "PlayerId", "ConstructionType", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.InstallMsg), global::Protobuf.InstallMsg.Parser, new[] { "ModuleType", "PlayerId", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.BuildShipMsg), global::Protobuf.BuildShipMsg.Parser, new[] { "X", "Y", "ShipType", "TeamId" }, null, null, null, null) })); + } +#endregion + } +#region Messages + public sealed partial class NullRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NullRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - /// Holder for reflection information generated from Message2Server.proto - public static partial class Message2ServerReflection { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[0]; + } + } - #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", - "LnByb3RvIg0KC051bGxSZXF1ZXN0IisKBUlETXNnEhEKCXBsYXllcl9pZBgB", - "IAEoAxIPCgd0ZWFtX2lkGAIgASgDImwKCVBsYXllck1zZxIRCglwbGF5ZXJf", - "aWQYASABKAMSDwoHdGVhbV9pZBgCIAEoAxIlCglzaGlwX3R5cGUYAyABKA4y", - "Ei5wcm90b2J1Zi5TaGlwVHlwZRIJCgF4GAQgASgFEgkKAXkYBSABKAUiWgoH", - "TW92ZU1zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5nbGUYAiABKAESHAoU", - "dGltZV9pbl9taWxsaXNlY29uZHMYAyABKAMSDwoHdGVhbV9pZBgEIAEoAyKA", - "AQoHU2VuZE1zZxIRCglwbGF5ZXJfaWQYASABKAMSFAoMdG9fcGxheWVyX2lk", - "GAIgASgDEhYKDHRleHRfbWVzc2FnZRgDIAEoCUgAEhgKDmJpbmFyeV9tZXNz", - "YWdlGAQgASgMSAASDwoHdGVhbV9pZBgFIAEoA0IJCgdtZXNzYWdlIj4KCUF0", - "dGFja01zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5nbGUYAiABKAESDwoH", - "dGVhbV9pZBgDIAEoAyJpCgxDb25zdHJ1Y3RNc2cSEQoJcGxheWVyX2lkGAEg", - "ASgDEjUKEWNvbnN0cnVjdGlvbl90eXBlGAIgASgOMhoucHJvdG9idWYuQ29u", - "c3RydWN0aW9uVHlwZRIPCgd0ZWFtX2lkGAMgASgDIlsKCkluc3RhbGxNc2cS", - "KQoLbW9kdWxlX3R5cGUYASABKA4yFC5wcm90b2J1Zi5Nb2R1bGVUeXBlEhEK", - "CXBsYXllcl9pZBgCIAEoAxIPCgd0ZWFtX2lkGAMgASgDIlwKDEJ1aWxkU2hp", - "cE1zZxIJCgF4GAEgASgFEgkKAXkYAiABKAUSJQoJc2hpcF90eXBlGAMgASgO", - "MhIucHJvdG9idWYuU2hpcFR5cGUSDwoHdGVhbV9pZBgEIAEoA2IGcHJvdG8z")); - 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.NullRequest), global::Protobuf.NullRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.IDMsg), global::Protobuf.IDMsg.Parser, new[]{ "PlayerId", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PlayerMsg), global::Protobuf.PlayerMsg.Parser, new[]{ "PlayerId", "TeamId", "ShipType", "X", "Y" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MoveMsg), global::Protobuf.MoveMsg.Parser, new[]{ "PlayerId", "Angle", "TimeInMilliseconds", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SendMsg), global::Protobuf.SendMsg.Parser, new[]{ "PlayerId", "ToPlayerId", "TextMessage", "BinaryMessage", "TeamId" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.AttackMsg), global::Protobuf.AttackMsg.Parser, new[]{ "PlayerId", "Angle", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.ConstructMsg), global::Protobuf.ConstructMsg.Parser, new[]{ "PlayerId", "ConstructionType", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.InstallMsg), global::Protobuf.InstallMsg.Parser, new[]{ "ModuleType", "PlayerId", "TeamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.BuildShipMsg), global::Protobuf.BuildShipMsg.Parser, new[]{ "X", "Y", "ShipType", "TeamId" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class NullRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NullRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[0]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NullRequest() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public NullRequest() { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NullRequest(NullRequest other) : + this() + { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public NullRequest(NullRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public NullRequest Clone() + { + return new NullRequest(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public NullRequest Clone() { - return new NullRequest(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as NullRequest); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as NullRequest); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(NullRequest other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(NullRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(NullRequest other) + { + if (other == null) + { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(NullRequest other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } - #endif - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } + } + } +#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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - } - } - #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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[1]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[1]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public IDMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IDMsg() + { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public IDMsg(IDMsg other) : this() { - playerId_ = other.playerId_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IDMsg(IDMsg other) : + this() + { + playerId_ = other.playerId_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public IDMsg Clone() { - return new IDMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 2; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 2; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as IDMsg); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as IDMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(IDMsg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlayerId != other.PlayerId) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IDMsg other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (PlayerId != other.PlayerId) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PlayerId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(PlayerId); - } - if (TeamId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (PlayerId != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(PlayerId); + } + if (TeamId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(IDMsg other) { - if (other == null) { - return; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IDMsg other) + { + if (other == null) + { + return; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[2]; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif + } + + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[2]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public PlayerMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlayerMsg() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public PlayerMsg(PlayerMsg other) : this() { - playerId_ = other.playerId_; - teamId_ = other.teamId_; - shipType_ = other.shipType_; - x_ = other.x_; - y_ = other.y_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlayerMsg(PlayerMsg other) : + this() + { + playerId_ = other.playerId_; + teamId_ = other.teamId_; + shipType_ = other.shipType_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public PlayerMsg Clone() { - return new PlayerMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 2; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 2; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - /// Field number for the "ship_type" field. - public const int ShipTypeFieldNumber = 3; - private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ShipType ShipType { - get { return shipType_; } - set { - shipType_ = value; - } - } + /// Field number for the "ship_type" field. + public const int ShipTypeFieldNumber = 3; + private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ShipType ShipType + { + get { + return shipType_; + } + set { + shipType_ = value; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 4; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + /// Field number for the "x" field. + public const int XFieldNumber = 4; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 5; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + /// Field number for the "y" field. + public const int YFieldNumber = 5; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as PlayerMsg); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as PlayerMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(PlayerMsg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlayerId != other.PlayerId) return false; - if (TeamId != other.TeamId) return false; - if (ShipType != other.ShipType) return false; - if (X != other.X) return false; - if (Y != other.Y) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PlayerMsg other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (PlayerId != other.PlayerId) + return false; + if (TeamId != other.TeamId) + return false; + if (ShipType != other.ShipType) + return false; + if (X != other.X) + return false; + if (Y != other.Y) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (ShipType != global::Protobuf.ShipType.NullShipType) hash ^= ShipType.GetHashCode(); - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (ShipType != global::Protobuf.ShipType.NullShipType) + hash ^= ShipType.GetHashCode(); + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TeamId); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(24); - output.WriteEnum((int) ShipType); - } - if (X != 0) { - output.WriteRawTag(32); - output.WriteInt32(X); - } - if (Y != 0) { - output.WriteRawTag(40); - output.WriteInt32(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(TeamId); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(24); + output.WriteEnum((int)ShipType); + } + if (X != 0) + { + output.WriteRawTag(32); + output.WriteInt32(X); + } + if (Y != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Y); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PlayerId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(PlayerId); - } - if (TeamId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TeamId); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(24); - output.WriteEnum((int) ShipType); - } - if (X != 0) { - output.WriteRawTag(32); - output.WriteInt32(X); - } - if (Y != 0) { - output.WriteRawTag(40); - output.WriteInt32(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (ShipType != global::Protobuf.ShipType.NullShipType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShipType); - } - if (X != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); - } - if (Y != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (PlayerId != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(PlayerId); + } + if (TeamId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(TeamId); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(24); + output.WriteEnum((int)ShipType); + } + if (X != 0) + { + output.WriteRawTag(32); + output.WriteInt32(X); + } + if (Y != 0) + { + output.WriteRawTag(40); + output.WriteInt32(Y); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (ShipType != global::Protobuf.ShipType.NullShipType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ShipType); + } + if (X != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(X); + } + if (Y != 0) + { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(PlayerMsg other) { - if (other == null) { - return; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - if (other.ShipType != global::Protobuf.ShipType.NullShipType) { - ShipType = other.ShipType; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PlayerMsg other) + { + if (other == null) + { + return; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + if (other.ShipType != global::Protobuf.ShipType.NullShipType) + { + ShipType = other.ShipType; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - case 24: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 32: { - X = input.ReadInt32(); - break; - } - case 40: { - Y = input.ReadInt32(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + case 24: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 32: + { + X = input.ReadInt32(); + break; + } + case 40: + { + Y = input.ReadInt32(); + break; + } + } + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - case 24: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 32: { - X = input.ReadInt32(); - break; - } - case 40: { - Y = input.ReadInt32(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[3]; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + case 24: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 32: + { + X = input.ReadInt32(); + break; + } + case 40: + { + Y = input.ReadInt32(); + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[3]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MoveMsg() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveMsg(MoveMsg other) : this() { - playerId_ = other.playerId_; - angle_ = other.angle_; - timeInMilliseconds_ = other.timeInMilliseconds_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MoveMsg(MoveMsg other) : + this() + { + playerId_ = other.playerId_; + angle_ = other.angle_; + timeInMilliseconds_ = other.timeInMilliseconds_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MoveMsg Clone() { - return new MoveMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public double Angle { - get { return angle_; } - set { - angle_ = value; - } - } + /// Field number for the "angle" field. + public const int AngleFieldNumber = 2; + private double angle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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] - public long TimeInMilliseconds { - get { return timeInMilliseconds_; } - set { - timeInMilliseconds_ = value; - } - } + /// Field number for the "time_in_milliseconds" field. + public const int TimeInMillisecondsFieldNumber = 3; + private long timeInMilliseconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TimeInMilliseconds + { + get { + return timeInMilliseconds_; + } + set { + timeInMilliseconds_ = value; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as MoveMsg); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as MoveMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - } - case 32: { - TeamId = input.ReadInt64(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[4]; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + } + case 32: + { + TeamId = input.ReadInt64(); + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[4]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SendMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SendMsg(SendMsg other) : this() { - playerId_ = other.playerId_; - toPlayerId_ = other.toPlayerId_; - teamId_ = other.teamId_; - switch (other.MessageCase) { - case MessageOneofCase.TextMessage: - TextMessage = other.TextMessage; - break; - case MessageOneofCase.BinaryMessage: - BinaryMessage = other.BinaryMessage; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendMsg() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SendMsg Clone() { - return new SendMsg(this); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendMsg(SendMsg other) : + this() + { + playerId_ = other.playerId_; + toPlayerId_ = other.toPlayerId_; + teamId_ = other.teamId_; + switch (other.MessageCase) + { + case MessageOneofCase.TextMessage: + TextMessage = other.TextMessage; + break; + case MessageOneofCase.BinaryMessage: + BinaryMessage = other.BinaryMessage; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 1; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendMsg Clone() + { + return new SendMsg(this); + } - /// Field number for the "to_player_id" field. - public const int ToPlayerIdFieldNumber = 2; - private long toPlayerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long ToPlayerId { - get { return toPlayerId_; } - set { - toPlayerId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - /// Field number for the "text_message" field. - public const int TextMessageFieldNumber = 3; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string TextMessage { - get { return messageCase_ == MessageOneofCase.TextMessage ? (string) message_ : ""; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - messageCase_ = MessageOneofCase.TextMessage; - } - } + /// Field number for the "to_player_id" field. + public const int ToPlayerIdFieldNumber = 2; + private long toPlayerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long ToPlayerId + { + get { + return toPlayerId_; + } + set { + toPlayerId_ = value; + } + } - /// Field number for the "binary_message" field. - public const int BinaryMessageFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString BinaryMessage { - get { return messageCase_ == MessageOneofCase.BinaryMessage ? (pb::ByteString) message_ : pb::ByteString.Empty; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - messageCase_ = MessageOneofCase.BinaryMessage; - } - } + /// Field number for the "text_message" field. + public const int TextMessageFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string TextMessage + { + get { + return messageCase_ == MessageOneofCase.TextMessage ? (string)message_ : ""; + } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.TextMessage; + } + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 5; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "binary_message" field. + public const int BinaryMessageFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString BinaryMessage + { + get { + return messageCase_ == MessageOneofCase.BinaryMessage ? (pb::ByteString)message_ : pb::ByteString.Empty; + } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.BinaryMessage; + } + } - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - TextMessage = 3, - BinaryMessage = 4, - } - private MessageOneofCase messageCase_ = MessageOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public MessageOneofCase MessageCase { - get { return messageCase_; } - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 5; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void ClearMessage() { - messageCase_ = MessageOneofCase.None; - message_ = null; - } + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase + { + None = 0, + TextMessage = 3, + BinaryMessage = 4, + } + private MessageOneofCase messageCase_ = MessageOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public MessageOneofCase MessageCase + { + get { + return messageCase_; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as SendMsg); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMessage() + { + messageCase_ = MessageOneofCase.None; + message_ = null; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TextMessage != other.TextMessage) return false; - if (BinaryMessage != other.BinaryMessage) return false; - if (TeamId != other.TeamId) return false; - if (MessageCase != other.MessageCase) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as SendMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (ToPlayerId != 0L) hash ^= ToPlayerId.GetHashCode(); - if (messageCase_ == MessageOneofCase.TextMessage) hash ^= TextMessage.GetHashCode(); - if (messageCase_ == MessageOneofCase.BinaryMessage) hash ^= BinaryMessage.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - hash ^= (int) messageCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TextMessage != other.TextMessage) + return false; + if (BinaryMessage != other.BinaryMessage) + return false; + if (TeamId != other.TeamId) + return false; + if (MessageCase != other.MessageCase) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (ToPlayerId != 0L) + hash ^= ToPlayerId.GetHashCode(); + if (messageCase_ == MessageOneofCase.TextMessage) + hash ^= TextMessage.GetHashCode(); + if (messageCase_ == MessageOneofCase.BinaryMessage) + hash ^= BinaryMessage.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + hash ^= (int)messageCase_; + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (messageCase_ == MessageOneofCase.TextMessage) { - output.WriteRawTag(26); - output.WriteString(TextMessage); - } - if (messageCase_ == MessageOneofCase.BinaryMessage) { - output.WriteRawTag(34); - output.WriteBytes(BinaryMessage); - } - if (TeamId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (messageCase_ == MessageOneofCase.TextMessage) { - output.WriteRawTag(26); - output.WriteString(TextMessage); - } - if (messageCase_ == MessageOneofCase.BinaryMessage) { - output.WriteRawTag(34); - output.WriteBytes(BinaryMessage); - } - if (TeamId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (messageCase_ == MessageOneofCase.TextMessage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TextMessage); - } - if (messageCase_ == MessageOneofCase.BinaryMessage) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(BinaryMessage); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (messageCase_ == MessageOneofCase.TextMessage) + { + output.WriteRawTag(26); + output.WriteString(TextMessage); + } + if (messageCase_ == MessageOneofCase.BinaryMessage) + { + output.WriteRawTag(34); + output.WriteBytes(BinaryMessage); + } + if (TeamId != 0L) + { + output.WriteRawTag(40); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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.TeamId != 0L) { - TeamId = other.TeamId; - } - switch (other.MessageCase) { - case MessageOneofCase.TextMessage: - TextMessage = other.TextMessage; - break; - case MessageOneofCase.BinaryMessage: - BinaryMessage = other.BinaryMessage; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (messageCase_ == MessageOneofCase.TextMessage) + { + output.WriteRawTag(26); + output.WriteString(TextMessage); + } + if (messageCase_ == MessageOneofCase.BinaryMessage) + { + output.WriteRawTag(34); + output.WriteBytes(BinaryMessage); + } + if (TeamId != 0L) + { + output.WriteRawTag(40); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (messageCase_ == MessageOneofCase.TextMessage) + { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TextMessage); + } + if (messageCase_ == MessageOneofCase.BinaryMessage) + { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BinaryMessage); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TextMessage = input.ReadString(); - break; - } - case 34: { - BinaryMessage = input.ReadBytes(); - break; - } - case 40: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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.TeamId != 0L) + { + TeamId = other.TeamId; + } + switch (other.MessageCase) + { + case MessageOneofCase.TextMessage: + TextMessage = other.TextMessage; + break; + case MessageOneofCase.BinaryMessage: + BinaryMessage = other.BinaryMessage; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TextMessage = input.ReadString(); - break; - } - case 34: { - BinaryMessage = input.ReadBytes(); - break; - } - case 40: { - TeamId = input.ReadInt64(); - 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] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[5]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TextMessage = input.ReadString(); + break; + } + case 34: + { + BinaryMessage = input.ReadBytes(); + break; + } + case 40: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TextMessage = input.ReadString(); + break; + } + case 34: + { + BinaryMessage = input.ReadBytes(); + break; + } + case 40: + { + TeamId = input.ReadInt64(); + 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] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AttackMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[5]; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AttackMsg(AttackMsg other) : this() { - playerId_ = other.playerId_; - angle_ = other.angle_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttackMsg() + { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AttackMsg Clone() { - return new AttackMsg(this); - } + partial void OnConstruction(); - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 1; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttackMsg(AttackMsg other) : + this() + { + playerId_ = other.playerId_; + angle_ = other.angle_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "angle" field. - public const int AngleFieldNumber = 2; - private double angle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Angle { - get { return angle_; } - set { - angle_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AttackMsg Clone() + { + return new AttackMsg(this); + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 3; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as AttackMsg); - } + /// Field number for the "angle" field. + public const int AngleFieldNumber = 2; + private double angle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Angle + { + get { + return angle_; + } + set { + angle_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 3; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (Angle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as AttackMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (Angle != 0D) + hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (Angle != 0D) { - size += 1 + 8; - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(AttackMsg other) { - if (other == null) { - return; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.Angle != 0D) { - Angle = other.Angle; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (Angle != 0D) + { + size += 1 + 8; + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ConstructMsg : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConstructMsg()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[6]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AttackMsg other) + { + if (other == null) + { + return; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.Angle != 0D) + { + Angle = other.Angle; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ConstructMsg() { - OnConstruction(); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif + } + + public sealed partial class ConstructMsg : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConstructMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[6]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ConstructMsg(ConstructMsg other) : this() { - playerId_ = other.playerId_; - constructionType_ = other.constructionType_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ConstructMsg Clone() { - return new ConstructMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConstructMsg() + { + OnConstruction(); + } - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 1; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + partial void OnConstruction(); - /// Field number for the "construction_type" field. - public const int ConstructionTypeFieldNumber = 2; - private global::Protobuf.ConstructionType constructionType_ = global::Protobuf.ConstructionType.NullConstructionType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ConstructionType ConstructionType { - get { return constructionType_; } - set { - constructionType_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConstructMsg(ConstructMsg other) : + this() + { + playerId_ = other.playerId_; + constructionType_ = other.constructionType_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 3; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ConstructMsg Clone() + { + return new ConstructMsg(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ConstructMsg); - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 1; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ConstructMsg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlayerId != other.PlayerId) return false; - if (ConstructionType != other.ConstructionType) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "construction_type" field. + public const int ConstructionTypeFieldNumber = 2; + private global::Protobuf.ConstructionType constructionType_ = global::Protobuf.ConstructionType.NullConstructionType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ConstructionType ConstructionType + { + get { + return constructionType_; + } + set { + constructionType_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) hash ^= ConstructionType.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 3; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as ConstructMsg); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) { - output.WriteRawTag(16); - output.WriteEnum((int) ConstructionType); - } - if (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(ConstructMsg other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (PlayerId != other.PlayerId) + return false; + if (ConstructionType != other.ConstructionType) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PlayerId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(PlayerId); - } - if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) { - output.WriteRawTag(16); - output.WriteEnum((int) ConstructionType); - } - if (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConstructionType); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) + hash ^= ConstructionType.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ConstructMsg other) { - if (other == null) { - return; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) { - ConstructionType = other.ConstructionType; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ConstructionType = (global::Protobuf.ConstructionType) input.ReadEnum(); - break; - } - case 24: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) + { + output.WriteRawTag(16); + output.WriteEnum((int)ConstructionType); + } + if (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ConstructionType = (global::Protobuf.ConstructionType) input.ReadEnum(); - break; - } - case 24: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class InstallMsg : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstallMsg()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[7]; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (PlayerId != 0L) + { + output.WriteRawTag(8); + output.WriteInt64(PlayerId); + } + if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) + { + output.WriteRawTag(16); + output.WriteEnum((int)ConstructionType); + } + if (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ConstructionType); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(ConstructMsg other) + { + if (other == null) + { + return; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.ConstructionType != global::Protobuf.ConstructionType.NullConstructionType) + { + ConstructionType = other.ConstructionType; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InstallMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ConstructionType = (global::Protobuf.ConstructionType)input.ReadEnum(); + break; + } + case 24: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - partial void OnConstruction(); +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ConstructionType = (global::Protobuf.ConstructionType)input.ReadEnum(); + break; + } + case 24: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif + } + + public sealed partial class InstallMsg : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InstallMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InstallMsg(InstallMsg other) : this() { - moduleType_ = other.moduleType_; - playerId_ = other.playerId_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[7]; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InstallMsg Clone() { - return new InstallMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - /// Field number for the "module_type" field. - public const int ModuleTypeFieldNumber = 1; - private global::Protobuf.ModuleType moduleType_ = global::Protobuf.ModuleType.NullModuleType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ModuleType ModuleType { - get { return moduleType_; } - set { - moduleType_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InstallMsg() + { + OnConstruction(); + } - /// Field number for the "player_id" field. - public const int PlayerIdFieldNumber = 2; - private long playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long PlayerId { - get { return playerId_; } - set { - playerId_ = value; - } - } + partial void OnConstruction(); - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 3; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InstallMsg(InstallMsg other) : + this() + { + moduleType_ = other.moduleType_; + playerId_ = other.playerId_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as InstallMsg); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InstallMsg Clone() + { + return new InstallMsg(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(InstallMsg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ModuleType != other.ModuleType) return false; - if (PlayerId != other.PlayerId) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "module_type" field. + public const int ModuleTypeFieldNumber = 1; + private global::Protobuf.ModuleType moduleType_ = global::Protobuf.ModuleType.NullModuleType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ModuleType ModuleType + { + get { + return moduleType_; + } + set { + moduleType_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ModuleType != global::Protobuf.ModuleType.NullModuleType) hash ^= ModuleType.GetHashCode(); - if (PlayerId != 0L) hash ^= PlayerId.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "player_id" field. + public const int PlayerIdFieldNumber = 2; + private long playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long PlayerId + { + get { + return playerId_; + } + set { + playerId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 3; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ModuleType != global::Protobuf.ModuleType.NullModuleType) { - output.WriteRawTag(8); - output.WriteEnum((int) ModuleType); - } - if (PlayerId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(PlayerId); - } - if (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as InstallMsg); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ModuleType != global::Protobuf.ModuleType.NullModuleType) { - output.WriteRawTag(8); - output.WriteEnum((int) ModuleType); - } - if (PlayerId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(PlayerId); - } - if (TeamId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ModuleType != global::Protobuf.ModuleType.NullModuleType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModuleType); - } - if (PlayerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InstallMsg other) + { + if (ReferenceEquals(other, null)) + { + return false; + } + if (ReferenceEquals(other, this)) + { + return true; + } + if (ModuleType != other.ModuleType) + return false; + if (PlayerId != other.PlayerId) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(InstallMsg other) { - if (other == null) { - return; - } - if (other.ModuleType != global::Protobuf.ModuleType.NullModuleType) { - ModuleType = other.ModuleType; - } - if (other.PlayerId != 0L) { - PlayerId = other.PlayerId; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (ModuleType != global::Protobuf.ModuleType.NullModuleType) + hash ^= ModuleType.GetHashCode(); + if (PlayerId != 0L) + hash ^= PlayerId.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ModuleType = (global::Protobuf.ModuleType) input.ReadEnum(); - break; - } - case 16: { - PlayerId = input.ReadInt64(); - break; - } - case 24: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ModuleType = (global::Protobuf.ModuleType) input.ReadEnum(); - break; - } - case 16: { - PlayerId = input.ReadInt64(); - break; - } - case 24: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class BuildShipMsg : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildShipMsg()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[8]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); +#else + if (ModuleType != global::Protobuf.ModuleType.NullModuleType) + { + output.WriteRawTag(8); + output.WriteEnum((int)ModuleType); + } + if (PlayerId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(PlayerId); + } + if (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (ModuleType != global::Protobuf.ModuleType.NullModuleType) + { + output.WriteRawTag(8); + output.WriteEnum((int)ModuleType); + } + if (PlayerId != 0L) + { + output.WriteRawTag(16); + output.WriteInt64(PlayerId); + } + if (TeamId != 0L) + { + output.WriteRawTag(24); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() + { + int size = 0; + if (ModuleType != global::Protobuf.ModuleType.NullModuleType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ModuleType); + } + if (PlayerId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BuildShipMsg() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InstallMsg other) + { + if (other == null) + { + return; + } + if (other.ModuleType != global::Protobuf.ModuleType.NullModuleType) + { + ModuleType = other.ModuleType; + } + if (other.PlayerId != 0L) + { + PlayerId = other.PlayerId; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ModuleType = (global::Protobuf.ModuleType)input.ReadEnum(); + break; + } + case 16: + { + PlayerId = input.ReadInt64(); + break; + } + case 24: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BuildShipMsg(BuildShipMsg other) : this() { - x_ = other.x_; - y_ = other.y_; - shipType_ = other.shipType_; - teamId_ = other.teamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ModuleType = (global::Protobuf.ModuleType)input.ReadEnum(); + break; + } + case 16: + { + PlayerId = input.ReadInt64(); + break; + } + case 24: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif + } + + public sealed partial class BuildShipMsg : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , + pb::IBufferMessage +#endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildShipMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser + { + get { + return _parser; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public BuildShipMsg Clone() { - return new BuildShipMsg(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor + { + get { + return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[8]; + } + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private int x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int X { - get { return x_; } - set { - x_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor + { + get { + return Descriptor; + } + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private int y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Y { - get { return y_; } - set { - y_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuildShipMsg() + { + OnConstruction(); + } - /// Field number for the "ship_type" field. - public const int ShipTypeFieldNumber = 3; - private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Protobuf.ShipType ShipType { - get { return shipType_; } - set { - shipType_ = value; - } - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuildShipMsg(BuildShipMsg other) : + this() + { + x_ = other.x_; + y_ = other.y_; + shipType_ = other.shipType_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "team_id" field. - public const int TeamIdFieldNumber = 4; - private long teamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TeamId { - get { return teamId_; } - set { - teamId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuildShipMsg Clone() + { + return new BuildShipMsg(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as BuildShipMsg); - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private int x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int X + { + get { + return x_; + } + set { + x_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(BuildShipMsg 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 (ShipType != other.ShipType) return false; - if (TeamId != other.TeamId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private int y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Y + { + get { + return y_; + } + set { + y_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (X != 0) hash ^= X.GetHashCode(); - if (Y != 0) hash ^= Y.GetHashCode(); - if (ShipType != global::Protobuf.ShipType.NullShipType) hash ^= ShipType.GetHashCode(); - if (TeamId != 0L) hash ^= TeamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "ship_type" field. + public const int ShipTypeFieldNumber = 3; + private global::Protobuf.ShipType shipType_ = global::Protobuf.ShipType.NullShipType; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Protobuf.ShipType ShipType + { + get { + return shipType_; + } + set { + shipType_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 4; + private long teamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TeamId + { + get { + return teamId_; + } + set { + teamId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(24); - output.WriteEnum((int) ShipType); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) + { + return Equals(other as BuildShipMsg); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (ShipType != global::Protobuf.ShipType.NullShipType) { - output.WriteRawTag(24); - output.WriteEnum((int) ShipType); - } - if (TeamId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TeamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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 (ShipType != global::Protobuf.ShipType.NullShipType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShipType); - } - if (TeamId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BuildShipMsg 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 (ShipType != other.ShipType) + return false; + if (TeamId != other.TeamId) + return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(BuildShipMsg other) { - if (other == null) { - return; - } - if (other.X != 0) { - X = other.X; - } - if (other.Y != 0) { - Y = other.Y; - } - if (other.ShipType != global::Protobuf.ShipType.NullShipType) { - ShipType = other.ShipType; - } - if (other.TeamId != 0L) { - TeamId = other.TeamId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() + { + int hash = 1; + if (X != 0) + hash ^= X.GetHashCode(); + if (Y != 0) + hash ^= Y.GetHashCode(); + if (ShipType != global::Protobuf.ShipType.NullShipType) + hash ^= ShipType.GetHashCode(); + if (TeamId != 0L) + hash ^= TeamId.GetHashCode(); + if (_unknownFields != null) + { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() + { + return pb::JsonFormatter.ToDiagnosticString(this); + } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - 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: { - ShipType = (global::Protobuf.ShipType) input.ReadEnum(); - break; - } - case 32: { - TeamId = input.ReadInt64(); - break; - } - } - } - } - #endif + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(24); + output.WriteEnum((int)ShipType); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(output); + } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (ShipType != global::Protobuf.ShipType.NullShipType) + { + output.WriteRawTag(24); + output.WriteEnum((int)ShipType); + } + if (TeamId != 0L) + { + output.WriteRawTag(32); + output.WriteInt64(TeamId); + } + if (_unknownFields != null) + { + _unknownFields.WriteTo(ref output); + } + } +#endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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 (ShipType != global::Protobuf.ShipType.NullShipType) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)ShipType); + } + if (TeamId != 0L) + { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TeamId); + } + if (_unknownFields != null) + { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BuildShipMsg other) + { + if (other == null) + { + return; + } + if (other.X != 0) + { + X = other.X; + } + if (other.Y != 0) + { + Y = other.Y; + } + if (other.ShipType != global::Protobuf.ShipType.NullShipType) + { + ShipType = other.ShipType; + } + if (other.TeamId != 0L) + { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } +#endif + } - } +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + 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: + { + ShipType = (global::Protobuf.ShipType)input.ReadEnum(); + break; + } + case 32: + { + TeamId = input.ReadInt64(); + break; + } + } + } + } +#endif + } - #endregion +#endregion } diff --git a/interface/Assets/Scripts/Proto/MessageType.cs b/interface/Assets/Scripts/Proto/MessageType.cs index c27e6cd6..f2734e4d 100755 --- a/interface/Assets/Scripts/Proto/MessageType.cs +++ b/interface/Assets/Scripts/Proto/MessageType.cs @@ -9,209 +9,249 @@ 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( - "ChFNZXNzYWdlVHlwZS5wcm90bxIIcHJvdG9idWYqUAoJR2FtZVN0YXRlEhMK", - "D05VTExfR0FNRV9TVEFURRAAEg4KCkdBTUVfU1RBUlQQARIQCgxHQU1FX1JV", - "Tk5JTkcQAhIMCghHQU1FX0VORBADKocBCglQbGFjZVR5cGUSEwoPTlVMTF9Q", - "TEFDRV9UWVBFEAASCAoESE9NRRABEgkKBVNQQUNFEAISCAoEUlVJThADEgoK", - "BlNIQURPVxAEEgwKCEFTVEVST0lEEAUSDAoIUkVTT1VSQ0UQBhIQCgxDT05T", - "VFJVQ1RJT04QBxIMCghXT1JNSE9MRRAIKjgKCVNoYXBlVHlwZRITCg9OVUxM", - "X1NIQVBFX1RZUEUQABIKCgZDSVJDTEUQARIKCgZTUVVBUkUQAio2CgpQbGF5", - "ZXJUeXBlEhQKEE5VTExfUExBWUVSX1RZUEUQABIICgRTSElQEAESCAoEVEVB", - "TRACKlMKCFNoaXBUeXBlEhIKDk5VTExfU0hJUF9UWVBFEAASEQoNQ0lWSUxJ", - "QU5fU0hJUBABEhEKDU1JTElUQVJZX1NISVAQAhINCglGTEFHX1NISVAQAyqc", - "AQoJU2hpcFN0YXRlEg8KC05VTExfU1RBVFVTEAASCAoESURMRRABEg0KCVBS", - "T0RVQ0lORxACEhAKDENPTlNUUlVDVElORxADEg4KClJFQ09WRVJJTkcQBBIN", - "CglSRUNZQ0xJTkcQBRINCglBVFRBQ0tJTkcQBhIMCghTV0lOR0lORxAHEgsK", - "B1NUVU5ORUQQCBIKCgZNT1ZJTkcQCSppCgpXZWFwb25UeXBlEhQKEE5VTExf", - "V0VBUE9OX1RZUEUQABIMCghMQVNFUkdVThABEg0KCVBMQVNNQUdVThACEgwK", - "CFNIRUxMR1VOEAMSDgoKTUlTU0lMRUdVThAEEgoKBkFSQ0dVThAFKmIKD0Nv", - "bnN0cnVjdG9yVHlwZRIZChVOVUxMX0NPTlNUUlVDVE9SX1RZUEUQABIQCgxD", - "T05TVFJVQ1RPUjEQARIQCgxDT05TVFJVQ1RPUjIQAhIQCgxDT05TVFJVQ1RP", - "UjMQAypECglBcm1vclR5cGUSEwoPTlVMTF9BUk1PUl9UWVBFEAASCgoGQVJN", - "T1IxEAESCgoGQVJNT1IyEAISCgoGQVJNT1IzEAMqSQoKU2hpZWxkVHlwZRIU", - "ChBOVUxMX1NISUVMRF9UWVBFEAASCwoHU0hJRUxEMRABEgsKB1NISUVMRDIQ", - "AhILCgdTSElFTEQzEAMqUwoMUHJvZHVjZXJUeXBlEhYKEk5VTExfUFJPRFVD", - "RVJfVFlQRRAAEg0KCVBST0RVQ0VSMRABEg0KCVBST0RVQ0VSMhACEg0KCVBS", - "T0RVQ0VSMxADKo4DCgpNb2R1bGVUeXBlEhQKEE5VTExfTU9EVUxFX1RZUEUQ", - "ABIUChBNT0RVTEVfUFJPRFVDRVIxEAESFAoQTU9EVUxFX1BST0RVQ0VSMhAC", - "EhQKEE1PRFVMRV9QUk9EVUNFUjMQAxIXChNNT0RVTEVfQ09OU1RSVUNUT1Ix", - "EAQSFwoTTU9EVUxFX0NPTlNUUlVDVE9SMhAFEhcKE01PRFVMRV9DT05TVFJV", - "Q1RPUjMQBhIRCg1NT0RVTEVfQVJNT1IxEAcSEQoNTU9EVUxFX0FSTU9SMhAI", - "EhEKDU1PRFVMRV9BUk1PUjMQCRISCg5NT0RVTEVfU0hJRUxEMRAKEhIKDk1P", - "RFVMRV9TSElFTEQyEAsSEgoOTU9EVUxFX1NISUVMRDMQDBITCg9NT0RVTEVf", - "TEFTRVJHVU4QDRIUChBNT0RVTEVfUExBU01BR1VOEA4SEwoPTU9EVUxFX1NI", - "RUxMR1VOEA8SFQoRTU9EVUxFX01JU1NJTEVHVU4QEBIRCg1NT0RVTEVfQVJD", - "R1VOEBEqWgoKQnVsbGV0VHlwZRIUChBOVUxMX0JVTExFVF9UWVBFEAASCQoF", - "TEFTRVIQARIKCgZQTEFTTUEQAhIJCgVTSEVMTBADEgsKB01JU1NJTEUQBBIH", - "CgNBUkMQBSpUChBDb25zdHJ1Y3Rpb25UeXBlEhoKFk5VTExfQ09OU1RSVUNU", - "SU9OX1RZUEUQABILCgdGQUNUT1JZEAESDQoJQ09NTVVOSVRZEAISCAoERk9S", - "VBADKjQKCE5ld3NUeXBlEhIKDk5VTExfTkVXU19UWVBFEAASCAoEVEVYVBAB", - "EgoKBkJJTkFSWRACKi4KClBsYXllclRlYW0SDQoJTlVMTF9URUFNEAASBwoD", - "UkVEEAESCAoEQkxVRRACYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Protobuf.GameState), typeof(global::Protobuf.PlaceType), typeof(global::Protobuf.ShapeType), typeof(global::Protobuf.PlayerType), typeof(global::Protobuf.ShipType), typeof(global::Protobuf.ShipState), typeof(global::Protobuf.WeaponType), typeof(global::Protobuf.ConstructorType), typeof(global::Protobuf.ArmorType), typeof(global::Protobuf.ShieldType), typeof(global::Protobuf.ProducerType), typeof(global::Protobuf.ModuleType), typeof(global::Protobuf.BulletType), typeof(global::Protobuf.ConstructionType), typeof(global::Protobuf.NewsType), typeof(global::Protobuf.PlayerTeam), }, null, null)); - } - #endregion - - } - #region Enums - /// - /// 游戏进行状态 - /// - 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, - } - - public enum PlaceType { - [pbr::OriginalName("NULL_PLACE_TYPE")] NullPlaceType = 0, - [pbr::OriginalName("HOME")] Home = 1, - [pbr::OriginalName("SPACE")] Space = 2, - [pbr::OriginalName("RUIN")] Ruin = 3, - [pbr::OriginalName("SHADOW")] Shadow = 4, - [pbr::OriginalName("ASTEROID")] Asteroid = 5, - [pbr::OriginalName("RESOURCE")] Resource = 6, - [pbr::OriginalName("CONSTRUCTION")] Construction = 7, - [pbr::OriginalName("WORMHOLE")] Wormhole = 8, - } - - public enum ShapeType { - [pbr::OriginalName("NULL_SHAPE_TYPE")] NullShapeType = 0, - [pbr::OriginalName("CIRCLE")] Circle = 1, - [pbr::OriginalName("SQUARE")] Square = 2, - } - - public enum PlayerType { - [pbr::OriginalName("NULL_PLAYER_TYPE")] NullPlayerType = 0, - [pbr::OriginalName("SHIP")] Ship = 1, - [pbr::OriginalName("TEAM")] Team = 2, - } - - public enum ShipType { - [pbr::OriginalName("NULL_SHIP_TYPE")] NullShipType = 0, - [pbr::OriginalName("CIVILIAN_SHIP")] CivilianShip = 1, - [pbr::OriginalName("MILITARY_SHIP")] MilitaryShip = 2, - [pbr::OriginalName("FLAG_SHIP")] FlagShip = 3, - } - - public enum ShipState { - [pbr::OriginalName("NULL_STATUS")] NullStatus = 0, - [pbr::OriginalName("IDLE")] Idle = 1, - [pbr::OriginalName("PRODUCING")] Producing = 2, - [pbr::OriginalName("CONSTRUCTING")] Constructing = 3, - [pbr::OriginalName("RECOVERING")] Recovering = 4, - [pbr::OriginalName("RECYCLING")] Recycling = 5, - [pbr::OriginalName("ATTACKING")] Attacking = 6, - [pbr::OriginalName("SWINGING")] Swinging = 7, - [pbr::OriginalName("STUNNED")] Stunned = 8, - [pbr::OriginalName("MOVING")] Moving = 9, - } - - public enum WeaponType { - [pbr::OriginalName("NULL_WEAPON_TYPE")] NullWeaponType = 0, - [pbr::OriginalName("LASERGUN")] Lasergun = 1, - [pbr::OriginalName("PLASMAGUN")] Plasmagun = 2, - [pbr::OriginalName("SHELLGUN")] Shellgun = 3, - [pbr::OriginalName("MISSILEGUN")] Missilegun = 4, - [pbr::OriginalName("ARCGUN")] Arcgun = 5, - } - - public enum ConstructorType { - [pbr::OriginalName("NULL_CONSTRUCTOR_TYPE")] NullConstructorType = 0, - [pbr::OriginalName("CONSTRUCTOR1")] Constructor1 = 1, - [pbr::OriginalName("CONSTRUCTOR2")] Constructor2 = 2, - [pbr::OriginalName("CONSTRUCTOR3")] Constructor3 = 3, - } - - public enum ArmorType { - [pbr::OriginalName("NULL_ARMOR_TYPE")] NullArmorType = 0, - [pbr::OriginalName("ARMOR1")] Armor1 = 1, - [pbr::OriginalName("ARMOR2")] Armor2 = 2, - [pbr::OriginalName("ARMOR3")] Armor3 = 3, - } - - public enum ShieldType { - [pbr::OriginalName("NULL_SHIELD_TYPE")] NullShieldType = 0, - [pbr::OriginalName("SHIELD1")] Shield1 = 1, - [pbr::OriginalName("SHIELD2")] Shield2 = 2, - [pbr::OriginalName("SHIELD3")] Shield3 = 3, - } - - public enum ProducerType { - [pbr::OriginalName("NULL_PRODUCER_TYPE")] NullProducerType = 0, - [pbr::OriginalName("PRODUCER1")] Producer1 = 1, - [pbr::OriginalName("PRODUCER2")] Producer2 = 2, - [pbr::OriginalName("PRODUCER3")] Producer3 = 3, - } - - public enum ModuleType { - [pbr::OriginalName("NULL_MODULE_TYPE")] NullModuleType = 0, - [pbr::OriginalName("MODULE_PRODUCER1")] ModuleProducer1 = 1, - [pbr::OriginalName("MODULE_PRODUCER2")] ModuleProducer2 = 2, - [pbr::OriginalName("MODULE_PRODUCER3")] ModuleProducer3 = 3, - [pbr::OriginalName("MODULE_CONSTRUCTOR1")] ModuleConstructor1 = 4, - [pbr::OriginalName("MODULE_CONSTRUCTOR2")] ModuleConstructor2 = 5, - [pbr::OriginalName("MODULE_CONSTRUCTOR3")] ModuleConstructor3 = 6, - [pbr::OriginalName("MODULE_ARMOR1")] ModuleArmor1 = 7, - [pbr::OriginalName("MODULE_ARMOR2")] ModuleArmor2 = 8, - [pbr::OriginalName("MODULE_ARMOR3")] ModuleArmor3 = 9, - [pbr::OriginalName("MODULE_SHIELD1")] ModuleShield1 = 10, - [pbr::OriginalName("MODULE_SHIELD2")] ModuleShield2 = 11, - [pbr::OriginalName("MODULE_SHIELD3")] ModuleShield3 = 12, - [pbr::OriginalName("MODULE_LASERGUN")] ModuleLasergun = 13, - [pbr::OriginalName("MODULE_PLASMAGUN")] ModulePlasmagun = 14, - [pbr::OriginalName("MODULE_SHELLGUN")] ModuleShellgun = 15, - [pbr::OriginalName("MODULE_MISSILEGUN")] ModuleMissilegun = 16, - [pbr::OriginalName("MODULE_ARCGUN")] ModuleArcgun = 17, - } - - public enum BulletType { - [pbr::OriginalName("NULL_BULLET_TYPE")] NullBulletType = 0, - [pbr::OriginalName("LASER")] Laser = 1, - [pbr::OriginalName("PLASMA")] Plasma = 2, - [pbr::OriginalName("SHELL")] Shell = 3, - [pbr::OriginalName("MISSILE")] Missile = 4, - [pbr::OriginalName("ARC")] Arc = 5, - } - - public enum ConstructionType { - [pbr::OriginalName("NULL_CONSTRUCTION_TYPE")] NullConstructionType = 0, - [pbr::OriginalName("FACTORY")] Factory = 1, - [pbr::OriginalName("COMMUNITY")] Community = 2, - [pbr::OriginalName("FORT")] Fort = 3, - } - - public enum NewsType { - [pbr::OriginalName("NULL_NEWS_TYPE")] NullNewsType = 0, - [pbr::OriginalName("TEXT")] Text = 1, - [pbr::OriginalName("BINARY")] Binary = 2, - } - - public enum PlayerTeam { - [pbr::OriginalName("NULL_TEAM")] NullTeam = 0, - [pbr::OriginalName("RED")] Red = 1, - [pbr::OriginalName("BLUE")] Blue = 2, - } - - #endregion +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( + "ChFNZXNzYWdlVHlwZS5wcm90bxIIcHJvdG9idWYqUAoJR2FtZVN0YXRlEhMK", + "D05VTExfR0FNRV9TVEFURRAAEg4KCkdBTUVfU1RBUlQQARIQCgxHQU1FX1JV", + "Tk5JTkcQAhIMCghHQU1FX0VORBADKocBCglQbGFjZVR5cGUSEwoPTlVMTF9Q", + "TEFDRV9UWVBFEAASCAoESE9NRRABEgkKBVNQQUNFEAISCAoEUlVJThADEgoK", + "BlNIQURPVxAEEgwKCEFTVEVST0lEEAUSDAoIUkVTT1VSQ0UQBhIQCgxDT05T", + "VFJVQ1RJT04QBxIMCghXT1JNSE9MRRAIKjgKCVNoYXBlVHlwZRITCg9OVUxM", + "X1NIQVBFX1RZUEUQABIKCgZDSVJDTEUQARIKCgZTUVVBUkUQAio2CgpQbGF5", + "ZXJUeXBlEhQKEE5VTExfUExBWUVSX1RZUEUQABIICgRTSElQEAESCAoEVEVB", + "TRACKlMKCFNoaXBUeXBlEhIKDk5VTExfU0hJUF9UWVBFEAASEQoNQ0lWSUxJ", + "QU5fU0hJUBABEhEKDU1JTElUQVJZX1NISVAQAhINCglGTEFHX1NISVAQAyqc", + "AQoJU2hpcFN0YXRlEg8KC05VTExfU1RBVFVTEAASCAoESURMRRABEg0KCVBS", + "T0RVQ0lORxACEhAKDENPTlNUUlVDVElORxADEg4KClJFQ09WRVJJTkcQBBIN", + "CglSRUNZQ0xJTkcQBRINCglBVFRBQ0tJTkcQBhIMCghTV0lOR0lORxAHEgsK", + "B1NUVU5ORUQQCBIKCgZNT1ZJTkcQCSppCgpXZWFwb25UeXBlEhQKEE5VTExf", + "V0VBUE9OX1RZUEUQABIMCghMQVNFUkdVThABEg0KCVBMQVNNQUdVThACEgwK", + "CFNIRUxMR1VOEAMSDgoKTUlTU0lMRUdVThAEEgoKBkFSQ0dVThAFKmIKD0Nv", + "bnN0cnVjdG9yVHlwZRIZChVOVUxMX0NPTlNUUlVDVE9SX1RZUEUQABIQCgxD", + "T05TVFJVQ1RPUjEQARIQCgxDT05TVFJVQ1RPUjIQAhIQCgxDT05TVFJVQ1RP", + "UjMQAypECglBcm1vclR5cGUSEwoPTlVMTF9BUk1PUl9UWVBFEAASCgoGQVJN", + "T1IxEAESCgoGQVJNT1IyEAISCgoGQVJNT1IzEAMqSQoKU2hpZWxkVHlwZRIU", + "ChBOVUxMX1NISUVMRF9UWVBFEAASCwoHU0hJRUxEMRABEgsKB1NISUVMRDIQ", + "AhILCgdTSElFTEQzEAMqUwoMUHJvZHVjZXJUeXBlEhYKEk5VTExfUFJPRFVD", + "RVJfVFlQRRAAEg0KCVBST0RVQ0VSMRABEg0KCVBST0RVQ0VSMhACEg0KCVBS", + "T0RVQ0VSMxADKo4DCgpNb2R1bGVUeXBlEhQKEE5VTExfTU9EVUxFX1RZUEUQ", + "ABIUChBNT0RVTEVfUFJPRFVDRVIxEAESFAoQTU9EVUxFX1BST0RVQ0VSMhAC", + "EhQKEE1PRFVMRV9QUk9EVUNFUjMQAxIXChNNT0RVTEVfQ09OU1RSVUNUT1Ix", + "EAQSFwoTTU9EVUxFX0NPTlNUUlVDVE9SMhAFEhcKE01PRFVMRV9DT05TVFJV", + "Q1RPUjMQBhIRCg1NT0RVTEVfQVJNT1IxEAcSEQoNTU9EVUxFX0FSTU9SMhAI", + "EhEKDU1PRFVMRV9BUk1PUjMQCRISCg5NT0RVTEVfU0hJRUxEMRAKEhIKDk1P", + "RFVMRV9TSElFTEQyEAsSEgoOTU9EVUxFX1NISUVMRDMQDBITCg9NT0RVTEVf", + "TEFTRVJHVU4QDRIUChBNT0RVTEVfUExBU01BR1VOEA4SEwoPTU9EVUxFX1NI", + "RUxMR1VOEA8SFQoRTU9EVUxFX01JU1NJTEVHVU4QEBIRCg1NT0RVTEVfQVJD", + "R1VOEBEqWgoKQnVsbGV0VHlwZRIUChBOVUxMX0JVTExFVF9UWVBFEAASCQoF", + "TEFTRVIQARIKCgZQTEFTTUEQAhIJCgVTSEVMTBADEgsKB01JU1NJTEUQBBIH", + "CgNBUkMQBSpUChBDb25zdHJ1Y3Rpb25UeXBlEhoKFk5VTExfQ09OU1RSVUNU", + "SU9OX1RZUEUQABILCgdGQUNUT1JZEAESDQoJQ09NTVVOSVRZEAISCAoERk9S", + "VBADKjQKCE5ld3NUeXBlEhIKDk5VTExfTkVXU19UWVBFEAASCAoEVEVYVBAB", + "EgoKBkJJTkFSWRACKi4KClBsYXllclRlYW0SDQoJTlVMTF9URUFNEAASBwoD", + "UkVEEAESCAoEQkxVRRACYgZwcm90bzM=" + ) + ); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] {}, new pbr::GeneratedClrTypeInfo(new[] { + typeof(global::Protobuf.GameState), + typeof(global::Protobuf.PlaceType), + typeof(global::Protobuf.ShapeType), + typeof(global::Protobuf.PlayerType), + typeof(global::Protobuf.ShipType), + typeof(global::Protobuf.ShipState), + typeof(global::Protobuf.WeaponType), + typeof(global::Protobuf.ConstructorType), + typeof(global::Protobuf.ArmorType), + typeof(global::Protobuf.ShieldType), + typeof(global::Protobuf.ProducerType), + typeof(global::Protobuf.ModuleType), + typeof(global::Protobuf.BulletType), + typeof(global::Protobuf.ConstructionType), + typeof(global::Protobuf.NewsType), + typeof(global::Protobuf.PlayerTeam), + }, + null, + null)); + } +#endregion + } +#region Enums + /// + /// 游戏进行状态 + /// + 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, + } + + public enum PlaceType + { + [pbr::OriginalName("NULL_PLACE_TYPE")] NullPlaceType = 0, + [pbr::OriginalName("HOME")] Home = 1, + [pbr::OriginalName("SPACE")] Space = 2, + [pbr::OriginalName("RUIN")] Ruin = 3, + [pbr::OriginalName("SHADOW")] Shadow = 4, + [pbr::OriginalName("ASTEROID")] Asteroid = 5, + [pbr::OriginalName("RESOURCE")] Resource = 6, + [pbr::OriginalName("CONSTRUCTION")] Construction = 7, + [pbr::OriginalName("WORMHOLE")] Wormhole = 8, + } + + public enum ShapeType + { + [pbr::OriginalName("NULL_SHAPE_TYPE")] NullShapeType = 0, + [pbr::OriginalName("CIRCLE")] Circle = 1, + [pbr::OriginalName("SQUARE")] Square = 2, + } + + public enum PlayerType + { + [pbr::OriginalName("NULL_PLAYER_TYPE")] NullPlayerType = 0, + [pbr::OriginalName("SHIP")] Ship = 1, + [pbr::OriginalName("TEAM")] Team = 2, + } + + public enum ShipType + { + [pbr::OriginalName("NULL_SHIP_TYPE")] NullShipType = 0, + [pbr::OriginalName("CIVILIAN_SHIP")] CivilianShip = 1, + [pbr::OriginalName("MILITARY_SHIP")] MilitaryShip = 2, + [pbr::OriginalName("FLAG_SHIP")] FlagShip = 3, + } + + public enum ShipState + { + [pbr::OriginalName("NULL_STATUS")] NullStatus = 0, + [pbr::OriginalName("IDLE")] Idle = 1, + [pbr::OriginalName("PRODUCING")] Producing = 2, + [pbr::OriginalName("CONSTRUCTING")] Constructing = 3, + [pbr::OriginalName("RECOVERING")] Recovering = 4, + [pbr::OriginalName("RECYCLING")] Recycling = 5, + [pbr::OriginalName("ATTACKING")] Attacking = 6, + [pbr::OriginalName("SWINGING")] Swinging = 7, + [pbr::OriginalName("STUNNED")] Stunned = 8, + [pbr::OriginalName("MOVING")] Moving = 9, + } + + public enum WeaponType + { + [pbr::OriginalName("NULL_WEAPON_TYPE")] NullWeaponType = 0, + [pbr::OriginalName("LASERGUN")] Lasergun = 1, + [pbr::OriginalName("PLASMAGUN")] Plasmagun = 2, + [pbr::OriginalName("SHELLGUN")] Shellgun = 3, + [pbr::OriginalName("MISSILEGUN")] Missilegun = 4, + [pbr::OriginalName("ARCGUN")] Arcgun = 5, + } + + public enum ConstructorType + { + [pbr::OriginalName("NULL_CONSTRUCTOR_TYPE")] NullConstructorType = 0, + [pbr::OriginalName("CONSTRUCTOR1")] Constructor1 = 1, + [pbr::OriginalName("CONSTRUCTOR2")] Constructor2 = 2, + [pbr::OriginalName("CONSTRUCTOR3")] Constructor3 = 3, + } + + public enum ArmorType + { + [pbr::OriginalName("NULL_ARMOR_TYPE")] NullArmorType = 0, + [pbr::OriginalName("ARMOR1")] Armor1 = 1, + [pbr::OriginalName("ARMOR2")] Armor2 = 2, + [pbr::OriginalName("ARMOR3")] Armor3 = 3, + } + + public enum ShieldType + { + [pbr::OriginalName("NULL_SHIELD_TYPE")] NullShieldType = 0, + [pbr::OriginalName("SHIELD1")] Shield1 = 1, + [pbr::OriginalName("SHIELD2")] Shield2 = 2, + [pbr::OriginalName("SHIELD3")] Shield3 = 3, + } + + public enum ProducerType + { + [pbr::OriginalName("NULL_PRODUCER_TYPE")] NullProducerType = 0, + [pbr::OriginalName("PRODUCER1")] Producer1 = 1, + [pbr::OriginalName("PRODUCER2")] Producer2 = 2, + [pbr::OriginalName("PRODUCER3")] Producer3 = 3, + } + + public enum ModuleType + { + [pbr::OriginalName("NULL_MODULE_TYPE")] NullModuleType = 0, + [pbr::OriginalName("MODULE_PRODUCER1")] ModuleProducer1 = 1, + [pbr::OriginalName("MODULE_PRODUCER2")] ModuleProducer2 = 2, + [pbr::OriginalName("MODULE_PRODUCER3")] ModuleProducer3 = 3, + [pbr::OriginalName("MODULE_CONSTRUCTOR1")] ModuleConstructor1 = 4, + [pbr::OriginalName("MODULE_CONSTRUCTOR2")] ModuleConstructor2 = 5, + [pbr::OriginalName("MODULE_CONSTRUCTOR3")] ModuleConstructor3 = 6, + [pbr::OriginalName("MODULE_ARMOR1")] ModuleArmor1 = 7, + [pbr::OriginalName("MODULE_ARMOR2")] ModuleArmor2 = 8, + [pbr::OriginalName("MODULE_ARMOR3")] ModuleArmor3 = 9, + [pbr::OriginalName("MODULE_SHIELD1")] ModuleShield1 = 10, + [pbr::OriginalName("MODULE_SHIELD2")] ModuleShield2 = 11, + [pbr::OriginalName("MODULE_SHIELD3")] ModuleShield3 = 12, + [pbr::OriginalName("MODULE_LASERGUN")] ModuleLasergun = 13, + [pbr::OriginalName("MODULE_PLASMAGUN")] ModulePlasmagun = 14, + [pbr::OriginalName("MODULE_SHELLGUN")] ModuleShellgun = 15, + [pbr::OriginalName("MODULE_MISSILEGUN")] ModuleMissilegun = 16, + [pbr::OriginalName("MODULE_ARCGUN")] ModuleArcgun = 17, + } + + public enum BulletType + { + [pbr::OriginalName("NULL_BULLET_TYPE")] NullBulletType = 0, + [pbr::OriginalName("LASER")] Laser = 1, + [pbr::OriginalName("PLASMA")] Plasma = 2, + [pbr::OriginalName("SHELL")] Shell = 3, + [pbr::OriginalName("MISSILE")] Missile = 4, + [pbr::OriginalName("ARC")] Arc = 5, + } + + public enum ConstructionType + { + [pbr::OriginalName("NULL_CONSTRUCTION_TYPE")] NullConstructionType = 0, + [pbr::OriginalName("FACTORY")] Factory = 1, + [pbr::OriginalName("COMMUNITY")] Community = 2, + [pbr::OriginalName("FORT")] Fort = 3, + } + + public enum NewsType + { + [pbr::OriginalName("NULL_NEWS_TYPE")] NullNewsType = 0, + [pbr::OriginalName("TEXT")] Text = 1, + [pbr::OriginalName("BINARY")] Binary = 2, + } + + public enum PlayerTeam + { + [pbr::OriginalName("NULL_TEAM")] NullTeam = 0, + [pbr::OriginalName("RED")] Red = 1, + [pbr::OriginalName("BLUE")] Blue = 2, + } + +#endregion } diff --git a/interface/Assets/Scripts/Proto/Services.cs b/interface/Assets/Scripts/Proto/Services.cs index c9cef018..d497cf59 100755 --- a/interface/Assets/Scripts/Proto/Services.cs +++ b/interface/Assets/Scripts/Proto/Services.cs @@ -9,47 +9,56 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Protobuf { +namespace Protobuf +{ - /// Holder for reflection information generated from Services.proto - public static partial class ServicesReflection { + /// 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; +#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", - "cm90bxoUTWVzc2FnZTJTZXJ2ZXIucHJvdG8y7gUKEEF2YWlsYWJsZVNlcnZp", - "Y2USMwoNVHJ5Q29ubmVjdGlvbhIPLnByb3RvYnVmLklETXNnGhEucHJvdG9i", - "dWYuQm9vbFJlcxI9CglBZGRQbGF5ZXISEy5wcm90b2J1Zi5QbGF5ZXJNc2ca", - "GS5wcm90b2J1Zi5NZXNzYWdlVG9DbGllbnQwARI3CgZHZXRNYXASFS5wcm90", - "b2J1Zi5OdWxsUmVxdWVzdBoWLnByb3RvYnVmLk1lc3NhZ2VPZk1hcBIsCgRN", - "b3ZlEhEucHJvdG9idWYuTW92ZU1zZxoRLnByb3RvYnVmLk1vdmVSZXMSLQoH", - "UmVjb3ZlchIPLnByb3RvYnVmLklETXNnGhEucHJvdG9idWYuQm9vbFJlcxIt", - "CgdQcm9kdWNlEg8ucHJvdG9idWYuSURNc2caES5wcm90b2J1Zi5Cb29sUmVz", - "EjQKB1JlYnVpbGQSFi5wcm90b2J1Zi5Db25zdHJ1Y3RNc2caES5wcm90b2J1", - "Zi5Cb29sUmVzEjYKCUNvbnN0cnVjdBIWLnByb3RvYnVmLkNvbnN0cnVjdE1z", - "ZxoRLnByb3RvYnVmLkJvb2xSZXMSMAoGQXR0YWNrEhMucHJvdG9idWYuQXR0", - "YWNrTXNnGhEucHJvdG9idWYuQm9vbFJlcxIsCgRTZW5kEhEucHJvdG9idWYu", - "U2VuZE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSOAoNSW5zdGFsbE1vZHVsZRIU", - "LnByb3RvYnVmLkluc3RhbGxNc2caES5wcm90b2J1Zi5Cb29sUmVzEi0KB1Jl", - "Y3ljbGUSDy5wcm90b2J1Zi5JRE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSNgoJ", - "QnVpbGRTaGlwEhYucHJvdG9idWYuQnVpbGRTaGlwTXNnGhEucHJvdG9idWYu", - "Qm9vbFJlcxIyCgxFbmRBbGxBY3Rpb24SDy5wcm90b2J1Zi5JRE1zZxoRLnBy", - "b3RvYnVmLkJvb2xSZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Protobuf.Message2ClientsReflection.Descriptor, global::Protobuf.Message2ServerReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, null)); + static ServicesReflection() + { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cg5TZXJ2aWNlcy5wcm90bxIIcHJvdG9idWYaFU1lc3NhZ2UyQ2xpZW50cy5w", + "cm90bxoUTWVzc2FnZTJTZXJ2ZXIucHJvdG8y7gUKEEF2YWlsYWJsZVNlcnZp", + "Y2USMwoNVHJ5Q29ubmVjdGlvbhIPLnByb3RvYnVmLklETXNnGhEucHJvdG9i", + "dWYuQm9vbFJlcxI9CglBZGRQbGF5ZXISEy5wcm90b2J1Zi5QbGF5ZXJNc2ca", + "GS5wcm90b2J1Zi5NZXNzYWdlVG9DbGllbnQwARI3CgZHZXRNYXASFS5wcm90", + "b2J1Zi5OdWxsUmVxdWVzdBoWLnByb3RvYnVmLk1lc3NhZ2VPZk1hcBIsCgRN", + "b3ZlEhEucHJvdG9idWYuTW92ZU1zZxoRLnByb3RvYnVmLk1vdmVSZXMSLQoH", + "UmVjb3ZlchIPLnByb3RvYnVmLklETXNnGhEucHJvdG9idWYuQm9vbFJlcxIt", + "CgdQcm9kdWNlEg8ucHJvdG9idWYuSURNc2caES5wcm90b2J1Zi5Cb29sUmVz", + "EjQKB1JlYnVpbGQSFi5wcm90b2J1Zi5Db25zdHJ1Y3RNc2caES5wcm90b2J1", + "Zi5Cb29sUmVzEjYKCUNvbnN0cnVjdBIWLnByb3RvYnVmLkNvbnN0cnVjdE1z", + "ZxoRLnByb3RvYnVmLkJvb2xSZXMSMAoGQXR0YWNrEhMucHJvdG9idWYuQXR0", + "YWNrTXNnGhEucHJvdG9idWYuQm9vbFJlcxIsCgRTZW5kEhEucHJvdG9idWYu", + "U2VuZE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSOAoNSW5zdGFsbE1vZHVsZRIU", + "LnByb3RvYnVmLkluc3RhbGxNc2caES5wcm90b2J1Zi5Cb29sUmVzEi0KB1Jl", + "Y3ljbGUSDy5wcm90b2J1Zi5JRE1zZxoRLnByb3RvYnVmLkJvb2xSZXMSNgoJ", + "QnVpbGRTaGlwEhYucHJvdG9idWYuQnVpbGRTaGlwTXNnGhEucHJvdG9idWYu", + "Qm9vbFJlcxIyCgxFbmRBbGxBY3Rpb24SDy5wcm90b2J1Zi5JRE1zZxoRLnBy", + "b3RvYnVmLkJvb2xSZXNiBnByb3RvMw==" + ) + ); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { + global::Protobuf.Message2ClientsReflection.Descriptor, + global::Protobuf.Message2ServerReflection.Descriptor, + }, + new pbr::GeneratedClrTypeInfo(null, null, null)); + } +#endregion } - #endregion - - } } #endregion Designer generated code diff --git a/interface/Assets/Scripts/Proto/ServicesGrpc.cs b/interface/Assets/Scripts/Proto/ServicesGrpc.cs index 23931768..520d4c33 100755 --- a/interface/Assets/Scripts/Proto/ServicesGrpc.cs +++ b/interface/Assets/Scripts/Proto/ServicesGrpc.cs @@ -7,764 +7,785 @@ 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) +namespace Protobuf +{ + public static partial class AvailableService { - #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)); - } + static readonly string __ServiceName = "protobuf.AvailableService"; - [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 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 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 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 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_NullRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.NullRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_protobuf_MessageOfMap = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MessageOfMap.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_ConstructMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.ConstructMsg.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::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_InstallMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.InstallMsg.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_protobuf_BuildShipMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.BuildShipMsg.Parser)); + [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::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::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_NullRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.NullRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_protobuf_MessageOfMap = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MessageOfMap.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_ConstructMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.ConstructMsg.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::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_InstallMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.InstallMsg.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_protobuf_BuildShipMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.BuildShipMsg.Parser)); - [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_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_GetMap = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetMap", - __Marshaller_protobuf_NullRequest, - __Marshaller_protobuf_MessageOfMap); + [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_GetMap = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMap", + __Marshaller_protobuf_NullRequest, + __Marshaller_protobuf_MessageOfMap + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Recover = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Recover", - __Marshaller_protobuf_IDMsg, - __Marshaller_protobuf_BoolRes); + [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_Produce = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Produce", - __Marshaller_protobuf_IDMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Recover = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Recover", + __Marshaller_protobuf_IDMsg, + __Marshaller_protobuf_BoolRes + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Rebuild = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Rebuild", - __Marshaller_protobuf_ConstructMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Produce = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Produce", + __Marshaller_protobuf_IDMsg, + __Marshaller_protobuf_BoolRes + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Construct = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Construct", - __Marshaller_protobuf_ConstructMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Rebuild = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Rebuild", + __Marshaller_protobuf_ConstructMsg, + __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_Construct = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Construct", + __Marshaller_protobuf_ConstructMsg, + __Marshaller_protobuf_BoolRes + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Send = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Send", - __Marshaller_protobuf_SendMsg, - __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_InstallModule = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "InstallModule", - __Marshaller_protobuf_InstallMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Send = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Send", + __Marshaller_protobuf_SendMsg, + __Marshaller_protobuf_BoolRes + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Recycle = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Recycle", - __Marshaller_protobuf_IDMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_InstallModule = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "InstallModule", + __Marshaller_protobuf_InstallMsg, + __Marshaller_protobuf_BoolRes + ); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_BuildShip = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "BuildShip", - __Marshaller_protobuf_BuildShipMsg, - __Marshaller_protobuf_BoolRes); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Recycle = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Recycle", + __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); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BuildShip = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BuildShip", + __Marshaller_protobuf_BuildShipMsg, + __Marshaller_protobuf_BoolRes + ); - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Protobuf.ServicesReflection.Descriptor.Services[0]; } - } + [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 + ); - /// 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) - { - } + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { + return global::Protobuf.ServicesReflection.Descriptor.Services[0]; + } + } - [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); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.MessageOfMap GetMap(global::Protobuf.NullRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMap(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.MessageOfMap GetMap(global::Protobuf.NullRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetMap, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMapAsync(global::Protobuf.NullRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMapAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMapAsync(global::Protobuf.NullRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetMap, 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); - } - /// - ///回复 - /// - /// 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 Recover(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Recover(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 Recover(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Recover, 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 RecoverAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RecoverAsync(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 RecoverAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Recover, 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 Produce(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Produce(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 Produce(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Produce, 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 ProduceAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ProduceAsync(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 ProduceAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Produce, 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 Rebuild(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Rebuild(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 Rebuild(global::Protobuf.ConstructMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Rebuild, 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 RebuildAsync(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RebuildAsync(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 RebuildAsync(global::Protobuf.ConstructMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Rebuild, 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 Construct(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Construct(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 Construct(global::Protobuf.ConstructMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Construct, 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 ConstructAsync(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ConstructAsync(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 ConstructAsync(global::Protobuf.ConstructMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Construct, 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 Send(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Send(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 Send(global::Protobuf.SendMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Send, 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 SendAsync(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SendAsync(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 SendAsync(global::Protobuf.SendMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Send, 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 InstallModule(global::Protobuf.InstallMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InstallModule(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 InstallModule(global::Protobuf.InstallMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_InstallModule, 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 InstallModuleAsync(global::Protobuf.InstallMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InstallModuleAsync(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 InstallModuleAsync(global::Protobuf.InstallMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_InstallModule, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.BoolRes Recycle(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Recycle(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.BoolRes Recycle(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Recycle, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RecycleAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RecycleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RecycleAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Recycle, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.BoolRes BuildShip(global::Protobuf.BuildShipMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return BuildShip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Protobuf.BoolRes BuildShip(global::Protobuf.BuildShipMsg request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_BuildShip, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall BuildShipAsync(global::Protobuf.BuildShipMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return BuildShipAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall BuildShipAsync(global::Protobuf.BuildShipMsg request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_BuildShip, 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); - } - } + /// 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); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.MessageOfMap GetMap(global::Protobuf.NullRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMap(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.MessageOfMap GetMap(global::Protobuf.NullRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMap, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapAsync(global::Protobuf.NullRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMapAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapAsync(global::Protobuf.NullRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMap, 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); + } + /// + ///回复 + /// + /// 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 Recover(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Recover(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 Recover(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Recover, 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 RecoverAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RecoverAsync(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 RecoverAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Recover, 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 Produce(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Produce(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 Produce(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Produce, 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 ProduceAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ProduceAsync(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 ProduceAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Produce, 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 Rebuild(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Rebuild(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 Rebuild(global::Protobuf.ConstructMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Rebuild, 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 RebuildAsync(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RebuildAsync(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 RebuildAsync(global::Protobuf.ConstructMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Rebuild, 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 Construct(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Construct(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 Construct(global::Protobuf.ConstructMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Construct, 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 ConstructAsync(global::Protobuf.ConstructMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ConstructAsync(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 ConstructAsync(global::Protobuf.ConstructMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Construct, 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 Send(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Send(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 Send(global::Protobuf.SendMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Send, 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 SendAsync(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SendAsync(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 SendAsync(global::Protobuf.SendMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Send, 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 InstallModule(global::Protobuf.InstallMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return InstallModule(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 InstallModule(global::Protobuf.InstallMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_InstallModule, 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 InstallModuleAsync(global::Protobuf.InstallMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return InstallModuleAsync(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 InstallModuleAsync(global::Protobuf.InstallMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_InstallModule, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.BoolRes Recycle(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Recycle(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.BoolRes Recycle(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Recycle, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RecycleAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RecycleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RecycleAsync(global::Protobuf.IDMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Recycle, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.BoolRes BuildShip(global::Protobuf.BuildShipMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BuildShip(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Protobuf.BoolRes BuildShip(global::Protobuf.BuildShipMsg request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BuildShip, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BuildShipAsync(global::Protobuf.BuildShipMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BuildShipAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BuildShipAsync(global::Protobuf.BuildShipMsg request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BuildShip, 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); + } + } + } } #endregion diff --git a/interface/Assets/Scripts/base/Singleton.cs b/interface/Assets/Scripts/base/Singleton.cs index 39cfa068..6ff8dcfe 100755 --- a/interface/Assets/Scripts/base/Singleton.cs +++ b/interface/Assets/Scripts/base/Singleton.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using UnityEngine; -public class Singleton where T : new() +public class Singleton + where T : new() { private static T Instance; public static T GetInstance() @@ -11,5 +12,4 @@ public static T GetInstance() Instance = new T(); return Instance; } - } diff --git a/interface/Assets/Scripts/base/SingletonDontDestory.cs b/interface/Assets/Scripts/base/SingletonDontDestory.cs index a326b366..fbcb2a03 100755 --- a/interface/Assets/Scripts/base/SingletonDontDestory.cs +++ b/interface/Assets/Scripts/base/SingletonDontDestory.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using UnityEngine; -public class SingletonDontDestory : MonoBehaviour where T : MonoBehaviour +public class SingletonDontDestory : MonoBehaviour + where T : MonoBehaviour { private static T Instance; public static T GetInstance() @@ -22,5 +23,4 @@ protected void Awake() Destroy(gameObject); } } - } diff --git a/interface/Assets/Scripts/base/SingletonMono.cs b/interface/Assets/Scripts/base/SingletonMono.cs index 62fac0db..19a4ec3f 100755 --- a/interface/Assets/Scripts/base/SingletonMono.cs +++ b/interface/Assets/Scripts/base/SingletonMono.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using UnityEngine; -public class SingletonMono : MonoBehaviour where T : MonoBehaviour +public class SingletonMono : MonoBehaviour + where T : MonoBehaviour { private static T Instance; public static T GetInstance() @@ -22,5 +23,4 @@ protected void Awake() // Destroy(gameObject); } } - } diff --git a/interface/Assets/Scripts/format.sh b/interface/Assets/Scripts/format.sh new file mode 100644 index 00000000..f7690e34 --- /dev/null +++ b/interface/Assets/Scripts/format.sh @@ -0,0 +1,6 @@ +for i in {1..3} +do +find . -iname "*.cs" \ + | xargs clang-format -i +done +echo "Done!"