Advertisement
Sc2ad

dnSpy Original Method IL

Mar 27th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.91 KB | None | 0 0
  1. // Token: 0x0600087F RID: 2175 RVA: 0x000447B4 File Offset: 0x000429B4
  2. .method private hidebysig
  3. instance void TriggerClickDownEvent (
  4. string eventName,
  5. class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>& clickInfosContainer
  6. ) cil managed
  7. {
  8. // Header Size: 12 bytes
  9. // Code Size: 448 (0x1C0) bytes
  10. // LocalVarSig Token: 0x11000208 RID: 520
  11. .maxstack 38
  12. .locals init (
  13. [0] valuetype [UnityEngine]UnityEngine.LayerMask,
  14. [1] valuetype [UnityEngine]UnityEngine.RaycastHit[],
  15. [2] class ['Assembly-CSharp-firstpass']ClickDownInfo,
  16. [3] int32,
  17. [4] valuetype [UnityEngine]UnityEngine.RaycastHit,
  18. [5] valuetype [UnityEngine]UnityEngine.RaycastHit[],
  19. [6] int32,
  20. [7] class ['Assembly-CSharp-firstpass']ClickDownInfo,
  21. [8] valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class ['Assembly-CSharp-firstpass']ClickDownInfo>
  22. )
  23.  
  24. /* 0x000429C0 02 */ IL_0000: ldarg.0
  25. /* 0x000429C1 16 */ IL_0001: ldc.i4.0
  26. /* 0x000429C2 7D3D060004 */ IL_0002: stfld bool InputManager::stopClickEventPropagation
  27. /* 0x000429C7 02 */ IL_0007: ldarg.0
  28. /* 0x000429C8 7B5B060004 */ IL_0008: ldfld class IGameCameraService InputManager::gameCameraManager
  29. /* 0x000429CD 6F8E1B0006 */ IL_000D: callvirt instance bool IGameCameraService::IsTacticalMapActive()
  30. /* 0x000429D2 390B000000 */ IL_0012: brfalse IL_0022
  31.  
  32. /* 0x000429D7 02 */ IL_0017: ldarg.0
  33. /* 0x000429D8 7B3C060004 */ IL_0018: ldfld valuetype [UnityEngine]UnityEngine.LayerMask InputManager::tacticalMapClickLayerMask
  34. /* 0x000429DD 3806000000 */ IL_001D: br IL_0028
  35.  
  36. /* 0x000429E2 02 */ IL_0022: ldarg.0
  37. /* 0x000429E3 7B3B060004 */ IL_0023: ldfld valuetype [UnityEngine]UnityEngine.LayerMask InputManager::gameMouseClickLayerMask
  38.  
  39. /* 0x000429E8 0A */ IL_0028: stloc.0
  40. /* 0x000429E9 02 */ IL_0029: ldarg.0
  41. /* 0x000429EA 7B5B060004 */ IL_002A: ldfld class IGameCameraService InputManager::gameCameraManager
  42. /* 0x000429EF 28C804000A */ IL_002F: call valuetype [UnityEngine]UnityEngine.Vector3 [UnityEngine]UnityEngine.Input::get_mousePosition()
  43. /* 0x000429F4 6F821B0006 */ IL_0034: callvirt instance valuetype [UnityEngine]UnityEngine.Ray IGameCameraService::ScreenPointToRay(valuetype [UnityEngine]UnityEngine.Vector3)
  44. /* 0x000429F9 220000807F */ IL_0039: ldc.r4 (00 00 80 7F)
  45. /* 0x000429FE 06 */ IL_003E: ldloc.0
  46. /* 0x000429FF 284A00000A */ IL_003F: call int32 [UnityEngine]UnityEngine.LayerMask::op_Implicit(valuetype [UnityEngine]UnityEngine.LayerMask)
  47. /* 0x00042A04 28C904000A */ IL_0044: call valuetype [UnityEngine]UnityEngine.RaycastHit[] [UnityEngine]UnityEngine.Physics::RaycastAll(valuetype [UnityEngine]UnityEngine.Ray, float32, int32)
  48. /* 0x00042A09 0B */ IL_0049: stloc.1
  49. /* 0x00042A0A 07 */ IL_004A: ldloc.1
  50. /* 0x00042A0B 7E74060004 */ IL_004B: ldsfld class [mscorlib]System.Comparison`1<valuetype [UnityEngine]UnityEngine.RaycastHit> InputManager::'<>f__am$cache3E'
  51. /* 0x00042A10 2D11 */ IL_0050: brtrue.s IL_0063
  52.  
  53. /* 0x00042A12 14 */ IL_0052: ldnull
  54. /* 0x00042A13 FE06A7080006 */ IL_0053: ldftn int32 InputManager::'<TriggerClickDownEvent>m__2E'(valuetype [UnityEngine]UnityEngine.RaycastHit, valuetype [UnityEngine]UnityEngine.RaycastHit)
  55. /* 0x00042A19 73CA04000A */ IL_0059: newobj instance void class [mscorlib]System.Comparison`1<valuetype [UnityEngine]UnityEngine.RaycastHit>::.ctor(object, native int)
  56. /* 0x00042A1E 8074060004 */ IL_005E: stsfld class [mscorlib]System.Comparison`1<valuetype [UnityEngine]UnityEngine.RaycastHit> InputManager::'<>f__am$cache3E'
  57.  
  58. /* 0x00042A23 7E74060004 */ IL_0063: ldsfld class [mscorlib]System.Comparison`1<valuetype [UnityEngine]UnityEngine.RaycastHit> InputManager::'<>f__am$cache3E'
  59. /* 0x00042A28 284200002B */ IL_0068: call void [mscorlib]System.Array::Sort<valuetype [UnityEngine]UnityEngine.RaycastHit>(!!0[], class [mscorlib]System.Comparison`1<!!0>)
  60. /* 0x00042A2D 02 */ IL_006D: ldarg.0
  61. /* 0x00042A2E 7B50060004 */ IL_006E: ldfld bool InputManager::debug
  62. /* 0x00042A33 3935000000 */ IL_0073: brfalse IL_00AD
  63.  
  64. /* 0x00042A38 1A */ IL_0078: ldc.i4.4
  65. /* 0x00042A39 8D12000001 */ IL_0079: newarr [mscorlib]System.Object
  66. /* 0x00042A3E 25 */ IL_007E: dup
  67. /* 0x00042A3F 16 */ IL_007F: ldc.i4.0
  68. /* 0x00042A40 03 */ IL_0080: ldarg.1
  69. /* 0x00042A41 A2 */ IL_0081: stelem.ref
  70. /* 0x00042A42 25 */ IL_0082: dup
  71. /* 0x00042A43 17 */ IL_0083: ldc.i4.1
  72. /* 0x00042A44 72F5320070 */ IL_0084: ldstr " > "
  73. /* 0x00042A49 A2 */ IL_0089: stelem.ref
  74. /* 0x00042A4A 25 */ IL_008A: dup
  75. /* 0x00042A4B 18 */ IL_008B: ldc.i4.2
  76. /* 0x00042A4C 07 */ IL_008C: ldloc.1
  77. /* 0x00042A4D 8E */ IL_008D: ldlen
  78. /* 0x00042A4E 69 */ IL_008E: conv.i4
  79. /* 0x00042A4F 8C22000001 */ IL_008F: box [mscorlib]System.Int32
  80. /* 0x00042A54 A2 */ IL_0094: stelem.ref
  81. /* 0x00042A55 25 */ IL_0095: dup
  82. /* 0x00042A56 19 */ IL_0096: ldc.i4.3
  83. /* 0x00042A57 722AB20070 */ IL_0097: ldstr " hits"
  84. /* 0x00042A5C A2 */ IL_009C: stelem.ref
  85. /* 0x00042A5D 28A100000A */ IL_009D: call string [mscorlib]System.String::Concat(object[])
  86. /* 0x00042A62 16 */ IL_00A2: ldc.i4.0
  87. /* 0x00042A63 8D12000001 */ IL_00A3: newarr [mscorlib]System.Object
  88. /* 0x00042A68 288604000A */ IL_00A8: call void ['Assembly-CSharp-firstpass']Amplitude.Diagnostics::LogWarning(string, object[])
  89.  
  90. /* 0x00042A6D 04 */ IL_00AD: ldarg.2
  91. /* 0x00042A6E 73CC04000A */ IL_00AE: newobj instance void class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>::.ctor()
  92. /* 0x00042A73 51 */ IL_00B3: stind.ref
  93. /* 0x00042A74 16 */ IL_00B4: ldc.i4.0
  94. /* 0x00042A75 0D */ IL_00B5: stloc.3
  95. /* 0x00042A76 07 */ IL_00B6: ldloc.1
  96. /* 0x00042A77 1305 */ IL_00B7: stloc.s V_5
  97. /* 0x00042A79 16 */ IL_00B9: ldc.i4.0
  98. /* 0x00042A7A 1306 */ IL_00BA: stloc.s V_6
  99. /* 0x00042A7C 3836000000 */ IL_00BC: br IL_00F7
  100. // loop start (head: IL_00F7)
  101. /* 0x00042A81 1105 */ IL_00C1: ldloc.s V_5
  102. /* 0x00042A83 1106 */ IL_00C3: ldloc.s V_6
  103. /* 0x00042A85 8F1B000001 */ IL_00C5: ldelema [UnityEngine]UnityEngine.RaycastHit
  104. /* 0x00042A8A 711B000001 */ IL_00CA: ldobj [UnityEngine]UnityEngine.RaycastHit
  105. /* 0x00042A8F 1304 */ IL_00CF: stloc.s V_4
  106. /* 0x00042A91 1204 */ IL_00D1: ldloca.s V_4
  107. /* 0x00042A93 28CD04000A */ IL_00D3: call instance class [UnityEngine]UnityEngine.Collider [UnityEngine]UnityEngine.RaycastHit::get_collider()
  108. /* 0x00042A98 1204 */ IL_00D8: ldloca.s V_4
  109. /* 0x00042A9A 284D00000A */ IL_00DA: call instance valuetype [UnityEngine]UnityEngine.Vector3 [UnityEngine]UnityEngine.RaycastHit::get_point()
  110. /* 0x00042A9F 09 */ IL_00DF: ldloc.3
  111. /* 0x00042AA0 07 */ IL_00E0: ldloc.1
  112. /* 0x00042AA1 8E */ IL_00E1: ldlen
  113. /* 0x00042AA2 69 */ IL_00E2: conv.i4
  114. /* 0x00042AA3 73CE04000A */ IL_00E3: newobj instance void ['Assembly-CSharp-firstpass']ClickDownInfo::.ctor(class [UnityEngine]UnityEngine.Collider, valuetype [UnityEngine]UnityEngine.Vector3, int32, int32)
  115. /* 0x00042AA8 0C */ IL_00E8: stloc.2
  116. /* 0x00042AA9 04 */ IL_00E9: ldarg.2
  117. /* 0x00042AAA 50 */ IL_00EA: ldind.ref
  118. /* 0x00042AAB 08 */ IL_00EB: ldloc.2
  119. /* 0x00042AAC 6FCF04000A */ IL_00EC: callvirt instance void class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>::Add(!0)
  120. /* 0x00042AB1 1106 */ IL_00F1: ldloc.s V_6
  121. /* 0x00042AB3 17 */ IL_00F3: ldc.i4.1
  122. /* 0x00042AB4 58 */ IL_00F4: add
  123. /* 0x00042AB5 1306 */ IL_00F5: stloc.s V_6
  124.  
  125. /* 0x00042AB7 1106 */ IL_00F7: ldloc.s V_6
  126. /* 0x00042AB9 1105 */ IL_00F9: ldloc.s V_5
  127. /* 0x00042ABB 8E */ IL_00FB: ldlen
  128. /* 0x00042ABC 69 */ IL_00FC: conv.i4
  129. /* 0x00042ABD 3FBFFFFFFF */ IL_00FD: blt IL_00C1
  130. // end loop
  131.  
  132. /* 0x00042AC2 04 */ IL_0102: ldarg.2
  133. /* 0x00042AC3 50 */ IL_0103: ldind.ref
  134. /* 0x00042AC4 6FD004000A */ IL_0104: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>::GetEnumerator()
  135. /* 0x00042AC9 1308 */ IL_0109: stloc.s V_8
  136. .try
  137. {
  138. /* 0x00042ACB 3891000000 */ IL_010B: br IL_01A1
  139. // loop start (head: IL_01A1)
  140. /* 0x00042AD0 1208 */ IL_0110: ldloca.s V_8
  141. /* 0x00042AD2 28D104000A */ IL_0112: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class ['Assembly-CSharp-firstpass']ClickDownInfo>::get_Current()
  142. /* 0x00042AD7 1307 */ IL_0117: stloc.s V_7
  143. /* 0x00042AD9 02 */ IL_0119: ldarg.0
  144. /* 0x00042ADA 7B50060004 */ IL_011A: ldfld bool InputManager::debug
  145. /* 0x00042ADF 3959000000 */ IL_011F: brfalse IL_017D
  146.  
  147. /* 0x00042AE4 1D */ IL_0124: ldc.i4.7
  148. /* 0x00042AE5 8D12000001 */ IL_0125: newarr [mscorlib]System.Object
  149. /* 0x00042AEA 25 */ IL_012A: dup
  150. /* 0x00042AEB 16 */ IL_012B: ldc.i4.0
  151. /* 0x00042AEC 03 */ IL_012C: ldarg.1
  152. /* 0x00042AED A2 */ IL_012D: stelem.ref
  153. /* 0x00042AEE 25 */ IL_012E: dup
  154. /* 0x00042AEF 17 */ IL_012F: ldc.i4.1
  155. /* 0x00042AF0 7236B20070 */ IL_0130: ldstr "@"
  156. /* 0x00042AF5 A2 */ IL_0135: stelem.ref
  157. /* 0x00042AF6 25 */ IL_0136: dup
  158. /* 0x00042AF7 18 */ IL_0137: ldc.i4.2
  159. /* 0x00042AF8 09 */ IL_0138: ldloc.3
  160. /* 0x00042AF9 8C22000001 */ IL_0139: box [mscorlib]System.Int32
  161. /* 0x00042AFE A2 */ IL_013E: stelem.ref
  162. /* 0x00042AFF 25 */ IL_013F: dup
  163. /* 0x00042B00 19 */ IL_0140: ldc.i4.3
  164. /* 0x00042B01 723AB20070 */ IL_0141: ldstr "="
  165. /* 0x00042B06 A2 */ IL_0146: stelem.ref
  166. /* 0x00042B07 25 */ IL_0147: dup
  167. /* 0x00042B08 1A */ IL_0148: ldc.i4.4
  168. /* 0x00042B09 1107 */ IL_0149: ldloc.s V_7
  169. /* 0x00042B0B 6FD204000A */ IL_014B: callvirt instance class [UnityEngine]UnityEngine.Collider ['Assembly-CSharp-firstpass']ClickDownInfo::get_HitCollider()
  170. /* 0x00042B10 6F2601000A */ IL_0150: callvirt instance string [UnityEngine]UnityEngine.Object::get_name()
  171. /* 0x00042B15 A2 */ IL_0155: stelem.ref
  172. /* 0x00042B16 25 */ IL_0156: dup
  173. /* 0x00042B17 1B */ IL_0157: ldc.i4.5
  174. /* 0x00042B18 723EB20070 */ IL_0158: ldstr " @"
  175. /* 0x00042B1D A2 */ IL_015D: stelem.ref
  176. /* 0x00042B1E 25 */ IL_015E: dup
  177. /* 0x00042B1F 1C */ IL_015F: ldc.i4.6
  178. /* 0x00042B20 1107 */ IL_0160: ldloc.s V_7
  179. /* 0x00042B22 6FD304000A */ IL_0162: callvirt instance valuetype [UnityEngine]UnityEngine.Vector3 ['Assembly-CSharp-firstpass']ClickDownInfo::get_WorldPosition()
  180. /* 0x00042B27 8C0C000001 */ IL_0167: box [UnityEngine]UnityEngine.Vector3
  181. /* 0x00042B2C A2 */ IL_016C: stelem.ref
  182. /* 0x00042B2D 28A100000A */ IL_016D: call string [mscorlib]System.String::Concat(object[])
  183. /* 0x00042B32 16 */ IL_0172: ldc.i4.0
  184. /* 0x00042B33 8D12000001 */ IL_0173: newarr [mscorlib]System.Object
  185. /* 0x00042B38 284304000A */ IL_0178: call void ['Assembly-CSharp-firstpass']Amplitude.Diagnostics::Log(string, object[])
  186.  
  187. /* 0x00042B3D 1107 */ IL_017D: ldloc.s V_7
  188. /* 0x00042B3F 6FD204000A */ IL_017F: callvirt instance class [UnityEngine]UnityEngine.Collider ['Assembly-CSharp-firstpass']ClickDownInfo::get_HitCollider()
  189. /* 0x00042B44 03 */ IL_0184: ldarg.1
  190. /* 0x00042B45 1107 */ IL_0185: ldloc.s V_7
  191. /* 0x00042B47 17 */ IL_0187: ldc.i4.1
  192. /* 0x00042B48 6FD404000A */ IL_0188: callvirt instance void [UnityEngine]UnityEngine.Component::SendMessage(string, object, valuetype [UnityEngine]UnityEngine.SendMessageOptions)
  193. /* 0x00042B4D 09 */ IL_018D: ldloc.3
  194. /* 0x00042B4E 17 */ IL_018E: ldc.i4.1
  195. /* 0x00042B4F 58 */ IL_018F: add
  196. /* 0x00042B50 0D */ IL_0190: stloc.3
  197. /* 0x00042B51 02 */ IL_0191: ldarg.0
  198. /* 0x00042B52 7B3D060004 */ IL_0192: ldfld bool InputManager::stopClickEventPropagation
  199. /* 0x00042B57 3905000000 */ IL_0197: brfalse IL_01A1
  200.  
  201. /* 0x00042B5C 380C000000 */ IL_019C: br IL_01AD
  202.  
  203. /* 0x00042B61 1208 */ IL_01A1: ldloca.s V_8
  204. /* 0x00042B63 28D504000A */ IL_01A3: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class ['Assembly-CSharp-firstpass']ClickDownInfo>::MoveNext()
  205. /* 0x00042B68 3A63FFFFFF */ IL_01A8: brtrue IL_0110
  206. // end loop
  207.  
  208. /* 0x00042B6D DD0D000000 */ IL_01AD: leave IL_01BF
  209. } // end .try
  210. finally
  211. {
  212. /* 0x00042B72 1108 */ IL_01B2: ldloc.s V_8
  213. /* 0x00042B74 8CA900001B */ IL_01B4: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class ['Assembly-CSharp-firstpass']ClickDownInfo>
  214. /* 0x00042B79 6FD400000A */ IL_01B9: callvirt instance void [mscorlib]System.IDisposable::Dispose()
  215. /* 0x00042B7E DC */ IL_01BE: endfinally
  216. } // end handler
  217.  
  218. /* 0x00042B7F 2A */ IL_01BF: ret
  219. } // end of method InputManager::TriggerClickDownEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement