diff --git a/client/Assets/Prefabs/Shared/Header.prefab b/client/Assets/Prefabs/Shared/Header.prefab index c5326dfd..623bcda7 100644 --- a/client/Assets/Prefabs/Shared/Header.prefab +++ b/client/Assets/Prefabs/Shared/Header.prefab @@ -193,6 +193,7 @@ MonoBehaviour: gems: {fileID: 7071573297407696958} scrolls: {fileID: 3718164791782398575} fertilizer: {fileID: 45067436195482694} + blueprints: {fileID: 2354998195384027185} --- !u!1 &852510989775162454 GameObject: m_ObjectHideFlags: 0 @@ -306,7 +307,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 250, y: 120} + m_SizeDelta: {x: 250, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &4418015076929856550 MonoBehaviour: @@ -879,7 +880,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 53831ffd2c1064d07b3fcc10982b1e0d, type: 3} + m_Sprite: {fileID: 21300000, guid: f220907786fd84af7a0a1292ce920468, type: 3} m_Type: 0 m_PreserveAspect: 1 m_FillCenter: 1 @@ -1447,7 +1448,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 180, y: 277.80005} + m_SizeDelta: {x: 180, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5618165455120047314 CanvasRenderer: @@ -1657,6 +1658,7 @@ RectTransform: - {fileID: 1531101293870657583} - {fileID: 3543484211400062038} - {fileID: 2772212721011641000} + - {fileID: 3682576360670793022} m_Father: {fileID: 592328171030375167} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1713,6 +1715,82 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5674975228945744065} m_CullTransparentMesh: 1 +--- !u!1 &6476110411879266395 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6215473090431934378} + - component: {fileID: 7307430055822610301} + - component: {fileID: 186566113572062099} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6215473090431934378 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6476110411879266395} + m_LocalRotation: {x: 0, y: 0, z: -0.5, w: 0.8660254} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3682576360670793022} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: -60} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 70, y: 70} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7307430055822610301 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6476110411879266395} + m_CullTransparentMesh: 1 +--- !u!114 &186566113572062099 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6476110411879266395} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: f59401c5c79564fd1ae3bfb0876455a7, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &6607189259719545785 GameObject: m_ObjectHideFlags: 0 @@ -1891,7 +1969,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: f59401c5c79564fd1ae3bfb0876455a7, type: 3} + m_Sprite: {fileID: 21300000, guid: 1d9c8fecc73a24c15921bb444d2c3385, type: 3} m_Type: 0 m_PreserveAspect: 1 m_FillCenter: 1 @@ -1998,6 +2076,141 @@ MonoBehaviour: m_FlexibleWidth: 1 m_FlexibleHeight: -1 m_LayoutPriority: 1 +--- !u!1 &7130368941809613250 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 157588706513866714} + - component: {fileID: 4300649640208695441} + - component: {fileID: 2354998195384027185} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &157588706513866714 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7130368941809613250} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3682576360670793022} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: 0} + m_SizeDelta: {x: -30, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &4300649640208695441 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7130368941809613250} + m_CullTransparentMesh: 1 +--- !u!114 &2354998195384027185 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7130368941809613250} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: 124 + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 7acb85422e77346ba8edcfa489c617af, type: 2} + m_sharedMaterial: {fileID: -6068340767680993057, guid: 7acb85422e77346ba8edcfa489c617af, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4292269782 + m_fontColor: {r: 0.8392157, g: 0.8392157, b: 0.8392157, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 34 + m_fontSizeBase: 34 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 4 + m_VerticalAlignment: 4096 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 0 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!1 &7150633123699591621 GameObject: m_ObjectHideFlags: 0 @@ -2209,6 +2422,84 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &8409755063685525963 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3682576360670793022} + - component: {fileID: 288156712448544349} + - component: {fileID: 4598018995071117904} + m_Layer: 5 + m_Name: Blueprints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &3682576360670793022 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8409755063685525963} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 6215473090431934378} + - {fileID: 157588706513866714} + m_Father: {fileID: 8514571268811103267} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 20, y: -5} + m_SizeDelta: {x: 140, y: 45} + m_Pivot: {x: 0, y: 0.5} +--- !u!222 &288156712448544349 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8409755063685525963} + m_CullTransparentMesh: 1 +--- !u!114 &4598018995071117904 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8409755063685525963} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: c9a9791847d4f4fa0afb81101e711284, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &8537691998615536709 GameObject: m_ObjectHideFlags: 0 @@ -2432,7 +2723,7 @@ GameObject: - component: {fileID: 4849103258688923595} - component: {fileID: 4379858431360175538} m_Layer: 5 - m_Name: Fertalizer + m_Name: Fertilizer m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/client/Assets/Scenes/DungeonSettlement.unity b/client/Assets/Scenes/DungeonSettlement.unity index 8f66a49e..47f65cf7 100644 --- a/client/Assets/Scenes/DungeonSettlement.unity +++ b/client/Assets/Scenes/DungeonSettlement.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.3708708, g: 0.37838137, b: 0.35725543, a: 1} + m_IndirectSpecularColor: {r: 0.37311947, g: 0.38074014, b: 0.3587274, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -551,6 +551,17 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 6858262836679624500, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} m_PrefabInstance: {fileID: 246556279} m_PrefabAsset: {fileID: 0} +--- !u!114 &246556281 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 6858262836634528697, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} + m_PrefabInstance: {fileID: 246556279} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &258674451 GameObject: m_ObjectHideFlags: 0 @@ -741,6 +752,10 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 186566113907807008, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_Sprite + value: + objectReference: {fileID: 21300000, guid: 7d0db3a719d4ecb4d944bab596d811ab, type: 3} - target: {fileID: 592328169692779777, guid: 580c190a426d64bc2adb1771024b893c, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -981,6 +996,10 @@ PrefabInstance: propertyPath: m_RootOrder value: 4 objectReference: {fileID: 0} + - target: {fileID: 3682576361006275981, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} - target: {fileID: 3797508396289938194, guid: 580c190a426d64bc2adb1771024b893c, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1093,6 +1112,18 @@ PrefabInstance: propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} + - target: {fileID: 6215473091170979609, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6215473091170979609, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6215473091170979609, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6660523188583227629, guid: 580c190a426d64bc2adb1771024b893c, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1133,6 +1164,10 @@ PrefabInstance: propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} + - target: {fileID: 8409755063350436216, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8850821416777978789, guid: 580c190a426d64bc2adb1771024b893c, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1149,6 +1184,10 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 8913384533532550253, guid: 580c190a426d64bc2adb1771024b893c, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} - target: {fileID: 9017099288465107279, guid: 580c190a426d64bc2adb1771024b893c, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1172,11 +1211,6 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 5341647534015625711, guid: 580c190a426d64bc2adb1771024b893c, type: 3} m_PrefabInstance: {fileID: 442142761} m_PrefabAsset: {fileID: 0} ---- !u!224 &442142763 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 8514571268340878480, guid: 580c190a426d64bc2adb1771024b893c, type: 3} - m_PrefabInstance: {fileID: 442142761} - m_PrefabAsset: {fileID: 0} --- !u!1001 &514234976 PrefabInstance: m_ObjectHideFlags: 0 @@ -1570,7 +1604,7 @@ PrefabInstance: - target: {fileID: 6858262836918322556, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} propertyPath: m_Sprite value: - objectReference: {fileID: 21300000, guid: 53831ffd2c1064d07b3fcc10982b1e0d, type: 3} + objectReference: {fileID: 21300000, guid: f220907786fd84af7a0a1292ce920468, type: 3} - target: {fileID: 6858262836918322557, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} propertyPath: m_SizeDelta.x value: 70 @@ -1586,84 +1620,17 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 6858262836679624500, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} m_PrefabInstance: {fileID: 646895273} m_PrefabAsset: {fileID: 0} ---- !u!1 &653347026 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 653347027} - - component: {fileID: 653347029} - - component: {fileID: 653347028} - m_Layer: 5 - m_Name: Blueprints - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &653347027 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 653347026} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1458089921} - - {fileID: 1256562663} - m_Father: {fileID: 442142763} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 20, y: -5} - m_SizeDelta: {x: 140, y: 45} - m_Pivot: {x: 0, y: 0.5} ---- !u!114 &653347028 +--- !u!114 &646895275 stripped MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 6858262836634528697, guid: 226c8f6dfa61149b995339a7bf2ba479, type: 3} + m_PrefabInstance: {fileID: 646895273} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 653347026} + m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: c9a9791847d4f4fa0afb81101e711284, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &653347029 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 653347026} - m_CullTransparentMesh: 1 --- !u!1 &711704827 GameObject: m_ObjectHideFlags: 0 @@ -2120,141 +2087,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1138851600} m_CullTransparentMesh: 1 ---- !u!1 &1256562662 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1256562663} - - component: {fileID: 1256562665} - - component: {fileID: 1256562664} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1256562663 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1256562662} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 653347027} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 5, y: 0} - m_SizeDelta: {x: -30, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1256562664 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1256562662} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: 0 - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 7acb85422e77346ba8edcfa489c617af, type: 2} - m_sharedMaterial: {fileID: -6068340767680993057, guid: 7acb85422e77346ba8edcfa489c617af, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4292269782 - m_fontColor: {r: 0.8392157, g: 0.8392157, b: 0.8392157, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 34 - m_fontSizeBase: 34 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 4 - m_VerticalAlignment: 4096 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 0 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!222 &1256562665 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1256562662} - m_CullTransparentMesh: 1 --- !u!1001 &1279880157 PrefabInstance: m_ObjectHideFlags: 0 @@ -2373,18 +2205,18 @@ PrefabInstance: - target: {fileID: 8811879872254460245, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: - objectReference: {fileID: 0} + objectReference: {fileID: 1404834015} - target: {fileID: 8811879872254460245, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState value: 2 objectReference: {fileID: 0} - target: {fileID: 8811879872254460245, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: LevelUpKalineTree + value: LevelUpDungeonSettlement objectReference: {fileID: 0} - target: {fileID: 8811879872254460245, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName - value: KalineTreeManager, Assembly-CSharp + value: DungeonSettlementManager, Assembly-CSharp objectReference: {fileID: 0} - target: {fileID: 8811879872254460245, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName @@ -2400,6 +2232,11 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} +--- !u!1 &1279880158 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8811879872254460255, guid: b00fb03a1acae45d3aefc817547b517c, type: 3} + m_PrefabInstance: {fileID: 1279880157} + m_PrefabAsset: {fileID: 0} --- !u!1 &1328482319 GameObject: m_ObjectHideFlags: 0 @@ -2535,7 +2372,7 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1328482319} m_CullTransparentMesh: 1 ---- !u!1 &1458089920 +--- !u!1 &1404834014 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2543,74 +2380,49 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1458089921} - - component: {fileID: 1458089923} - - component: {fileID: 1458089922} - m_Layer: 5 - m_Name: Image + - component: {fileID: 1404834016} + - component: {fileID: 1404834015} + m_Layer: 0 + m_Name: DungeonSettlementManager m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1458089921 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458089920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 653347027} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 100, y: 100} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1458089922 +--- !u!114 &1404834015 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458089920} + m_GameObject: {fileID: 1404834014} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: aeab05464ec39455d8cf27407eb0a807, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 7d0db3a719d4ecb4d944bab596d811ab, type: 3} - m_Type: 0 - m_PreserveAspect: 1 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1458089923 -CanvasRenderer: + goldLevelUpCost: {fileID: 646895275} + blueprintsLevelUpCost: {fileID: 246556281} + suppliesAfkRewardRate: {fileID: 2015372940} + dungeonSettlementLevel: {fileID: 1874272259} + confirmPopUp: {fileID: 514234978} + insufficientCurrencyPopup: {fileID: 1915293362} + levelUpButton: {fileID: 1279880158} +--- !u!4 &1404834016 +Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458089920} - m_CullTransparentMesh: 1 + m_GameObject: {fileID: 1404834014} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.17955482, y: 4.358549, z: -100.46243} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1832023138 GameObject: m_ObjectHideFlags: 0 @@ -3038,6 +2850,11 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 1805342863988975925, guid: 376fe761576f5457bb52f16e42ab2860, type: 3} m_PrefabInstance: {fileID: 1915293360} m_PrefabAsset: {fileID: 0} +--- !u!1 &1915293362 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 133597137547516579, guid: 376fe761576f5457bb52f16e42ab2860, type: 3} + m_PrefabInstance: {fileID: 1915293360} + m_PrefabAsset: {fileID: 0} --- !u!1 &2011782927 GameObject: m_ObjectHideFlags: 0 @@ -3148,7 +2965,7 @@ PrefabInstance: - target: {fileID: 1925175052478102993, guid: 9855328b6eec34dd88fa0bc3ecd920d7, type: 3} propertyPath: m_Sprite value: - objectReference: {fileID: 21300000, guid: 32fb7e0aee1614fe8ac38467a139e9a6, type: 3} + objectReference: {fileID: 21300000, guid: 0051cf6193c6749e7ab7cef8a48fcf3b, type: 3} - target: {fileID: 5059324816927767173, guid: 9855328b6eec34dd88fa0bc3ecd920d7, type: 3} propertyPath: m_Name value: SuppliesAfkRewardRate @@ -3244,6 +3061,17 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 8388630046764816501, guid: 9855328b6eec34dd88fa0bc3ecd920d7, type: 3} m_PrefabInstance: {fileID: 2015372938} m_PrefabAsset: {fileID: 0} +--- !u!114 &2015372940 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2015372941, guid: 9855328b6eec34dd88fa0bc3ecd920d7, type: 3} + m_PrefabInstance: {fileID: 2015372938} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &2117596307 GameObject: m_ObjectHideFlags: 0 @@ -3302,7 +3130,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 32fb7e0aee1614fe8ac38467a139e9a6, type: 3} + m_Sprite: {fileID: 21300000, guid: 0051cf6193c6749e7ab7cef8a48fcf3b, type: 3} m_Type: 0 m_PreserveAspect: 1 m_FillCenter: 1 diff --git a/client/Assets/Scenes/Overworld.unity b/client/Assets/Scenes/Overworld.unity index 302fdcde..dfa4e84e 100644 --- a/client/Assets/Scenes/Overworld.unity +++ b/client/Assets/Scenes/Overworld.unity @@ -870,7 +870,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_RootOrder - value: 7 + value: 8 objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_AnchorMax.x @@ -1105,7 +1105,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_RootOrder - value: 8 + value: 9 objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_AnchorMax.x @@ -1904,7 +1904,7 @@ RectTransform: - {fileID: 552261515} - {fileID: 2131167416} m_Father: {fileID: 1938758588} - m_RootOrder: 6 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} @@ -2514,7 +2514,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_RootOrder - value: 11 + value: 6 objectReference: {fileID: 0} - target: {fileID: 7414010533079904352, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_AnchorMax.x @@ -3187,7 +3187,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1880474394802326500, guid: 80a0e36580b14449684c7d9d960c6ba2, type: 3} propertyPath: m_RootOrder - value: 10 + value: 11 objectReference: {fileID: 0} - target: {fileID: 1880474394802326500, guid: 80a0e36580b14449684c7d9d960c6ba2, type: 3} propertyPath: m_AnchorMax.x @@ -3570,7 +3570,7 @@ RectTransform: - {fileID: 205570529} - {fileID: 1988015981} m_Father: {fileID: 1938758588} - m_RootOrder: 9 + m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} diff --git a/client/Assets/Scripts/BackendConnection/SocketConnection.cs b/client/Assets/Scripts/BackendConnection/SocketConnection.cs index bcb46609..1ebddb47 100644 --- a/client/Assets/Scripts/BackendConnection/SocketConnection.cs +++ b/client/Assets/Scripts/BackendConnection/SocketConnection.cs @@ -161,6 +161,16 @@ private User CreateUserFromData(Protobuf.Messages.User user, List ava afkRewardRates = user.KalineTreeLevel.AfkRewardRates.Select(afkRewardRate => CreateAfkRewardRateFromData(afkRewardRate)).ToList() }; + DungeonSettlementLevel dungeonSettlementLevel = new DungeonSettlementLevel + { + level = (int)user.DungeonSettlementLevel.Level, + levelUpCosts = user.DungeonSettlementLevel.LevelUpCosts.Select(cost => new CurrencyCost { currency = new Currency { name = cost.Currency.Name }, amount = (int)cost.Amount }).ToList(), + maxDungeon = (int)user.DungeonSettlementLevel.MaxDungeon, + maxFactional = (int)user.DungeonSettlementLevel.MaxFactional, + supplyLimit = (int)user.DungeonSettlementLevel.SupplyLimit, + afkRewardRates = user.DungeonSettlementLevel.AfkRewardRates.Select(afkRewardRate => CreateAfkRewardRateFromData(afkRewardRate)).ToList() + }; + return new User { id = user.Id, @@ -170,7 +180,8 @@ private User CreateUserFromData(Protobuf.Messages.User user, List ava currencies = currencies, level = (int)user.Level, experience = (int)user.Experience, - kalineTreeLevel = kalineTreeLevel + kalineTreeLevel = kalineTreeLevel, + dungeonSettlementLevel = dungeonSettlementLevel }; } private Item CreateItemFromData(Protobuf.Messages.Item itemData) @@ -938,4 +949,45 @@ private void AwaitLevelUpKalineTreeResponse(byte[] data, Action onLeveledU Debug.LogError(e.Message); } } + + public void LevelUpDungeonSettlement(string userId, Action onLeveledUpUserReceived, Action onError = null) + { + LevelUpDungeonSettlement levelUpDungeonSettlement = new LevelUpDungeonSettlement + { + UserId = userId + }; + WebSocketRequest request = new WebSocketRequest + { + LevelUpDungeonSettlement = levelUpDungeonSettlement + }; + currentMessageHandler = (data) => AwaitLevelUpDungeonSettlementResponse(data, onLeveledUpUserReceived, onError); + ws.OnMessage += currentMessageHandler; + ws.OnMessage -= OnWebSocketMessage; + SendWebSocketMessage(request); + } + + private void AwaitLevelUpDungeonSettlementResponse(byte[] data, Action onLeveledUpUserReceived, Action onError = null) + { + try + { + ws.OnMessage -= currentMessageHandler; + ws.OnMessage += OnWebSocketMessage; + WebSocketResponse webSocketResponse = WebSocketResponse.Parser.ParseFrom(data); + if (webSocketResponse.ResponseTypeCase == WebSocketResponse.ResponseTypeOneofCase.User) + { + User user = CreateUserFromData(webSocketResponse.User, GlobalUserData.Instance.AvailableCharacters); + onLeveledUpUserReceived?.Invoke(user); + GlobalUserData.Instance.User.dungeonSettlementLevel = user.dungeonSettlementLevel; + } + else if (webSocketResponse.ResponseTypeCase == WebSocketResponse.ResponseTypeOneofCase.Error) + { + onError?.Invoke(webSocketResponse.Error.Reason); + } + } + catch (Exception e) + { + Debug.LogError(e.Message); + } + } + } diff --git a/client/Assets/Scripts/CurrencyCost.cs b/client/Assets/Scripts/CurrencyCost.cs new file mode 100644 index 00000000..797456ca --- /dev/null +++ b/client/Assets/Scripts/CurrencyCost.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CurrencyCost +{ + public Currency currency; + public int amount; +} diff --git a/client/Assets/Scripts/CurrencyCost.cs.meta b/client/Assets/Scripts/CurrencyCost.cs.meta new file mode 100644 index 00000000..f6c7c5b4 --- /dev/null +++ b/client/Assets/Scripts/CurrencyCost.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 57fbc9663e99646fab0681410dc61f88 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Assets/Scripts/Dungeon.meta b/client/Assets/Scripts/Dungeon.meta new file mode 100644 index 00000000..a99805c2 --- /dev/null +++ b/client/Assets/Scripts/Dungeon.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 44f0006c009ed461aa75ed024fb40e37 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs b/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs new file mode 100644 index 00000000..8ed8e190 --- /dev/null +++ b/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs @@ -0,0 +1,92 @@ +using System.Collections.Generic; +using System.Linq; +using TMPro; +using UnityEngine; + +public class DungeonSettlementManager : MonoBehaviour +{ + [SerializeField] TMP_Text goldLevelUpCost; + [SerializeField] TMP_Text blueprintsLevelUpCost; + [SerializeField] TMP_Text suppliesAfkRewardRate; + [SerializeField] TMP_Text dungeonSettlementLevel; + [SerializeField] GameObject confirmPopUp; + [SerializeField] GameObject insufficientCurrencyPopup; + [SerializeField] GameObject levelUpButton; + private const int SECONDS_IN_DAY = 86400; + + void Start() + { + GlobalUserData user = GlobalUserData.Instance; + SetSceneTexts(user.User); + } + + public void LevelUpDungeonSettlement() + { + SocketConnection.Instance.LevelUpDungeonSettlement( + GlobalUserData.Instance.User.id, + (userReceived) => + { + GlobalUserData userToUpdate = GlobalUserData.Instance; + Dictionary currenciesToAdd = new Dictionary(); + + userReceived.currencies.Select(c => c.Key).ToList().ForEach(c => + { + if (!currenciesToAdd.ContainsKey(c)) + { + userToUpdate.SetCurrencyAmount(c, userReceived.currencies[c]); + } + }); + userReceived.dungeonSettlementLevel.afkRewardRates.ForEach(afkRewardRate => + { + userToUpdate.User.dungeonSettlementLevel.afkRewardRates.Add(afkRewardRate); + }); + SetSceneTexts(userReceived); + }, + (reason) => + { + if (reason == "cant_afford") + { + insufficientCurrencyPopup.SetActive(true); + } + } + ); + } + + private void SetSceneTexts(User user) + { + + if (user.dungeonSettlementLevel.levelUpCosts.Any()) + { + goldLevelUpCost.text = user.dungeonSettlementLevel.levelUpCosts.Single(cost => cost.currency.name == "Gold").amount.ToString(); + blueprintsLevelUpCost.text = user.dungeonSettlementLevel.levelUpCosts.Single(cost => cost.currency.name == "Blueprints").amount.ToString(); + } + else + { + levelUpButton.SetActive(false); + goldLevelUpCost.transform.parent.gameObject.SetActive(false); + blueprintsLevelUpCost.transform.parent.gameObject.SetActive(false); + } + dungeonSettlementLevel.text = $"Level {user.dungeonSettlementLevel.level}"; + SetAfkRewardRatesTexts(user); + } + + private void SetAfkRewardRatesTexts(User user) + { + foreach (AfkRewardRate afkRewardRate in user.dungeonSettlementLevel.afkRewardRates) + { + if (afkRewardRate.currency == "Supplies") + { + suppliesAfkRewardRate.text = GetAfkRewardRateText(afkRewardRate.rate); + } + else + { + Debug.LogError($"Unhandled currency: {afkRewardRate.currency}"); + } + } + } + + private string GetAfkRewardRateText(float rate) + { + return $"{rate * SECONDS_IN_DAY}/day"; + } +} diff --git a/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs.meta b/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs.meta new file mode 100644 index 00000000..9cb7eb1e --- /dev/null +++ b/client/Assets/Scripts/Dungeon/DungeonSettlementManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aeab05464ec39455d8cf27407eb0a807 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Assets/Scripts/Protobuf/Gateway.pb.cs b/client/Assets/Scripts/Protobuf/Gateway.pb.cs index 345209a5..000c96c2 100644 --- a/client/Assets/Scripts/Protobuf/Gateway.pb.cs +++ b/client/Assets/Scripts/Protobuf/Gateway.pb.cs @@ -24,7 +24,7 @@ public static partial class GatewayReflection { static GatewayReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cg1nYXRld2F5LnByb3RvIqMHChBXZWJTb2NrZXRSZXF1ZXN0EhwKCGdldF91", + "Cg1nYXRld2F5LnByb3RvIqMIChBXZWJTb2NrZXRSZXF1ZXN0EhwKCGdldF91", "c2VyGAEgASgLMgguR2V0VXNlckgAEjIKFGdldF91c2VyX2J5X3VzZXJuYW1l", "GAIgASgLMhIuR2V0VXNlckJ5VXNlcm5hbWVIABIiCgtjcmVhdGVfdXNlchgD", "IAEoCzILLkNyZWF0ZVVzZXJIABImCg1nZXRfY2FtcGFpZ25zGAQgASgLMg0u", @@ -44,130 +44,141 @@ static GatewayReflection() { "YWZrX3Jld2FyZHMYFiABKAsyEC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gUuVXNlckgAEhUKBHVuaXQYAiAB", + "KAsyBS5Vbml0SAASFwoFdW5pdHMYAyABKAsyBi5Vbml0c0gAEjEKE3VuaXRf", + "YW5kX2N1cnJlbmNpZXMYBCABKAsyEi5Vbml0QW5kQ3VycmVuY2llc0gAEhUK", + "BGl0ZW0YBSABKAsyBS5JdGVtSAASHwoJY2FtcGFpZ25zGAYgASgLMgouQ2Ft", + "cGFpZ25zSAASHQoIY2FtcGFpZ24YByABKAsyCS5DYW1wYWlnbkgAEhcKBWxl", + "dmVsGAggASgLMgYuTGV2ZWxIABImCg1iYXR0bGVfcmVzdWx0GAkgASgLMg0u", + "QmF0dGxlUmVzdWx0SAASFwoFZXJyb3IYCiABKAsyBi5FcnJvckgAEhcKBWJv", + "eGVzGAsgASgLMgYuQm94ZXNIABITCgNib3gYDCABKAsyBC5Cb3hIABIlCg11", + "c2VyX2FuZF91bml0GA0gASgLMgwuVXNlckFuZFVuaXRIABIiCgthZmtfcmV3", + "YXJkcxgOIAEoCzILLkFma1Jld2FyZHNIABI9ChlzdXBlcl9jYW1wYWlnbl9w", + "cm9ncmVzc2VzGA8gASgLMhguU3VwZXJDYW1wYWlnblByb2dyZXNzZXNIAEIP", + "Cg1yZXNwb25zZV90eXBlIv4BCgRVc2VyEgoKAmlkGAEgASgJEhAKCHVzZXJu", + "YW1lGAIgASgJEg0KBWxldmVsGAMgASgEEhIKCmV4cGVyaWVuY2UYBCABKAQS", + "IQoKY3VycmVuY2llcxgHIAMoCzINLlVzZXJDdXJyZW5jeRIUCgV1bml0cxgI", + "IAMoCzIFLlVuaXQSFAoFaXRlbXMYCSADKAsyBS5JdGVtEisKEWthbGluZV90", + "cmVlX2xldmVsGAogASgLMhAuS2FsaW5lVHJlZUxldmVsEjkKGGR1bmdlb25f", + "c2V0dGxlbWVudF9sZXZlbBgLIAEoCzIXLkR1bmdlb25TZXR0bGVtZW50TGV2", + "ZWwirQEKD0thbGluZVRyZWVMZXZlbBIKCgJpZBgBIAEoCR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or = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Protobuf.Messages.SkillActionType), typeof(global::Protobuf.Messages.Stat), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.WebSocketRequest), global::Protobuf.Messages.WebSocketRequest.Parser, new[]{ "GetUser", "GetUserByUsername", "CreateUser", "GetCampaigns", "GetCampaign", "GetLevel", "FightLevel", "SelectUnit", "UnselectUnit", "LevelUpUnit", "TierUpUnit", "FuseUnit", "EquipItem", "UnequipItem", "GetItem", "LevelUpItem", "GetBoxes", "GetBox", "Summon", "GetAfkRewards", "ClaimAfkRewards", "GetUserSuperCampaignProgresses", "LevelUpKalineTree" }, new[]{ "RequestType" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.WebSocketRequest), global::Protobuf.Messages.WebSocketRequest.Parser, new[]{ "GetUser", "GetUserByUsername", "CreateUser", "GetCampaigns", "GetCampaign", "GetLevel", "FightLevel", "SelectUnit", "UnselectUnit", "LevelUpUnit", "TierUpUnit", "FuseUnit", "EquipItem", "UnequipItem", "GetItem", "LevelUpItem", "GetBoxes", "GetBox", "Summon", "GetAfkRewards", "ClaimAfkRewards", "GetUserSuperCampaignProgresses", "LevelUpKalineTree", "ClaimDungeonAfkRewards", "LevelUpDungeonSettlement" }, new[]{ "RequestType" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.GetUser), global::Protobuf.Messages.GetUser.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.GetUserByUsername), global::Protobuf.Messages.GetUserByUsername.Parser, new[]{ "Username" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.CreateUser), global::Protobuf.Messages.CreateUser.Parser, new[]{ "Username" }, null, null, null, null), @@ -191,9 +202,12 @@ static GatewayReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Summon), global::Protobuf.Messages.Summon.Parser, new[]{ "UserId", "BoxId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.GetUserSuperCampaignProgresses), global::Protobuf.Messages.GetUserSuperCampaignProgresses.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.LevelUpKalineTree), global::Protobuf.Messages.LevelUpKalineTree.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.ClaimDungeonAfkRewards), global::Protobuf.Messages.ClaimDungeonAfkRewards.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.LevelUpDungeonSettlement), global::Protobuf.Messages.LevelUpDungeonSettlement.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.WebSocketResponse), global::Protobuf.Messages.WebSocketResponse.Parser, new[]{ "User", "Unit", "Units", "UnitAndCurrencies", "Item", "Campaigns", "Campaign", "Level", "BattleResult", "Error", "Boxes", "Box", "UserAndUnit", "AfkRewards", "SuperCampaignProgresses" }, new[]{ "ResponseType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.User), global::Protobuf.Messages.User.Parser, new[]{ "Id", "Username", "Level", "Experience", "Currencies", "Units", "Items", "KalineTreeLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.User), global::Protobuf.Messages.User.Parser, new[]{ "Id", "Username", "Level", "Experience", "Currencies", "Units", "Items", "KalineTreeLevel", "DungeonSettlementLevel" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.KalineTreeLevel), global::Protobuf.Messages.KalineTreeLevel.Parser, new[]{ "Id", "Level", "FertilizerLevelUpCost", "GoldLevelUpCost", "UnlockFeatures", "AfkRewardRates" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.DungeonSettlementLevel), global::Protobuf.Messages.DungeonSettlementLevel.Parser, new[]{ "Id", "Level", "LevelUpCosts", "MaxDungeon", "MaxFactional", "SupplyLimit", "AfkRewardRates" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.SuperCampaignProgresses), global::Protobuf.Messages.SuperCampaignProgresses.Parser, new[]{ "SuperCampaignProgresses_" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.SuperCampaignProgress), global::Protobuf.Messages.SuperCampaignProgress.Parser, new[]{ "UserId", "CampaignId", "LevelId", "SuperCampaignName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.AfkRewardRate), global::Protobuf.Messages.AfkRewardRate.Parser, new[]{ "KalineTreeLevelId", "Currency", "Rate" }, null, null, null, null), @@ -362,6 +376,12 @@ public WebSocketRequest(WebSocketRequest other) : this() { case RequestTypeOneofCase.LevelUpKalineTree: LevelUpKalineTree = other.LevelUpKalineTree.Clone(); break; + case RequestTypeOneofCase.ClaimDungeonAfkRewards: + ClaimDungeonAfkRewards = other.ClaimDungeonAfkRewards.Clone(); + break; + case RequestTypeOneofCase.LevelUpDungeonSettlement: + LevelUpDungeonSettlement = other.LevelUpDungeonSettlement.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -649,6 +669,30 @@ public WebSocketRequest Clone() { } } + /// Field number for the "claim_dungeon_afk_rewards" field. + public const int ClaimDungeonAfkRewardsFieldNumber = 25; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.ClaimDungeonAfkRewards ClaimDungeonAfkRewards { + get { return requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards ? (global::Protobuf.Messages.ClaimDungeonAfkRewards) requestType_ : null; } + set { + requestType_ = value; + requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.ClaimDungeonAfkRewards; + } + } + + /// Field number for the "level_up_dungeon_settlement" field. + public const int LevelUpDungeonSettlementFieldNumber = 26; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.LevelUpDungeonSettlement LevelUpDungeonSettlement { + get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement ? (global::Protobuf.Messages.LevelUpDungeonSettlement) requestType_ : null; } + set { + requestType_ = value; + requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.LevelUpDungeonSettlement; + } + } + private object requestType_; /// Enum of possible cases for the "request_type" oneof. public enum RequestTypeOneofCase { @@ -676,6 +720,8 @@ public enum RequestTypeOneofCase { ClaimAfkRewards = 22, GetUserSuperCampaignProgresses = 23, LevelUpKalineTree = 24, + ClaimDungeonAfkRewards = 25, + LevelUpDungeonSettlement = 26, } private RequestTypeOneofCase requestTypeCase_ = RequestTypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -729,6 +775,8 @@ public bool Equals(WebSocketRequest other) { if (!object.Equals(ClaimAfkRewards, other.ClaimAfkRewards)) return false; if (!object.Equals(GetUserSuperCampaignProgresses, other.GetUserSuperCampaignProgresses)) return false; if (!object.Equals(LevelUpKalineTree, other.LevelUpKalineTree)) return false; + if (!object.Equals(ClaimDungeonAfkRewards, other.ClaimDungeonAfkRewards)) return false; + if (!object.Equals(LevelUpDungeonSettlement, other.LevelUpDungeonSettlement)) return false; if (RequestTypeCase != other.RequestTypeCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -760,6 +808,8 @@ public override int GetHashCode() { if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) hash ^= ClaimAfkRewards.GetHashCode(); if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) hash ^= GetUserSuperCampaignProgresses.GetHashCode(); if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) hash ^= LevelUpKalineTree.GetHashCode(); + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) hash ^= ClaimDungeonAfkRewards.GetHashCode(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) hash ^= LevelUpDungeonSettlement.GetHashCode(); hash ^= (int) requestTypeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -871,6 +921,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(194, 1); output.WriteMessage(LevelUpKalineTree); } + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) { + output.WriteRawTag(202, 1); + output.WriteMessage(ClaimDungeonAfkRewards); + } + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) { + output.WriteRawTag(210, 1); + output.WriteMessage(LevelUpDungeonSettlement); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -973,6 +1031,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(194, 1); output.WriteMessage(LevelUpKalineTree); } + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) { + output.WriteRawTag(202, 1); + output.WriteMessage(ClaimDungeonAfkRewards); + } + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) { + output.WriteRawTag(210, 1); + output.WriteMessage(LevelUpDungeonSettlement); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1052,6 +1118,12 @@ public int CalculateSize() { if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(LevelUpKalineTree); } + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClaimDungeonAfkRewards); + } + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LevelUpDungeonSettlement); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1203,6 +1275,18 @@ public void MergeFrom(WebSocketRequest other) { } LevelUpKalineTree.MergeFrom(other.LevelUpKalineTree); break; + case RequestTypeOneofCase.ClaimDungeonAfkRewards: + if (ClaimDungeonAfkRewards == null) { + ClaimDungeonAfkRewards = new global::Protobuf.Messages.ClaimDungeonAfkRewards(); + } + ClaimDungeonAfkRewards.MergeFrom(other.ClaimDungeonAfkRewards); + break; + case RequestTypeOneofCase.LevelUpDungeonSettlement: + if (LevelUpDungeonSettlement == null) { + LevelUpDungeonSettlement = new global::Protobuf.Messages.LevelUpDungeonSettlement(); + } + LevelUpDungeonSettlement.MergeFrom(other.LevelUpDungeonSettlement); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1427,6 +1511,24 @@ public void MergeFrom(pb::CodedInputStream input) { LevelUpKalineTree = subBuilder; break; } + case 202: { + global::Protobuf.Messages.ClaimDungeonAfkRewards subBuilder = new global::Protobuf.Messages.ClaimDungeonAfkRewards(); + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) { + subBuilder.MergeFrom(ClaimDungeonAfkRewards); + } + input.ReadMessage(subBuilder); + ClaimDungeonAfkRewards = subBuilder; + break; + } + case 210: { + global::Protobuf.Messages.LevelUpDungeonSettlement subBuilder = new global::Protobuf.Messages.LevelUpDungeonSettlement(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) { + subBuilder.MergeFrom(LevelUpDungeonSettlement); + } + input.ReadMessage(subBuilder); + LevelUpDungeonSettlement = subBuilder; + break; + } } } #endif @@ -1649,6 +1751,24 @@ public void MergeFrom(pb::CodedInputStream input) { LevelUpKalineTree = subBuilder; break; } + case 202: { + global::Protobuf.Messages.ClaimDungeonAfkRewards subBuilder = new global::Protobuf.Messages.ClaimDungeonAfkRewards(); + if (requestTypeCase_ == RequestTypeOneofCase.ClaimDungeonAfkRewards) { + subBuilder.MergeFrom(ClaimDungeonAfkRewards); + } + input.ReadMessage(subBuilder); + ClaimDungeonAfkRewards = subBuilder; + break; + } + case 210: { + global::Protobuf.Messages.LevelUpDungeonSettlement subBuilder = new global::Protobuf.Messages.LevelUpDungeonSettlement(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpDungeonSettlement) { + subBuilder.MergeFrom(LevelUpDungeonSettlement); + } + input.ReadMessage(subBuilder); + LevelUpDungeonSettlement = subBuilder; + break; + } } } } @@ -6608,16 +6728,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class WebSocketResponse : pb::IMessage + public sealed partial class ClaimDungeonAfkRewards : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebSocketResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClaimDungeonAfkRewards()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6633,7 +6753,7 @@ public sealed partial class WebSocketResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse() { + public ClaimDungeonAfkRewards() { OnConstruction(); } @@ -6641,309 +6761,235 @@ public WebSocketResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse(WebSocketResponse other) : this() { - switch (other.ResponseTypeCase) { - case ResponseTypeOneofCase.User: - User = other.User.Clone(); - break; - case ResponseTypeOneofCase.Unit: - Unit = other.Unit.Clone(); - break; - case ResponseTypeOneofCase.Units: - Units = other.Units.Clone(); - break; - case ResponseTypeOneofCase.UnitAndCurrencies: - UnitAndCurrencies = other.UnitAndCurrencies.Clone(); - break; - case ResponseTypeOneofCase.Item: - Item = other.Item.Clone(); - break; - case ResponseTypeOneofCase.Campaigns: - Campaigns = other.Campaigns.Clone(); - break; - case ResponseTypeOneofCase.Campaign: - Campaign = other.Campaign.Clone(); - break; - case ResponseTypeOneofCase.Level: - Level = other.Level.Clone(); - break; - case ResponseTypeOneofCase.BattleResult: - BattleResult = other.BattleResult.Clone(); - break; - case ResponseTypeOneofCase.Error: - Error = other.Error.Clone(); - break; - case ResponseTypeOneofCase.Boxes: - Boxes = other.Boxes.Clone(); - break; - case ResponseTypeOneofCase.Box: - Box = other.Box.Clone(); - break; - case ResponseTypeOneofCase.UserAndUnit: - UserAndUnit = other.UserAndUnit.Clone(); - break; - case ResponseTypeOneofCase.AfkRewards: - AfkRewards = other.AfkRewards.Clone(); - break; - case ResponseTypeOneofCase.SuperCampaignProgresses: - SuperCampaignProgresses = other.SuperCampaignProgresses.Clone(); - break; - } - + public ClaimDungeonAfkRewards(ClaimDungeonAfkRewards other) : this() { + userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse Clone() { - return new WebSocketResponse(this); + public ClaimDungeonAfkRewards Clone() { + return new ClaimDungeonAfkRewards(this); } - /// Field number for the "user" field. - public const int UserFieldNumber = 1; + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.User User { - get { return responseTypeCase_ == ResponseTypeOneofCase.User ? (global::Protobuf.Messages.User) responseType_ : null; } + public string UserId { + get { return userId_; } set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.User; + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "unit" field. - public const int UnitFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Unit Unit { - get { return responseTypeCase_ == ResponseTypeOneofCase.Unit ? (global::Protobuf.Messages.Unit) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Unit; - } + public override bool Equals(object other) { + return Equals(other as ClaimDungeonAfkRewards); } - /// Field number for the "units" field. - public const int UnitsFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Units Units { - get { return responseTypeCase_ == ResponseTypeOneofCase.Units ? (global::Protobuf.Messages.Units) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Units; + public bool Equals(ClaimDungeonAfkRewards other) { + if (ReferenceEquals(other, null)) { + return false; } - } - - /// Field number for the "unit_and_currencies" field. - public const int UnitAndCurrenciesFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UnitAndCurrencies UnitAndCurrencies { - get { return responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies ? (global::Protobuf.Messages.UnitAndCurrencies) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UnitAndCurrencies; + if (ReferenceEquals(other, this)) { + return true; } + if (UserId != other.UserId) return false; + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "item" field. - public const int ItemFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Item Item { - get { return responseTypeCase_ == ResponseTypeOneofCase.Item ? (global::Protobuf.Messages.Item) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Item; + public override int GetHashCode() { + int hash = 1; + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "campaigns" field. - public const int CampaignsFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Campaigns Campaigns { - get { return responseTypeCase_ == ResponseTypeOneofCase.Campaigns ? (global::Protobuf.Messages.Campaigns) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaigns; - } + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Campaign Campaign { - get { return responseTypeCase_ == ResponseTypeOneofCase.Campaign ? (global::Protobuf.Messages.Campaign) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaign; + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } - /// Field number for the "level" field. - public const int LevelFieldNumber = 8; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Level Level { - get { return responseTypeCase_ == ResponseTypeOneofCase.Level ? (global::Protobuf.Messages.Level) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Level; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "battle_result" field. - public const int BattleResultFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.BattleResult BattleResult { - get { return responseTypeCase_ == ResponseTypeOneofCase.BattleResult ? (global::Protobuf.Messages.BattleResult) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.BattleResult; + public int CalculateSize() { + int size = 0; + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "error" field. - public const int ErrorFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Error Error { - get { return responseTypeCase_ == ResponseTypeOneofCase.Error ? (global::Protobuf.Messages.Error) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Error; + public void MergeFrom(ClaimDungeonAfkRewards other) { + if (other == null) { + return; } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// Field number for the "boxes" field. - public const int BoxesFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Boxes Boxes { - get { return responseTypeCase_ == ResponseTypeOneofCase.Boxes ? (global::Protobuf.Messages.Boxes) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Boxes; + 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: { + UserId = input.ReadString(); + break; + } + } } + #endif } - /// Field number for the "box" field. - public const int BoxFieldNumber = 12; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Box Box { - get { return responseTypeCase_ == ResponseTypeOneofCase.Box ? (global::Protobuf.Messages.Box) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Box; + 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: { + UserId = input.ReadString(); + break; + } + } } } + #endif - /// Field number for the "user_and_unit" field. - public const int UserAndUnitFieldNumber = 13; + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LevelUpDungeonSettlement : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LevelUpDungeonSettlement()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UserAndUnit UserAndUnit { - get { return responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit ? (global::Protobuf.Messages.UserAndUnit) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UserAndUnit; - } + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[25]; } } - /// Field number for the "afk_rewards" field. - public const int AfkRewardsFieldNumber = 14; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.AfkRewards AfkRewards { - get { return responseTypeCase_ == ResponseTypeOneofCase.AfkRewards ? (global::Protobuf.Messages.AfkRewards) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.AfkRewards; - } + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - /// Field number for the "super_campaign_progresses" field. - public const int SuperCampaignProgressesFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.SuperCampaignProgresses SuperCampaignProgresses { - get { return responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses ? (global::Protobuf.Messages.SuperCampaignProgresses) responseType_ : null; } - set { - responseType_ = value; - responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.SuperCampaignProgresses; - } + public LevelUpDungeonSettlement() { + OnConstruction(); } - private object responseType_; - /// Enum of possible cases for the "response_type" oneof. - public enum ResponseTypeOneofCase { - None = 0, - User = 1, - Unit = 2, - Units = 3, - UnitAndCurrencies = 4, - Item = 5, - Campaigns = 6, - Campaign = 7, - Level = 8, - BattleResult = 9, - Error = 10, - Boxes = 11, - Box = 12, - UserAndUnit = 13, - AfkRewards = 14, - SuperCampaignProgresses = 15, + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LevelUpDungeonSettlement(LevelUpDungeonSettlement other) : this() { + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - private ResponseTypeOneofCase responseTypeCase_ = ResponseTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponseTypeOneofCase ResponseTypeCase { - get { return responseTypeCase_; } + public LevelUpDungeonSettlement Clone() { + return new LevelUpDungeonSettlement(this); } + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearResponseType() { - responseTypeCase_ = ResponseTypeOneofCase.None; - responseType_ = null; + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as WebSocketResponse); + return Equals(other as LevelUpDungeonSettlement); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebSocketResponse other) { + public bool Equals(LevelUpDungeonSettlement other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(User, other.User)) return false; - if (!object.Equals(Unit, other.Unit)) return false; - if (!object.Equals(Units, other.Units)) return false; - if (!object.Equals(UnitAndCurrencies, other.UnitAndCurrencies)) return false; - if (!object.Equals(Item, other.Item)) return false; - if (!object.Equals(Campaigns, other.Campaigns)) return false; - if (!object.Equals(Campaign, other.Campaign)) return false; - if (!object.Equals(Level, other.Level)) return false; - if (!object.Equals(BattleResult, other.BattleResult)) return false; - if (!object.Equals(Error, other.Error)) return false; - if (!object.Equals(Boxes, other.Boxes)) return false; - if (!object.Equals(Box, other.Box)) return false; - if (!object.Equals(UserAndUnit, other.UserAndUnit)) return false; - if (!object.Equals(AfkRewards, other.AfkRewards)) return false; - if (!object.Equals(SuperCampaignProgresses, other.SuperCampaignProgresses)) return false; - if (ResponseTypeCase != other.ResponseTypeCase) return false; + if (UserId != other.UserId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6951,22 +6997,7 @@ public bool Equals(WebSocketResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (responseTypeCase_ == ResponseTypeOneofCase.User) hash ^= User.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) hash ^= Unit.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Units) hash ^= Units.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) hash ^= UnitAndCurrencies.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Item) hash ^= Item.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) hash ^= Campaigns.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) hash ^= Campaign.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Level) hash ^= Level.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) hash ^= BattleResult.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Error) hash ^= Error.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) hash ^= Boxes.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.Box) hash ^= Box.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) hash ^= UserAndUnit.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) hash ^= AfkRewards.GetHashCode(); - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) hash ^= SuperCampaignProgresses.GetHashCode(); - hash ^= (int) responseTypeCase_; + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6985,65 +7016,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (responseTypeCase_ == ResponseTypeOneofCase.User) { + if (UserId.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(User); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - output.WriteRawTag(18); - output.WriteMessage(Unit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - output.WriteRawTag(26); - output.WriteMessage(Units); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - output.WriteRawTag(34); - output.WriteMessage(UnitAndCurrencies); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - output.WriteRawTag(42); - output.WriteMessage(Item); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - output.WriteRawTag(50); - output.WriteMessage(Campaigns); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - output.WriteRawTag(58); - output.WriteMessage(Campaign); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - output.WriteRawTag(66); - output.WriteMessage(Level); - } - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - output.WriteRawTag(74); - output.WriteMessage(BattleResult); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - output.WriteRawTag(82); - output.WriteMessage(Error); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - output.WriteRawTag(90); - output.WriteMessage(Boxes); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - output.WriteRawTag(98); - output.WriteMessage(Box); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - output.WriteRawTag(106); - output.WriteMessage(UserAndUnit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - output.WriteRawTag(114); - output.WriteMessage(AfkRewards); - } - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - output.WriteRawTag(122); - output.WriteMessage(SuperCampaignProgresses); + output.WriteString(UserId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7055,65 +7030,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (responseTypeCase_ == ResponseTypeOneofCase.User) { + if (UserId.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(User); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - output.WriteRawTag(18); - output.WriteMessage(Unit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - output.WriteRawTag(26); - output.WriteMessage(Units); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - output.WriteRawTag(34); - output.WriteMessage(UnitAndCurrencies); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - output.WriteRawTag(42); - output.WriteMessage(Item); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - output.WriteRawTag(50); - output.WriteMessage(Campaigns); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - output.WriteRawTag(58); - output.WriteMessage(Campaign); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - output.WriteRawTag(66); - output.WriteMessage(Level); - } - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - output.WriteRawTag(74); - output.WriteMessage(BattleResult); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - output.WriteRawTag(82); - output.WriteMessage(Error); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - output.WriteRawTag(90); - output.WriteMessage(Boxes); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - output.WriteRawTag(98); - output.WriteMessage(Box); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - output.WriteRawTag(106); - output.WriteMessage(UserAndUnit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - output.WriteRawTag(114); - output.WriteMessage(AfkRewards); - } - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - output.WriteRawTag(122); - output.WriteMessage(SuperCampaignProgresses); + output.WriteString(UserId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7125,50 +7044,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (responseTypeCase_ == ResponseTypeOneofCase.User) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Units); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnitAndCurrencies); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaigns); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Level); - } - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleResult); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Boxes); - } - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Box); - } - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserAndUnit); - } - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AfkRewards); - } - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuperCampaignProgresses); + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7178,103 +7055,1383 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebSocketResponse other) { + public void MergeFrom(LevelUpDungeonSettlement other) { if (other == null) { return; } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WebSocketResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebSocketResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebSocketResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebSocketResponse(WebSocketResponse other) : this() { switch (other.ResponseTypeCase) { case ResponseTypeOneofCase.User: - if (User == null) { - User = new global::Protobuf.Messages.User(); - } - User.MergeFrom(other.User); + User = other.User.Clone(); break; case ResponseTypeOneofCase.Unit: - if (Unit == null) { - Unit = new global::Protobuf.Messages.Unit(); - } - Unit.MergeFrom(other.Unit); + Unit = other.Unit.Clone(); break; case ResponseTypeOneofCase.Units: - if (Units == null) { - Units = new global::Protobuf.Messages.Units(); - } - Units.MergeFrom(other.Units); + Units = other.Units.Clone(); break; case ResponseTypeOneofCase.UnitAndCurrencies: - if (UnitAndCurrencies == null) { - UnitAndCurrencies = new global::Protobuf.Messages.UnitAndCurrencies(); - } - UnitAndCurrencies.MergeFrom(other.UnitAndCurrencies); + UnitAndCurrencies = other.UnitAndCurrencies.Clone(); break; case ResponseTypeOneofCase.Item: - if (Item == null) { - Item = new global::Protobuf.Messages.Item(); - } - Item.MergeFrom(other.Item); + Item = other.Item.Clone(); break; case ResponseTypeOneofCase.Campaigns: - if (Campaigns == null) { - Campaigns = new global::Protobuf.Messages.Campaigns(); - } - Campaigns.MergeFrom(other.Campaigns); + Campaigns = other.Campaigns.Clone(); break; case ResponseTypeOneofCase.Campaign: - if (Campaign == null) { - Campaign = new global::Protobuf.Messages.Campaign(); - } - Campaign.MergeFrom(other.Campaign); + Campaign = other.Campaign.Clone(); break; case ResponseTypeOneofCase.Level: - if (Level == null) { - Level = new global::Protobuf.Messages.Level(); - } - Level.MergeFrom(other.Level); + Level = other.Level.Clone(); break; case ResponseTypeOneofCase.BattleResult: - if (BattleResult == null) { - BattleResult = new global::Protobuf.Messages.BattleResult(); - } - BattleResult.MergeFrom(other.BattleResult); + BattleResult = other.BattleResult.Clone(); break; case ResponseTypeOneofCase.Error: - if (Error == null) { - Error = new global::Protobuf.Messages.Error(); - } - Error.MergeFrom(other.Error); + Error = other.Error.Clone(); break; case ResponseTypeOneofCase.Boxes: - if (Boxes == null) { - Boxes = new global::Protobuf.Messages.Boxes(); - } - Boxes.MergeFrom(other.Boxes); + Boxes = other.Boxes.Clone(); break; case ResponseTypeOneofCase.Box: - if (Box == null) { - Box = new global::Protobuf.Messages.Box(); - } - Box.MergeFrom(other.Box); + Box = other.Box.Clone(); break; case ResponseTypeOneofCase.UserAndUnit: - if (UserAndUnit == null) { - UserAndUnit = new global::Protobuf.Messages.UserAndUnit(); - } - UserAndUnit.MergeFrom(other.UserAndUnit); + UserAndUnit = other.UserAndUnit.Clone(); break; case ResponseTypeOneofCase.AfkRewards: - if (AfkRewards == null) { - AfkRewards = new global::Protobuf.Messages.AfkRewards(); - } - AfkRewards.MergeFrom(other.AfkRewards); + AfkRewards = other.AfkRewards.Clone(); break; case ResponseTypeOneofCase.SuperCampaignProgresses: - if (SuperCampaignProgresses == null) { - SuperCampaignProgresses = new global::Protobuf.Messages.SuperCampaignProgresses(); - } - SuperCampaignProgresses.MergeFrom(other.SuperCampaignProgresses); + SuperCampaignProgresses = other.SuperCampaignProgresses.Clone(); break; } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebSocketResponse Clone() { + return new WebSocketResponse(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.User User { + get { return responseTypeCase_ == ResponseTypeOneofCase.User ? (global::Protobuf.Messages.User) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.User; + } + } + + /// Field number for the "unit" field. + public const int UnitFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Unit Unit { + get { return responseTypeCase_ == ResponseTypeOneofCase.Unit ? (global::Protobuf.Messages.Unit) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Unit; + } + } + + /// Field number for the "units" field. + public const int UnitsFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Units Units { + get { return responseTypeCase_ == ResponseTypeOneofCase.Units ? (global::Protobuf.Messages.Units) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Units; + } + } + + /// Field number for the "unit_and_currencies" field. + public const int UnitAndCurrenciesFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.UnitAndCurrencies UnitAndCurrencies { + get { return responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies ? (global::Protobuf.Messages.UnitAndCurrencies) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UnitAndCurrencies; + } + } + + /// Field number for the "item" field. + public const int ItemFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Item Item { + get { return responseTypeCase_ == ResponseTypeOneofCase.Item ? (global::Protobuf.Messages.Item) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Item; + } + } + + /// Field number for the "campaigns" field. + public const int CampaignsFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Campaigns Campaigns { + get { return responseTypeCase_ == ResponseTypeOneofCase.Campaigns ? (global::Protobuf.Messages.Campaigns) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaigns; + } + } + + /// Field number for the "campaign" field. + public const int CampaignFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Campaign Campaign { + get { return responseTypeCase_ == ResponseTypeOneofCase.Campaign ? (global::Protobuf.Messages.Campaign) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaign; + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Level Level { + get { return responseTypeCase_ == ResponseTypeOneofCase.Level ? (global::Protobuf.Messages.Level) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Level; + } + } + + /// Field number for the "battle_result" field. + public const int BattleResultFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.BattleResult BattleResult { + get { return responseTypeCase_ == ResponseTypeOneofCase.BattleResult ? (global::Protobuf.Messages.BattleResult) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.BattleResult; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Error Error { + get { return responseTypeCase_ == ResponseTypeOneofCase.Error ? (global::Protobuf.Messages.Error) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Error; + } + } + + /// Field number for the "boxes" field. + public const int BoxesFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Boxes Boxes { + get { return responseTypeCase_ == ResponseTypeOneofCase.Boxes ? (global::Protobuf.Messages.Boxes) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Boxes; + } + } + + /// Field number for the "box" field. + public const int BoxFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.Box Box { + get { return responseTypeCase_ == ResponseTypeOneofCase.Box ? (global::Protobuf.Messages.Box) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Box; + } + } + + /// Field number for the "user_and_unit" field. + public const int UserAndUnitFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.UserAndUnit UserAndUnit { + get { return responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit ? (global::Protobuf.Messages.UserAndUnit) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UserAndUnit; + } + } + + /// Field number for the "afk_rewards" field. + public const int AfkRewardsFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.AfkRewards AfkRewards { + get { return responseTypeCase_ == ResponseTypeOneofCase.AfkRewards ? (global::Protobuf.Messages.AfkRewards) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.AfkRewards; + } + } + + /// Field number for the "super_campaign_progresses" field. + public const int SuperCampaignProgressesFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.SuperCampaignProgresses SuperCampaignProgresses { + get { return responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses ? (global::Protobuf.Messages.SuperCampaignProgresses) responseType_ : null; } + set { + responseType_ = value; + responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.SuperCampaignProgresses; + } + } + + private object responseType_; + /// Enum of possible cases for the "response_type" oneof. + public enum ResponseTypeOneofCase { + None = 0, + User = 1, + Unit = 2, + Units = 3, + UnitAndCurrencies = 4, + Item = 5, + Campaigns = 6, + Campaign = 7, + Level = 8, + BattleResult = 9, + Error = 10, + Boxes = 11, + Box = 12, + UserAndUnit = 13, + AfkRewards = 14, + SuperCampaignProgresses = 15, + } + private ResponseTypeOneofCase responseTypeCase_ = ResponseTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResponseTypeOneofCase ResponseTypeCase { + get { return responseTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponseType() { + responseTypeCase_ = ResponseTypeOneofCase.None; + responseType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WebSocketResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WebSocketResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (!object.Equals(Unit, other.Unit)) return false; + if (!object.Equals(Units, other.Units)) return false; + if (!object.Equals(UnitAndCurrencies, other.UnitAndCurrencies)) return false; + if (!object.Equals(Item, other.Item)) return false; + if (!object.Equals(Campaigns, other.Campaigns)) return false; + if (!object.Equals(Campaign, other.Campaign)) return false; + if (!object.Equals(Level, other.Level)) return false; + if (!object.Equals(BattleResult, other.BattleResult)) return false; + if (!object.Equals(Error, other.Error)) return false; + if (!object.Equals(Boxes, other.Boxes)) return false; + if (!object.Equals(Box, other.Box)) return false; + if (!object.Equals(UserAndUnit, other.UserAndUnit)) return false; + if (!object.Equals(AfkRewards, other.AfkRewards)) return false; + if (!object.Equals(SuperCampaignProgresses, other.SuperCampaignProgresses)) return false; + if (ResponseTypeCase != other.ResponseTypeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (responseTypeCase_ == ResponseTypeOneofCase.User) hash ^= User.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) hash ^= Unit.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Units) hash ^= Units.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) hash ^= UnitAndCurrencies.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Item) hash ^= Item.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) hash ^= Campaigns.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) hash ^= Campaign.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Level) hash ^= Level.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) hash ^= BattleResult.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Error) hash ^= Error.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) hash ^= Boxes.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.Box) hash ^= Box.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) hash ^= UserAndUnit.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) hash ^= AfkRewards.GetHashCode(); + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) hash ^= SuperCampaignProgresses.GetHashCode(); + hash ^= (int) responseTypeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (responseTypeCase_ == ResponseTypeOneofCase.User) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + output.WriteRawTag(18); + output.WriteMessage(Unit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + output.WriteRawTag(26); + output.WriteMessage(Units); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + output.WriteRawTag(34); + output.WriteMessage(UnitAndCurrencies); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + output.WriteRawTag(42); + output.WriteMessage(Item); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + output.WriteRawTag(50); + output.WriteMessage(Campaigns); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + output.WriteRawTag(58); + output.WriteMessage(Campaign); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + output.WriteRawTag(66); + output.WriteMessage(Level); + } + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + output.WriteRawTag(74); + output.WriteMessage(BattleResult); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + output.WriteRawTag(82); + output.WriteMessage(Error); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + output.WriteRawTag(90); + output.WriteMessage(Boxes); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + output.WriteRawTag(98); + output.WriteMessage(Box); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + output.WriteRawTag(106); + output.WriteMessage(UserAndUnit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + output.WriteRawTag(114); + output.WriteMessage(AfkRewards); + } + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + output.WriteRawTag(122); + output.WriteMessage(SuperCampaignProgresses); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (responseTypeCase_ == ResponseTypeOneofCase.User) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + output.WriteRawTag(18); + output.WriteMessage(Unit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + output.WriteRawTag(26); + output.WriteMessage(Units); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + output.WriteRawTag(34); + output.WriteMessage(UnitAndCurrencies); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + output.WriteRawTag(42); + output.WriteMessage(Item); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + output.WriteRawTag(50); + output.WriteMessage(Campaigns); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + output.WriteRawTag(58); + output.WriteMessage(Campaign); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + output.WriteRawTag(66); + output.WriteMessage(Level); + } + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + output.WriteRawTag(74); + output.WriteMessage(BattleResult); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + output.WriteRawTag(82); + output.WriteMessage(Error); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + output.WriteRawTag(90); + output.WriteMessage(Boxes); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + output.WriteRawTag(98); + output.WriteMessage(Box); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + output.WriteRawTag(106); + output.WriteMessage(UserAndUnit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + output.WriteRawTag(114); + output.WriteMessage(AfkRewards); + } + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + output.WriteRawTag(122); + output.WriteMessage(SuperCampaignProgresses); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (responseTypeCase_ == ResponseTypeOneofCase.User) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Units); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnitAndCurrencies); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaigns); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Level); + } + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleResult); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Boxes); + } + if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Box); + } + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserAndUnit); + } + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AfkRewards); + } + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuperCampaignProgresses); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WebSocketResponse other) { + if (other == null) { + return; + } + switch (other.ResponseTypeCase) { + case ResponseTypeOneofCase.User: + if (User == null) { + User = new global::Protobuf.Messages.User(); + } + User.MergeFrom(other.User); + break; + case ResponseTypeOneofCase.Unit: + if (Unit == null) { + Unit = new global::Protobuf.Messages.Unit(); + } + Unit.MergeFrom(other.Unit); + break; + case ResponseTypeOneofCase.Units: + if (Units == null) { + Units = new global::Protobuf.Messages.Units(); + } + Units.MergeFrom(other.Units); + break; + case ResponseTypeOneofCase.UnitAndCurrencies: + if (UnitAndCurrencies == null) { + UnitAndCurrencies = new global::Protobuf.Messages.UnitAndCurrencies(); + } + UnitAndCurrencies.MergeFrom(other.UnitAndCurrencies); + break; + case ResponseTypeOneofCase.Item: + if (Item == null) { + Item = new global::Protobuf.Messages.Item(); + } + Item.MergeFrom(other.Item); + break; + case ResponseTypeOneofCase.Campaigns: + if (Campaigns == null) { + Campaigns = new global::Protobuf.Messages.Campaigns(); + } + Campaigns.MergeFrom(other.Campaigns); + break; + case ResponseTypeOneofCase.Campaign: + if (Campaign == null) { + Campaign = new global::Protobuf.Messages.Campaign(); + } + Campaign.MergeFrom(other.Campaign); + break; + case ResponseTypeOneofCase.Level: + if (Level == null) { + Level = new global::Protobuf.Messages.Level(); + } + Level.MergeFrom(other.Level); + break; + case ResponseTypeOneofCase.BattleResult: + if (BattleResult == null) { + BattleResult = new global::Protobuf.Messages.BattleResult(); + } + BattleResult.MergeFrom(other.BattleResult); + break; + case ResponseTypeOneofCase.Error: + if (Error == null) { + Error = new global::Protobuf.Messages.Error(); + } + Error.MergeFrom(other.Error); + break; + case ResponseTypeOneofCase.Boxes: + if (Boxes == null) { + Boxes = new global::Protobuf.Messages.Boxes(); + } + Boxes.MergeFrom(other.Boxes); + break; + case ResponseTypeOneofCase.Box: + if (Box == null) { + Box = new global::Protobuf.Messages.Box(); + } + Box.MergeFrom(other.Box); + break; + case ResponseTypeOneofCase.UserAndUnit: + if (UserAndUnit == null) { + UserAndUnit = new global::Protobuf.Messages.UserAndUnit(); + } + UserAndUnit.MergeFrom(other.UserAndUnit); + break; + case ResponseTypeOneofCase.AfkRewards: + if (AfkRewards == null) { + AfkRewards = new global::Protobuf.Messages.AfkRewards(); + } + AfkRewards.MergeFrom(other.AfkRewards); + break; + case ResponseTypeOneofCase.SuperCampaignProgresses: + if (SuperCampaignProgresses == null) { + SuperCampaignProgresses = new global::Protobuf.Messages.SuperCampaignProgresses(); + } + SuperCampaignProgresses.MergeFrom(other.SuperCampaignProgresses); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); + if (responseTypeCase_ == ResponseTypeOneofCase.User) { + subBuilder.MergeFrom(User); + } + input.ReadMessage(subBuilder); + User = subBuilder; + break; + } + case 18: { + global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + subBuilder.MergeFrom(Unit); + } + input.ReadMessage(subBuilder); + Unit = subBuilder; + break; + } + case 26: { + global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); + if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + subBuilder.MergeFrom(Units); + } + input.ReadMessage(subBuilder); + Units = subBuilder; + break; + } + case 34: { + global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + subBuilder.MergeFrom(UnitAndCurrencies); + } + input.ReadMessage(subBuilder); + UnitAndCurrencies = subBuilder; + break; + } + case 42: { + global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); + if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 50: { + global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + subBuilder.MergeFrom(Campaigns); + } + input.ReadMessage(subBuilder); + Campaigns = subBuilder; + break; + } + case 58: { + global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + subBuilder.MergeFrom(Campaign); + } + input.ReadMessage(subBuilder); + Campaign = subBuilder; + break; + } + case 66: { + global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); + if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + subBuilder.MergeFrom(Level); + } + input.ReadMessage(subBuilder); + Level = subBuilder; + break; + } + case 74: { + global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + subBuilder.MergeFrom(BattleResult); + } + input.ReadMessage(subBuilder); + BattleResult = subBuilder; + break; + } + case 82: { + global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); + if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + subBuilder.MergeFrom(Error); + } + input.ReadMessage(subBuilder); + Error = subBuilder; + break; + } + case 90: { + global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + subBuilder.MergeFrom(Boxes); + } + input.ReadMessage(subBuilder); + Boxes = subBuilder; + break; + } + case 98: { + global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); + if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + subBuilder.MergeFrom(Box); + } + input.ReadMessage(subBuilder); + Box = subBuilder; + break; + } + case 106: { + global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + subBuilder.MergeFrom(UserAndUnit); + } + input.ReadMessage(subBuilder); + UserAndUnit = subBuilder; + break; + } + case 114: { + global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + subBuilder.MergeFrom(AfkRewards); + } + input.ReadMessage(subBuilder); + AfkRewards = subBuilder; + break; + } + case 122: { + global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + subBuilder.MergeFrom(SuperCampaignProgresses); + } + input.ReadMessage(subBuilder); + SuperCampaignProgresses = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); + if (responseTypeCase_ == ResponseTypeOneofCase.User) { + subBuilder.MergeFrom(User); + } + input.ReadMessage(subBuilder); + User = subBuilder; + break; + } + case 18: { + global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + subBuilder.MergeFrom(Unit); + } + input.ReadMessage(subBuilder); + Unit = subBuilder; + break; + } + case 26: { + global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); + if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + subBuilder.MergeFrom(Units); + } + input.ReadMessage(subBuilder); + Units = subBuilder; + break; + } + case 34: { + global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + subBuilder.MergeFrom(UnitAndCurrencies); + } + input.ReadMessage(subBuilder); + UnitAndCurrencies = subBuilder; + break; + } + case 42: { + global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); + if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; + } + case 50: { + global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + subBuilder.MergeFrom(Campaigns); + } + input.ReadMessage(subBuilder); + Campaigns = subBuilder; + break; + } + case 58: { + global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + subBuilder.MergeFrom(Campaign); + } + input.ReadMessage(subBuilder); + Campaign = subBuilder; + break; + } + case 66: { + global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); + if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + subBuilder.MergeFrom(Level); + } + input.ReadMessage(subBuilder); + Level = subBuilder; + break; + } + case 74: { + global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + subBuilder.MergeFrom(BattleResult); + } + input.ReadMessage(subBuilder); + BattleResult = subBuilder; + break; + } + case 82: { + global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); + if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + subBuilder.MergeFrom(Error); + } + input.ReadMessage(subBuilder); + Error = subBuilder; + break; + } + case 90: { + global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + subBuilder.MergeFrom(Boxes); + } + input.ReadMessage(subBuilder); + Boxes = subBuilder; + break; + } + case 98: { + global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); + if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + subBuilder.MergeFrom(Box); + } + input.ReadMessage(subBuilder); + Box = subBuilder; + break; + } + case 106: { + global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + subBuilder.MergeFrom(UserAndUnit); + } + input.ReadMessage(subBuilder); + UserAndUnit = subBuilder; + break; + } + case 114: { + global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + subBuilder.MergeFrom(AfkRewards); + } + input.ReadMessage(subBuilder); + AfkRewards = subBuilder; + break; + } + case 122: { + global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + subBuilder.MergeFrom(SuperCampaignProgresses); + } + input.ReadMessage(subBuilder); + SuperCampaignProgresses = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class User : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User(User other) : this() { + id_ = other.id_; + username_ = other.username_; + level_ = other.level_; + experience_ = other.experience_; + currencies_ = other.currencies_.Clone(); + units_ = other.units_.Clone(); + items_ = other.items_.Clone(); + kalineTreeLevel_ = other.kalineTreeLevel_ != null ? other.kalineTreeLevel_.Clone() : null; + dungeonSettlementLevel_ = other.dungeonSettlementLevel_ != null ? other.dungeonSettlementLevel_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User Clone() { + return new User(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "username" field. + public const int UsernameFieldNumber = 2; + private string username_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Username { + get { return username_; } + set { + username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private ulong level_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "experience" field. + public const int ExperienceFieldNumber = 4; + private ulong experience_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Experience { + get { return experience_; } + set { + experience_ = value; + } + } + + /// Field number for the "currencies" field. + public const int CurrenciesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_currencies_codec + = pb::FieldCodec.ForMessage(58, global::Protobuf.Messages.UserCurrency.Parser); + private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Currencies { + get { return currencies_; } + } + + /// Field number for the "units" field. + public const int UnitsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_units_codec + = pb::FieldCodec.ForMessage(66, global::Protobuf.Messages.Unit.Parser); + private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Units { + get { return units_; } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(74, global::Protobuf.Messages.Item.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + /// Field number for the "kaline_tree_level" field. + public const int KalineTreeLevelFieldNumber = 10; + private global::Protobuf.Messages.KalineTreeLevel kalineTreeLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.KalineTreeLevel KalineTreeLevel { + get { return kalineTreeLevel_; } + set { + kalineTreeLevel_ = value; + } + } + + /// Field number for the "dungeon_settlement_level" field. + public const int DungeonSettlementLevelFieldNumber = 11; + private global::Protobuf.Messages.DungeonSettlementLevel dungeonSettlementLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Protobuf.Messages.DungeonSettlementLevel DungeonSettlementLevel { + get { return dungeonSettlementLevel_; } + set { + dungeonSettlementLevel_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as User); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(User other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Username != other.Username) return false; + if (Level != other.Level) return false; + if (Experience != other.Experience) return false; + if(!currencies_.Equals(other.currencies_)) return false; + if(!units_.Equals(other.units_)) return false; + if(!items_.Equals(other.items_)) return false; + if (!object.Equals(KalineTreeLevel, other.KalineTreeLevel)) return false; + if (!object.Equals(DungeonSettlementLevel, other.DungeonSettlementLevel)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Username.Length != 0) hash ^= Username.GetHashCode(); + if (Level != 0UL) hash ^= Level.GetHashCode(); + if (Experience != 0UL) hash ^= Experience.GetHashCode(); + hash ^= currencies_.GetHashCode(); + hash ^= units_.GetHashCode(); + hash ^= items_.GetHashCode(); + if (kalineTreeLevel_ != null) hash ^= KalineTreeLevel.GetHashCode(); + if (dungeonSettlementLevel_ != null) hash ^= DungeonSettlementLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Username.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Username); + } + if (Level != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(Level); + } + if (Experience != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(Experience); + } + currencies_.WriteTo(output, _repeated_currencies_codec); + units_.WriteTo(output, _repeated_units_codec); + items_.WriteTo(output, _repeated_items_codec); + if (kalineTreeLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(KalineTreeLevel); + } + if (dungeonSettlementLevel_ != null) { + output.WriteRawTag(90); + output.WriteMessage(DungeonSettlementLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Username.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Username); + } + if (Level != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(Level); + } + if (Experience != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(Experience); + } + currencies_.WriteTo(ref output, _repeated_currencies_codec); + units_.WriteTo(ref output, _repeated_units_codec); + items_.WriteTo(ref output, _repeated_items_codec); + if (kalineTreeLevel_ != null) { + output.WriteRawTag(82); + output.WriteMessage(KalineTreeLevel); + } + if (dungeonSettlementLevel_ != null) { + output.WriteRawTag(90); + output.WriteMessage(DungeonSettlementLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Username.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); + } + if (Level != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Level); + } + if (Experience != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Experience); + } + size += currencies_.CalculateSize(_repeated_currencies_codec); + size += units_.CalculateSize(_repeated_units_codec); + size += items_.CalculateSize(_repeated_items_codec); + if (kalineTreeLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KalineTreeLevel); + } + if (dungeonSettlementLevel_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DungeonSettlementLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(User other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Username.Length != 0) { + Username = other.Username; + } + if (other.Level != 0UL) { + Level = other.Level; + } + if (other.Experience != 0UL) { + Experience = other.Experience; + } + currencies_.Add(other.currencies_); + units_.Add(other.units_); + items_.Add(other.items_); + if (other.kalineTreeLevel_ != null) { + if (kalineTreeLevel_ == null) { + KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); + } + KalineTreeLevel.MergeFrom(other.KalineTreeLevel); + } + if (other.dungeonSettlementLevel_ != null) { + if (dungeonSettlementLevel_ == null) { + DungeonSettlementLevel = new global::Protobuf.Messages.DungeonSettlementLevel(); + } + DungeonSettlementLevel.MergeFrom(other.DungeonSettlementLevel); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7291,138 +8448,45 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); - if (responseTypeCase_ == ResponseTypeOneofCase.User) { - subBuilder.MergeFrom(User); - } - input.ReadMessage(subBuilder); - User = subBuilder; + Id = input.ReadString(); break; } case 18: { - global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - subBuilder.MergeFrom(Unit); - } - input.ReadMessage(subBuilder); - Unit = subBuilder; - break; - } - case 26: { - global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - subBuilder.MergeFrom(Units); - } - input.ReadMessage(subBuilder); - Units = subBuilder; - break; - } - case 34: { - global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - subBuilder.MergeFrom(UnitAndCurrencies); - } - input.ReadMessage(subBuilder); - UnitAndCurrencies = subBuilder; + Username = input.ReadString(); break; } - case 42: { - global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - subBuilder.MergeFrom(Item); - } - input.ReadMessage(subBuilder); - Item = subBuilder; + case 24: { + Level = input.ReadUInt64(); break; } - case 50: { - global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - subBuilder.MergeFrom(Campaigns); - } - input.ReadMessage(subBuilder); - Campaigns = subBuilder; + case 32: { + Experience = input.ReadUInt64(); break; } case 58: { - global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - subBuilder.MergeFrom(Campaign); - } - input.ReadMessage(subBuilder); - Campaign = subBuilder; + currencies_.AddEntriesFrom(input, _repeated_currencies_codec); break; } case 66: { - global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - subBuilder.MergeFrom(Level); - } - input.ReadMessage(subBuilder); - Level = subBuilder; + units_.AddEntriesFrom(input, _repeated_units_codec); break; } case 74: { - global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - subBuilder.MergeFrom(BattleResult); - } - input.ReadMessage(subBuilder); - BattleResult = subBuilder; + items_.AddEntriesFrom(input, _repeated_items_codec); break; } case 82: { - global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - subBuilder.MergeFrom(Error); + if (kalineTreeLevel_ == null) { + KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); } - input.ReadMessage(subBuilder); - Error = subBuilder; + input.ReadMessage(KalineTreeLevel); break; } case 90: { - global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - subBuilder.MergeFrom(Boxes); - } - input.ReadMessage(subBuilder); - Boxes = subBuilder; - break; - } - case 98: { - global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - subBuilder.MergeFrom(Box); - } - input.ReadMessage(subBuilder); - Box = subBuilder; - break; - } - case 106: { - global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - subBuilder.MergeFrom(UserAndUnit); - } - input.ReadMessage(subBuilder); - UserAndUnit = subBuilder; - break; - } - case 114: { - global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - subBuilder.MergeFrom(AfkRewards); + if (dungeonSettlementLevel_ == null) { + DungeonSettlementLevel = new global::Protobuf.Messages.DungeonSettlementLevel(); } - input.ReadMessage(subBuilder); - AfkRewards = subBuilder; - break; - } - case 122: { - global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - subBuilder.MergeFrom(SuperCampaignProgresses); - } - input.ReadMessage(subBuilder); - SuperCampaignProgresses = subBuilder; + input.ReadMessage(DungeonSettlementLevel); break; } } @@ -7441,138 +8505,45 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); - if (responseTypeCase_ == ResponseTypeOneofCase.User) { - subBuilder.MergeFrom(User); - } - input.ReadMessage(subBuilder); - User = subBuilder; - break; - } - case 18: { - global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - subBuilder.MergeFrom(Unit); - } - input.ReadMessage(subBuilder); - Unit = subBuilder; - break; - } - case 26: { - global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - subBuilder.MergeFrom(Units); - } - input.ReadMessage(subBuilder); - Units = subBuilder; - break; - } - case 34: { - global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - subBuilder.MergeFrom(UnitAndCurrencies); - } - input.ReadMessage(subBuilder); - UnitAndCurrencies = subBuilder; - break; - } - case 42: { - global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - subBuilder.MergeFrom(Item); - } - input.ReadMessage(subBuilder); - Item = subBuilder; - break; - } - case 50: { - global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - subBuilder.MergeFrom(Campaigns); - } - input.ReadMessage(subBuilder); - Campaigns = subBuilder; - break; - } - case 58: { - global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - subBuilder.MergeFrom(Campaign); - } - input.ReadMessage(subBuilder); - Campaign = subBuilder; + Id = input.ReadString(); break; - } - case 66: { - global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - subBuilder.MergeFrom(Level); - } - input.ReadMessage(subBuilder); - Level = subBuilder; + } + case 18: { + Username = input.ReadString(); break; } - case 74: { - global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - subBuilder.MergeFrom(BattleResult); - } - input.ReadMessage(subBuilder); - BattleResult = subBuilder; + case 24: { + Level = input.ReadUInt64(); break; } - case 82: { - global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - subBuilder.MergeFrom(Error); - } - input.ReadMessage(subBuilder); - Error = subBuilder; + case 32: { + Experience = input.ReadUInt64(); break; } - case 90: { - global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - subBuilder.MergeFrom(Boxes); - } - input.ReadMessage(subBuilder); - Boxes = subBuilder; + case 58: { + currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); break; } - case 98: { - global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - subBuilder.MergeFrom(Box); - } - input.ReadMessage(subBuilder); - Box = subBuilder; + case 66: { + units_.AddEntriesFrom(ref input, _repeated_units_codec); break; } - case 106: { - global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - subBuilder.MergeFrom(UserAndUnit); - } - input.ReadMessage(subBuilder); - UserAndUnit = subBuilder; + case 74: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); break; } - case 114: { - global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - subBuilder.MergeFrom(AfkRewards); + case 82: { + if (kalineTreeLevel_ == null) { + KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); } - input.ReadMessage(subBuilder); - AfkRewards = subBuilder; + input.ReadMessage(KalineTreeLevel); break; } - case 122: { - global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - subBuilder.MergeFrom(SuperCampaignProgresses); + case 90: { + if (dungeonSettlementLevel_ == null) { + DungeonSettlementLevel = new global::Protobuf.Messages.DungeonSettlementLevel(); } - input.ReadMessage(subBuilder); - SuperCampaignProgresses = subBuilder; + input.ReadMessage(DungeonSettlementLevel); break; } } @@ -7583,21 +8554,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class User : pb::IMessage + public sealed partial class KalineTreeLevel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KalineTreeLevel()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[25]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7608,7 +8579,7 @@ public sealed partial class User : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User() { + public KalineTreeLevel() { OnConstruction(); } @@ -7616,22 +8587,20 @@ public User() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User(User other) : this() { + public KalineTreeLevel(KalineTreeLevel other) : this() { id_ = other.id_; - username_ = other.username_; level_ = other.level_; - experience_ = other.experience_; - currencies_ = other.currencies_.Clone(); - units_ = other.units_.Clone(); - items_ = other.items_.Clone(); - kalineTreeLevel_ = other.kalineTreeLevel_ != null ? other.kalineTreeLevel_.Clone() : null; + fertilizerLevelUpCost_ = other.fertilizerLevelUpCost_; + goldLevelUpCost_ = other.goldLevelUpCost_; + unlockFeatures_ = other.unlockFeatures_.Clone(); + afkRewardRates_ = other.afkRewardRates_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User Clone() { - return new User(this); + public KalineTreeLevel Clone() { + return new KalineTreeLevel(this); } /// Field number for the "id" field. @@ -7646,20 +8615,8 @@ public string Id { } } - /// Field number for the "username" field. - public const int UsernameFieldNumber = 2; - private string username_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { - get { return username_; } - set { - username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Field number for the "level" field. - public const int LevelFieldNumber = 3; + public const int LevelFieldNumber = 2; private ulong level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7670,72 +8627,61 @@ public ulong Level { } } - /// Field number for the "experience" field. - public const int ExperienceFieldNumber = 4; - private ulong experience_; + /// Field number for the "fertilizer_level_up_cost" field. + public const int FertilizerLevelUpCostFieldNumber = 3; + private ulong fertilizerLevelUpCost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Experience { - get { return experience_; } + public ulong FertilizerLevelUpCost { + get { return fertilizerLevelUpCost_; } set { - experience_ = value; + fertilizerLevelUpCost_ = value; } } - /// Field number for the "currencies" field. - public const int CurrenciesFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_currencies_codec - = pb::FieldCodec.ForMessage(58, global::Protobuf.Messages.UserCurrency.Parser); - private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Currencies { - get { return currencies_; } - } - - /// Field number for the "units" field. - public const int UnitsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_units_codec - = pb::FieldCodec.ForMessage(66, global::Protobuf.Messages.Unit.Parser); - private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); + /// Field number for the "gold_level_up_cost" field. + public const int GoldLevelUpCostFieldNumber = 4; + private ulong goldLevelUpCost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Units { - get { return units_; } + public ulong GoldLevelUpCost { + get { return goldLevelUpCost_; } + set { + goldLevelUpCost_ = value; + } } - /// Field number for the "items" field. - public const int ItemsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(74, global::Protobuf.Messages.Item.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// Field number for the "unlock_features" field. + public const int UnlockFeaturesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_unlockFeatures_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField unlockFeatures_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } + public pbc::RepeatedField UnlockFeatures { + get { return unlockFeatures_; } } - /// Field number for the "kaline_tree_level" field. - public const int KalineTreeLevelFieldNumber = 10; - private global::Protobuf.Messages.KalineTreeLevel kalineTreeLevel_; + /// Field number for the "afk_reward_rates" field. + public const int AfkRewardRatesFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_afkRewardRates_codec + = pb::FieldCodec.ForMessage(50, global::Protobuf.Messages.AfkRewardRate.Parser); + private readonly pbc::RepeatedField afkRewardRates_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.KalineTreeLevel KalineTreeLevel { - get { return kalineTreeLevel_; } - set { - kalineTreeLevel_ = value; - } + public pbc::RepeatedField AfkRewardRates { + get { return afkRewardRates_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as User); + return Equals(other as KalineTreeLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(User other) { + public bool Equals(KalineTreeLevel other) { if (ReferenceEquals(other, null)) { return false; } @@ -7743,13 +8689,11 @@ public bool Equals(User other) { return true; } if (Id != other.Id) return false; - if (Username != other.Username) return false; if (Level != other.Level) return false; - if (Experience != other.Experience) return false; - if(!currencies_.Equals(other.currencies_)) return false; - if(!units_.Equals(other.units_)) return false; - if(!items_.Equals(other.items_)) return false; - if (!object.Equals(KalineTreeLevel, other.KalineTreeLevel)) return false; + if (FertilizerLevelUpCost != other.FertilizerLevelUpCost) return false; + if (GoldLevelUpCost != other.GoldLevelUpCost) return false; + if(!unlockFeatures_.Equals(other.unlockFeatures_)) return false; + if(!afkRewardRates_.Equals(other.afkRewardRates_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7758,13 +8702,11 @@ public bool Equals(User other) { public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Level != 0UL) hash ^= Level.GetHashCode(); - if (Experience != 0UL) hash ^= Experience.GetHashCode(); - hash ^= currencies_.GetHashCode(); - hash ^= units_.GetHashCode(); - hash ^= items_.GetHashCode(); - if (kalineTreeLevel_ != null) hash ^= KalineTreeLevel.GetHashCode(); + if (FertilizerLevelUpCost != 0UL) hash ^= FertilizerLevelUpCost.GetHashCode(); + if (GoldLevelUpCost != 0UL) hash ^= GoldLevelUpCost.GetHashCode(); + hash ^= unlockFeatures_.GetHashCode(); + hash ^= afkRewardRates_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7787,25 +8729,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Id); } - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } if (Level != 0UL) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt64(Level); } - if (Experience != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(Experience); + if (FertilizerLevelUpCost != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(FertilizerLevelUpCost); } - currencies_.WriteTo(output, _repeated_currencies_codec); - units_.WriteTo(output, _repeated_units_codec); - items_.WriteTo(output, _repeated_items_codec); - if (kalineTreeLevel_ != null) { - output.WriteRawTag(82); - output.WriteMessage(KalineTreeLevel); + if (GoldLevelUpCost != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(GoldLevelUpCost); } + unlockFeatures_.WriteTo(output, _repeated_unlockFeatures_codec); + afkRewardRates_.WriteTo(output, _repeated_afkRewardRates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7820,25 +8757,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Id); } - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } if (Level != 0UL) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt64(Level); } - if (Experience != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(Experience); + if (FertilizerLevelUpCost != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(FertilizerLevelUpCost); } - currencies_.WriteTo(ref output, _repeated_currencies_codec); - units_.WriteTo(ref output, _repeated_units_codec); - items_.WriteTo(ref output, _repeated_items_codec); - if (kalineTreeLevel_ != null) { - output.WriteRawTag(82); - output.WriteMessage(KalineTreeLevel); + if (GoldLevelUpCost != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(GoldLevelUpCost); } + unlockFeatures_.WriteTo(ref output, _repeated_unlockFeatures_codec); + afkRewardRates_.WriteTo(ref output, _repeated_afkRewardRates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7852,21 +8784,17 @@ public int CalculateSize() { if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Username.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); - } if (Level != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Level); } - if (Experience != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Experience); + if (FertilizerLevelUpCost != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FertilizerLevelUpCost); } - size += currencies_.CalculateSize(_repeated_currencies_codec); - size += units_.CalculateSize(_repeated_units_codec); - size += items_.CalculateSize(_repeated_items_codec); - if (kalineTreeLevel_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KalineTreeLevel); + if (GoldLevelUpCost != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(GoldLevelUpCost); } + size += unlockFeatures_.CalculateSize(_repeated_unlockFeatures_codec); + size += afkRewardRates_.CalculateSize(_repeated_afkRewardRates_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7875,31 +8803,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(User other) { + public void MergeFrom(KalineTreeLevel other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } - if (other.Username.Length != 0) { - Username = other.Username; - } if (other.Level != 0UL) { Level = other.Level; } - if (other.Experience != 0UL) { - Experience = other.Experience; + if (other.FertilizerLevelUpCost != 0UL) { + FertilizerLevelUpCost = other.FertilizerLevelUpCost; } - currencies_.Add(other.currencies_); - units_.Add(other.units_); - items_.Add(other.items_); - if (other.kalineTreeLevel_ != null) { - if (kalineTreeLevel_ == null) { - KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); - } - KalineTreeLevel.MergeFrom(other.KalineTreeLevel); + if (other.GoldLevelUpCost != 0UL) { + GoldLevelUpCost = other.GoldLevelUpCost; } + unlockFeatures_.Add(other.unlockFeatures_); + afkRewardRates_.Add(other.afkRewardRates_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7919,35 +8840,24 @@ public void MergeFrom(pb::CodedInputStream input) { Id = input.ReadString(); break; } - case 18: { - Username = input.ReadString(); + case 16: { + Level = input.ReadUInt64(); break; } case 24: { - Level = input.ReadUInt64(); + FertilizerLevelUpCost = input.ReadUInt64(); break; } case 32: { - Experience = input.ReadUInt64(); - break; - } - case 58: { - currencies_.AddEntriesFrom(input, _repeated_currencies_codec); - break; - } - case 66: { - units_.AddEntriesFrom(input, _repeated_units_codec); + GoldLevelUpCost = input.ReadUInt64(); break; } - case 74: { - items_.AddEntriesFrom(input, _repeated_items_codec); + case 42: { + unlockFeatures_.AddEntriesFrom(input, _repeated_unlockFeatures_codec); break; } - case 82: { - if (kalineTreeLevel_ == null) { - KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); - } - input.ReadMessage(KalineTreeLevel); + case 50: { + afkRewardRates_.AddEntriesFrom(input, _repeated_afkRewardRates_codec); break; } } @@ -7969,35 +8879,24 @@ public void MergeFrom(pb::CodedInputStream input) { Id = input.ReadString(); break; } - case 18: { - Username = input.ReadString(); + case 16: { + Level = input.ReadUInt64(); break; } case 24: { - Level = input.ReadUInt64(); + FertilizerLevelUpCost = input.ReadUInt64(); break; } case 32: { - Experience = input.ReadUInt64(); - break; - } - case 58: { - currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); - break; - } - case 66: { - units_.AddEntriesFrom(ref input, _repeated_units_codec); + GoldLevelUpCost = input.ReadUInt64(); break; } - case 74: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); + case 42: { + unlockFeatures_.AddEntriesFrom(ref input, _repeated_unlockFeatures_codec); break; } - case 82: { - if (kalineTreeLevel_ == null) { - KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); - } - input.ReadMessage(KalineTreeLevel); + case 50: { + afkRewardRates_.AddEntriesFrom(ref input, _repeated_afkRewardRates_codec); break; } } @@ -8008,21 +8907,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class KalineTreeLevel : pb::IMessage + public sealed partial class DungeonSettlementLevel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KalineTreeLevel()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DungeonSettlementLevel()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[26]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8033,7 +8932,7 @@ public sealed partial class KalineTreeLevel : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel() { + public DungeonSettlementLevel() { OnConstruction(); } @@ -8041,20 +8940,21 @@ public KalineTreeLevel() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel(KalineTreeLevel other) : this() { + public DungeonSettlementLevel(DungeonSettlementLevel other) : this() { id_ = other.id_; level_ = other.level_; - fertilizerLevelUpCost_ = other.fertilizerLevelUpCost_; - goldLevelUpCost_ = other.goldLevelUpCost_; - unlockFeatures_ = other.unlockFeatures_.Clone(); + levelUpCosts_ = other.levelUpCosts_.Clone(); + maxDungeon_ = other.maxDungeon_; + maxFactional_ = other.maxFactional_; + supplyLimit_ = other.supplyLimit_; afkRewardRates_ = other.afkRewardRates_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel Clone() { - return new KalineTreeLevel(this); + public DungeonSettlementLevel Clone() { + return new DungeonSettlementLevel(this); } /// Field number for the "id" field. @@ -8081,45 +8981,57 @@ public ulong Level { } } - /// Field number for the "fertilizer_level_up_cost" field. - public const int FertilizerLevelUpCostFieldNumber = 3; - private ulong fertilizerLevelUpCost_; + /// Field number for the "level_up_costs" field. + public const int LevelUpCostsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_levelUpCosts_codec + = pb::FieldCodec.ForMessage(26, global::Protobuf.Messages.CurrencyCost.Parser); + private readonly pbc::RepeatedField levelUpCosts_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong FertilizerLevelUpCost { - get { return fertilizerLevelUpCost_; } + public pbc::RepeatedField LevelUpCosts { + get { return levelUpCosts_; } + } + + /// Field number for the "max_dungeon" field. + public const int MaxDungeonFieldNumber = 4; + private ulong maxDungeon_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong MaxDungeon { + get { return maxDungeon_; } set { - fertilizerLevelUpCost_ = value; + maxDungeon_ = value; } } - /// Field number for the "gold_level_up_cost" field. - public const int GoldLevelUpCostFieldNumber = 4; - private ulong goldLevelUpCost_; + /// Field number for the "max_factional" field. + public const int MaxFactionalFieldNumber = 5; + private ulong maxFactional_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong GoldLevelUpCost { - get { return goldLevelUpCost_; } + public ulong MaxFactional { + get { return maxFactional_; } set { - goldLevelUpCost_ = value; + maxFactional_ = value; } } - /// Field number for the "unlock_features" field. - public const int UnlockFeaturesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_unlockFeatures_codec - = pb::FieldCodec.ForString(42); - private readonly pbc::RepeatedField unlockFeatures_ = new pbc::RepeatedField(); + /// Field number for the "supply_limit" field. + public const int SupplyLimitFieldNumber = 6; + private ulong supplyLimit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UnlockFeatures { - get { return unlockFeatures_; } + public ulong SupplyLimit { + get { return supplyLimit_; } + set { + supplyLimit_ = value; + } } /// Field number for the "afk_reward_rates" field. - public const int AfkRewardRatesFieldNumber = 6; + public const int AfkRewardRatesFieldNumber = 7; private static readonly pb::FieldCodec _repeated_afkRewardRates_codec - = pb::FieldCodec.ForMessage(50, global::Protobuf.Messages.AfkRewardRate.Parser); + = pb::FieldCodec.ForMessage(58, global::Protobuf.Messages.AfkRewardRate.Parser); private readonly pbc::RepeatedField afkRewardRates_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8130,12 +9042,12 @@ public ulong GoldLevelUpCost { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as KalineTreeLevel); + return Equals(other as DungeonSettlementLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KalineTreeLevel other) { + public bool Equals(DungeonSettlementLevel other) { if (ReferenceEquals(other, null)) { return false; } @@ -8144,9 +9056,10 @@ public bool Equals(KalineTreeLevel other) { } if (Id != other.Id) return false; if (Level != other.Level) return false; - if (FertilizerLevelUpCost != other.FertilizerLevelUpCost) return false; - if (GoldLevelUpCost != other.GoldLevelUpCost) return false; - if(!unlockFeatures_.Equals(other.unlockFeatures_)) return false; + if(!levelUpCosts_.Equals(other.levelUpCosts_)) return false; + if (MaxDungeon != other.MaxDungeon) return false; + if (MaxFactional != other.MaxFactional) return false; + if (SupplyLimit != other.SupplyLimit) return false; if(!afkRewardRates_.Equals(other.afkRewardRates_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8157,9 +9070,10 @@ public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Level != 0UL) hash ^= Level.GetHashCode(); - if (FertilizerLevelUpCost != 0UL) hash ^= FertilizerLevelUpCost.GetHashCode(); - if (GoldLevelUpCost != 0UL) hash ^= GoldLevelUpCost.GetHashCode(); - hash ^= unlockFeatures_.GetHashCode(); + hash ^= levelUpCosts_.GetHashCode(); + if (MaxDungeon != 0UL) hash ^= MaxDungeon.GetHashCode(); + if (MaxFactional != 0UL) hash ^= MaxFactional.GetHashCode(); + if (SupplyLimit != 0UL) hash ^= SupplyLimit.GetHashCode(); hash ^= afkRewardRates_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -8187,15 +9101,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteUInt64(Level); } - if (FertilizerLevelUpCost != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(FertilizerLevelUpCost); - } - if (GoldLevelUpCost != 0UL) { + levelUpCosts_.WriteTo(output, _repeated_levelUpCosts_codec); + if (MaxDungeon != 0UL) { output.WriteRawTag(32); - output.WriteUInt64(GoldLevelUpCost); + output.WriteUInt64(MaxDungeon); + } + if (MaxFactional != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(MaxFactional); + } + if (SupplyLimit != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(SupplyLimit); } - unlockFeatures_.WriteTo(output, _repeated_unlockFeatures_codec); afkRewardRates_.WriteTo(output, _repeated_afkRewardRates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8215,15 +9133,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(16); output.WriteUInt64(Level); } - if (FertilizerLevelUpCost != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(FertilizerLevelUpCost); - } - if (GoldLevelUpCost != 0UL) { + levelUpCosts_.WriteTo(ref output, _repeated_levelUpCosts_codec); + if (MaxDungeon != 0UL) { output.WriteRawTag(32); - output.WriteUInt64(GoldLevelUpCost); + output.WriteUInt64(MaxDungeon); + } + if (MaxFactional != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(MaxFactional); + } + if (SupplyLimit != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(SupplyLimit); } - unlockFeatures_.WriteTo(ref output, _repeated_unlockFeatures_codec); afkRewardRates_.WriteTo(ref output, _repeated_afkRewardRates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8241,13 +9163,16 @@ public int CalculateSize() { if (Level != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Level); } - if (FertilizerLevelUpCost != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FertilizerLevelUpCost); + size += levelUpCosts_.CalculateSize(_repeated_levelUpCosts_codec); + if (MaxDungeon != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxDungeon); } - if (GoldLevelUpCost != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(GoldLevelUpCost); + if (MaxFactional != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxFactional); + } + if (SupplyLimit != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SupplyLimit); } - size += unlockFeatures_.CalculateSize(_repeated_unlockFeatures_codec); size += afkRewardRates_.CalculateSize(_repeated_afkRewardRates_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8257,7 +9182,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KalineTreeLevel other) { + public void MergeFrom(DungeonSettlementLevel other) { if (other == null) { return; } @@ -8267,13 +9192,16 @@ public void MergeFrom(KalineTreeLevel other) { if (other.Level != 0UL) { Level = other.Level; } - if (other.FertilizerLevelUpCost != 0UL) { - FertilizerLevelUpCost = other.FertilizerLevelUpCost; + levelUpCosts_.Add(other.levelUpCosts_); + if (other.MaxDungeon != 0UL) { + MaxDungeon = other.MaxDungeon; } - if (other.GoldLevelUpCost != 0UL) { - GoldLevelUpCost = other.GoldLevelUpCost; + if (other.MaxFactional != 0UL) { + MaxFactional = other.MaxFactional; + } + if (other.SupplyLimit != 0UL) { + SupplyLimit = other.SupplyLimit; } - unlockFeatures_.Add(other.unlockFeatures_); afkRewardRates_.Add(other.afkRewardRates_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8298,19 +9226,23 @@ public void MergeFrom(pb::CodedInputStream input) { Level = input.ReadUInt64(); break; } - case 24: { - FertilizerLevelUpCost = input.ReadUInt64(); + case 26: { + levelUpCosts_.AddEntriesFrom(input, _repeated_levelUpCosts_codec); break; } case 32: { - GoldLevelUpCost = input.ReadUInt64(); + MaxDungeon = input.ReadUInt64(); break; } - case 42: { - unlockFeatures_.AddEntriesFrom(input, _repeated_unlockFeatures_codec); + case 40: { + MaxFactional = input.ReadUInt64(); break; } - case 50: { + case 48: { + SupplyLimit = input.ReadUInt64(); + break; + } + case 58: { afkRewardRates_.AddEntriesFrom(input, _repeated_afkRewardRates_codec); break; } @@ -8337,19 +9269,23 @@ public void MergeFrom(pb::CodedInputStream input) { Level = input.ReadUInt64(); break; } - case 24: { - FertilizerLevelUpCost = input.ReadUInt64(); + case 26: { + levelUpCosts_.AddEntriesFrom(ref input, _repeated_levelUpCosts_codec); break; } case 32: { - GoldLevelUpCost = input.ReadUInt64(); + MaxDungeon = input.ReadUInt64(); break; } - case 42: { - unlockFeatures_.AddEntriesFrom(ref input, _repeated_unlockFeatures_codec); + case 40: { + MaxFactional = input.ReadUInt64(); break; } - case 50: { + case 48: { + SupplyLimit = input.ReadUInt64(); + break; + } + case 58: { afkRewardRates_.AddEntriesFrom(ref input, _repeated_afkRewardRates_codec); break; } @@ -8375,7 +9311,7 @@ public sealed partial class SuperCampaignProgresses : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[29]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9128,7 +10064,7 @@ public sealed partial class UserCurrency : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[30]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9364,7 +10300,7 @@ public sealed partial class Currency : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[31]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9554,7 +10490,7 @@ public sealed partial class Unit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[32]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10075,7 +11011,7 @@ public sealed partial class Units : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[33]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10254,7 +11190,7 @@ public sealed partial class UnitAndCurrencies : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[34]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10479,7 +11415,7 @@ public sealed partial class Character : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[35]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10780,7 +11716,7 @@ public sealed partial class Item : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[36]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11127,7 +12063,7 @@ public sealed partial class ItemTemplate : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[37]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11391,7 +12327,7 @@ public sealed partial class Campaigns : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[38]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[41]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11570,7 +12506,7 @@ public sealed partial class Campaign : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[39]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[42]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11860,7 +12796,7 @@ public sealed partial class Level : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[40]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12250,7 +13186,7 @@ public sealed partial class CurrencyReward : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[41]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12486,7 +13422,7 @@ public sealed partial class AfkRewards : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[42]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12665,7 +13601,7 @@ public sealed partial class AfkReward : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[43]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12901,7 +13837,7 @@ public sealed partial class Error : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[44]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13091,7 +14027,7 @@ public sealed partial class Boxes : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[45]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13270,7 +14206,7 @@ public sealed partial class Box : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[46]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13612,7 +14548,7 @@ public sealed partial class RankWeights : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[47]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13839,7 +14775,7 @@ public sealed partial class CurrencyCost : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[48]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14075,7 +15011,7 @@ public sealed partial class UserAndUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[49]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14320,7 +15256,7 @@ public sealed partial class BattleResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[50]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14582,7 +15518,7 @@ public sealed partial class State : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[51]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14761,7 +15697,7 @@ public sealed partial class BattleUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[52]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15136,7 +16072,7 @@ public sealed partial class Step : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[53]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15352,7 +16288,7 @@ public sealed partial class Action : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[54]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16009,7 +16945,7 @@ public sealed partial class StatAffected : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[55]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16236,7 +17172,7 @@ public sealed partial class SkillAction : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[56]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16526,7 +17462,7 @@ public sealed partial class ExecutionReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[57]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16762,7 +17698,7 @@ public sealed partial class ModifierReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[58]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17072,7 +18008,7 @@ public sealed partial class TagReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[59]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17336,7 +18272,7 @@ public sealed partial class ModifierExpired : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[60]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[63]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17646,7 +18582,7 @@ public sealed partial class TagExpired : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[61]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[64]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17910,7 +18846,7 @@ public sealed partial class Death : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[62]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[65]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -18100,7 +19036,7 @@ public sealed partial class EnergyRegen : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[63]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[66]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -18364,7 +19300,7 @@ public sealed partial class StatOverride : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[64]; } + get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[67]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/client/Assets/Scripts/Shared/HeaderManager.cs b/client/Assets/Scripts/Shared/HeaderManager.cs index 3a28ed9e..0db687e8 100644 --- a/client/Assets/Scripts/Shared/HeaderManager.cs +++ b/client/Assets/Scripts/Shared/HeaderManager.cs @@ -28,6 +28,9 @@ public class HeaderManager : MonoBehaviour [SerializeField] TextMeshProUGUI fertilizer; + [SerializeField] + TextMeshProUGUI blueprints; + static GlobalUserData user; // static bool infoHasBeenSet = false; @@ -64,9 +67,9 @@ void UpdateCurrencyValues() { gold.text = user.GetCurrency("Gold").ToString(); gems.text = user.GetCurrency("Gems").ToString(); - scrolls.text = user.GetCurrency("SummonScrolls").ToString(); + scrolls.text = user.GetCurrency("Summon Scrolls").ToString(); fertilizer.text = user.GetCurrency("Fertilizer").ToString(); - scrolls.text = user.GetCurrency("SummonScrolls").ToString(); + blueprints.text = user.GetCurrency("Blueprints").ToString(); } void UpdateLevelValues() diff --git a/client/Assets/Scripts/User/DungeonSettlementLevel.cs b/client/Assets/Scripts/User/DungeonSettlementLevel.cs new file mode 100644 index 00000000..26470e37 --- /dev/null +++ b/client/Assets/Scripts/User/DungeonSettlementLevel.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; + +public class DungeonSettlementLevel +{ + public int level; + public List levelUpCosts; + public int maxDungeon; + public int maxFactional; + public int supplyLimit; + public List afkRewardRates; +} diff --git a/client/Assets/Scripts/User/DungeonSettlementLevel.cs.meta b/client/Assets/Scripts/User/DungeonSettlementLevel.cs.meta new file mode 100644 index 00000000..a1246029 --- /dev/null +++ b/client/Assets/Scripts/User/DungeonSettlementLevel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e77d152a61f664d3aafa4518cc2d8d48 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client/Assets/Scripts/User/User.cs b/client/Assets/Scripts/User/User.cs index eec8d568..1c7aabe6 100644 --- a/client/Assets/Scripts/User/User.cs +++ b/client/Assets/Scripts/User/User.cs @@ -17,6 +17,7 @@ public class User public Dictionary currencies; public KalineTreeLevel kalineTreeLevel; + public DungeonSettlementLevel dungeonSettlementLevel; public int level = 1; diff --git a/gateway.proto b/gateway.proto index de7d37dd..cca335e9 100644 --- a/gateway.proto +++ b/gateway.proto @@ -2,7 +2,7 @@ syntax = "proto3"; option csharp_namespace = "Protobuf.Messages"; - message WebSocketRequest { + message WebSocketRequest { oneof request_type { GetUser get_user = 1; GetUserByUsername get_user_by_username = 2; @@ -27,6 +27,8 @@ option csharp_namespace = "Protobuf.Messages"; ClaimAfkRewards claim_afk_rewards = 22; GetUserSuperCampaignProgresses get_user_super_campaign_progresses = 23; LevelUpKalineTree level_up_kaline_tree = 24; + ClaimDungeonAfkRewards claim_dungeon_afk_rewards = 25; + LevelUpDungeonSettlement level_up_dungeon_settlement = 26; } } @@ -138,6 +140,14 @@ option csharp_namespace = "Protobuf.Messages"; string user_id = 1; } + message ClaimDungeonAfkRewards { + string user_id = 1; + } + + message LevelUpDungeonSettlement { + string user_id = 1; + } + //////////////////////////////////////// message WebSocketResponse { @@ -169,6 +179,7 @@ option csharp_namespace = "Protobuf.Messages"; repeated Unit units = 8; repeated Item items = 9; KalineTreeLevel kaline_tree_level = 10; + DungeonSettlementLevel dungeon_settlement_level = 11; } message KalineTreeLevel { @@ -180,6 +191,16 @@ option csharp_namespace = "Protobuf.Messages"; repeated AfkRewardRate afk_reward_rates = 6; } + message DungeonSettlementLevel { + string id = 1; + uint64 level = 2; + repeated CurrencyCost level_up_costs = 3; + uint64 max_dungeon = 4; + uint64 max_factional = 5; + uint64 supply_limit = 6; + repeated AfkRewardRate afk_reward_rates = 7; + } + message SuperCampaignProgresses { repeated SuperCampaignProgress super_campaign_progresses = 1; }