Advertisement
Sc2ad

IL dnSpy of Hero.OnRightClickDown

Feb 8th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. // Token: 0x06000EAB RID: 3755 RVA: 0x0006C1E4 File Offset: 0x0006A3E4
  2. .method private hidebysig
  3. instance void OnRightClickDown (
  4. class ['Assembly-CSharp-firstpass']ClickDownInfo clickInfo
  5. ) cil managed
  6. {
  7. // Header Size: 12 bytes
  8. // Code Size: 241 (0xF1) bytes
  9. // LocalVarSig Token: 0x1100032B RID: 811
  10. .maxstack 41
  11. .locals init (
  12. [0] class Hero,
  13. [1] valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>,
  14. [2] class Hero,
  15. [3] valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>
  16. )
  17.  
  18. /* 0x0006A3F0 7E540D0004 */ IL_0000: ldsfld class [mscorlib]System.Collections.Generic.List`1<class Hero> Hero::selectedHeroes
  19. /* 0x0006A3F5 6F9B04000A */ IL_0005: callvirt instance int32 class [mscorlib]System.Collections.Generic.List`1<class Hero>::get_Count()
  20. /* 0x0006A3FA 16 */ IL_000A: ldc.i4.0
  21. /* 0x0006A3FB 3EAF000000 */ IL_000B: ble IL_00BF
  22.  
  23. /* 0x0006A400 02 */ IL_0010: ldarg.0
  24. /* 0x0006A401 284B0E0006 */ IL_0011: call instance bool Hero::get_IsRecruited()
  25. /* 0x0006A406 3A4C000000 */ IL_0016: brtrue IL_0067
  26.  
  27. /* 0x0006A40B 02 */ IL_001B: ldarg.0
  28. /* 0x0006A40C 284F0E0006 */ IL_001C: call instance bool Hero::get_IsDismissing()
  29. /* 0x0006A411 3A41000000 */ IL_0021: brtrue IL_0067
  30.  
  31. /* 0x0006A416 7E540D0004 */ IL_0026: ldsfld class [mscorlib]System.Collections.Generic.List`1<class Hero> Hero::selectedHeroes
  32. /* 0x0006A41B 6F6305000A */ IL_002B: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<class Hero>::GetEnumerator()
  33. /* 0x0006A420 0B */ IL_0030: stloc.1
  34. .try
  35. {
  36. /* 0x0006A421 380F000000 */ IL_0031: br IL_0045
  37. // loop start (head: IL_0045)
  38. /* 0x0006A426 1201 */ IL_0036: ldloca.s V_1
  39. /* 0x0006A428 286405000A */ IL_0038: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>::get_Current()
  40. /* 0x0006A42D 0A */ IL_003D: stloc.0
  41. /* 0x0006A42E 06 */ IL_003E: ldloc.0
  42. /* 0x0006A42F 02 */ IL_003F: ldarg.0
  43. /* 0x0006A430 6F0D0E0006 */ IL_0040: callvirt instance void Hero::MoveToHero(class Hero)
  44.  
  45. /* 0x0006A435 1201 */ IL_0045: ldloca.s V_1
  46. /* 0x0006A437 286505000A */ IL_0047: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>::MoveNext()
  47. /* 0x0006A43C 3AE5FFFFFF */ IL_004C: brtrue IL_0036
  48. // end loop
  49.  
  50. /* 0x0006A441 DD0C000000 */ IL_0051: leave IL_0062
  51. } // end .try
  52. finally
  53. {
  54. /* 0x0006A446 07 */ IL_0056: ldloc.1
  55. /* 0x0006A447 8CB600001B */ IL_0057: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>
  56. /* 0x0006A44C 6FD400000A */ IL_005C: callvirt instance void [mscorlib]System.IDisposable::Dispose()
  57. /* 0x0006A451 DC */ IL_0061: endfinally
  58. } // end handler
  59.  
  60. /* 0x0006A452 3849000000 */ IL_0062: br IL_00B0
  61.  
  62. /* 0x0006A457 7E540D0004 */ IL_0067: ldsfld class [mscorlib]System.Collections.Generic.List`1<class Hero> Hero::selectedHeroes
  63. /* 0x0006A45C 6F6305000A */ IL_006C: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<class Hero>::GetEnumerator()
  64. /* 0x0006A461 0D */ IL_0071: stloc.3
  65. .try
  66. {
  67. /* 0x0006A462 381C000000 */ IL_0072: br IL_0093
  68. // loop start (head: IL_0093)
  69. /* 0x0006A467 1203 */ IL_0077: ldloca.s V_3
  70. /* 0x0006A469 286405000A */ IL_0079: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>::get_Current()
  71. /* 0x0006A46E 0C */ IL_007E: stloc.2
  72. /* 0x0006A46F 08 */ IL_007F: ldloc.2
  73. /* 0x0006A470 02 */ IL_0080: ldarg.0
  74. /* 0x0006A471 28B40E0006 */ IL_0081: call instance class RoomElement HeroMobCommon::get_RoomElement()
  75. /* 0x0006A476 6FB5110006 */ IL_0086: callvirt instance class Room RoomElement::get_ParentRoom()
  76. /* 0x0006A47B 16 */ IL_008B: ldc.i4.0
  77. /* 0x0006A47C 17 */ IL_008C: ldc.i4.1
  78. /* 0x0006A47D 17 */ IL_008D: ldc.i4.1
  79. /* 0x0006A47E 6F0B0E0006 */ IL_008E: callvirt instance void Hero::MoveToRoom(class Room, bool, bool, bool)
  80.  
  81. /* 0x0006A483 1203 */ IL_0093: ldloca.s V_3
  82. /* 0x0006A485 286505000A */ IL_0095: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>::MoveNext()
  83. /* 0x0006A48A 3AD8FFFFFF */ IL_009A: brtrue IL_0077
  84. // end loop
  85.  
  86. /* 0x0006A48F DD0C000000 */ IL_009F: leave IL_00B0
  87. } // end .try
  88. finally
  89. {
  90. /* 0x0006A494 09 */ IL_00A4: ldloc.3
  91. /* 0x0006A495 8CB600001B */ IL_00A5: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<class Hero>
  92. /* 0x0006A49A 6FD400000A */ IL_00AA: callvirt instance void [mscorlib]System.IDisposable::Dispose()
  93. /* 0x0006A49F DC */ IL_00AF: endfinally
  94. } // end handler
  95.  
  96. /* 0x0006A4A0 282F00002B */ IL_00B0: call !!0 ['Assembly-CSharp-firstpass']Amplitude.Unity.Framework.Services::GetService<class ['Assembly-CSharp-firstpass']IInputService>()
  97. /* 0x0006A4A5 6F3B08000A */ IL_00B5: callvirt instance void ['Assembly-CSharp-firstpass']IInputService::StopClickEventPropagation()
  98. /* 0x0006A4AA 3831000000 */ IL_00BA: br IL_00F0
  99.  
  100. /* 0x0006A4AF 02 */ IL_00BF: ldarg.0
  101. /* 0x0006A4B0 284B0E0006 */ IL_00C0: call instance bool Hero::get_IsRecruited()
  102. /* 0x0006A4B5 3A26000000 */ IL_00C5: brtrue IL_00F0
  103.  
  104. /* 0x0006A4BA 7E520D0004 */ IL_00CA: ldsfld class [mscorlib]System.Collections.Generic.List`1<class Hero> Hero::localPlayerActiveRecruitedHeroes
  105. /* 0x0006A4BF 6F9B04000A */ IL_00CF: callvirt instance int32 class [mscorlib]System.Collections.Generic.List`1<class Hero>::get_Count()
  106. /* 0x0006A4C4 17 */ IL_00D4: ldc.i4.1
  107. /* 0x0006A4C5 3C16000000 */ IL_00D5: bge IL_00F0
  108.  
  109. /* 0x0006A4CA 02 */ IL_00DA: ldarg.0
  110. /* 0x0006A4CB 7BBC0D0004 */ IL_00DB: ldfld class GameNetworkManager HeroMobCommon::gameNetManager
  111. /* 0x0006A4D0 6F941A0006 */ IL_00E0: callvirt instance bool GameNetworkManager::IsMultiplayerSession()
  112. /* 0x0006A4D5 3906000000 */ IL_00E5: brfalse IL_00F0
  113.  
  114. /* 0x0006A4DA 02 */ IL_00EA: ldarg.0
  115. /* 0x0006A4DB 28940E0006 */ IL_00EB: call instance void Hero::DisplayRecruitmentDialog()
  116.  
  117. /* 0x0006A4E0 2A */ IL_00F0: ret
  118. } // end of method Hero::OnRightClickDown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement