y_hooks.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /**
  2. * <library name="y_hooks">
  3. * <section>
  4. * Description
  5. * </section>
  6. * Automatically hooks any callbacks with a very simple syntax.
  7. * <section>
  8. * Version
  9. * </section>
  10. * 2.0
  11. * </library>
  12. *//** *//*
  13. Legal:
  14. Version: MPL 1.1
  15. The contents of this file are subject to the Mozilla Public License Version
  16. 1.1 the "License"; you may not use this file except in compliance with
  17. the License. You may obtain a copy of the License at
  18. http://www.mozilla.org/MPL/
  19. Software distributed under the License is distributed on an "AS IS" basis,
  20. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  21. for the specific language governing rights and limitations under the
  22. License.
  23. The Original Code is the YSI framework.
  24. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  25. Portions created by the Initial Developer are Copyright C 2011
  26. the Initial Developer. All Rights Reserved.
  27. Contributors:
  28. Y_Less
  29. koolk
  30. JoeBullet/Google63
  31. g_aSlice/Slice
  32. Misiur
  33. samphunter
  34. tianmeta
  35. maddinat0r
  36. spacemud
  37. Crayder
  38. Dayvison
  39. Ahmad45123
  40. Zeex
  41. irinel1996
  42. Yiin-
  43. Chaprnks
  44. Konstantinos
  45. Masterchen09
  46. Southclaws
  47. PatchwerkQWER
  48. m0k1
  49. paulommu
  50. udan111
  51. Thanks:
  52. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  53. ZeeX - Very productive conversations.
  54. koolk - IsPlayerinAreaEx code.
  55. TheAlpha - Danish translation.
  56. breadfish - German translation.
  57. Fireburn - Dutch translation.
  58. yom - French translation.
  59. 50p - Polish translation.
  60. Zamaroht - Spanish translation.
  61. Los - Portuguese translation.
  62. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  63. me to strive to better.
  64. Pixels^ - Running XScripters where the idea was born.
  65. Matite - Pestering me to release it and using it.
  66. Very special thanks to:
  67. Thiadmer - PAWN, whose limits continue to amaze me!
  68. Kye/Kalcor - SA:MP.
  69. SA:MP Team past, present and future - SA:MP.
  70. Optional plugins:
  71. Gamer_Z - GPS.
  72. Incognito - Streamer.
  73. Me - sscanf2, fixes2, Whirlpool.
  74. */
  75. #if defined _inc_y_hooks
  76. #undef _inc_y_hooks
  77. #endif
  78. #if !defined _Y_UNIQUE_INCLUDED
  79. #tryinclude "..\YSI_Coding\y_unique\y_unique_entry"
  80. #endif
  81. #if !defined _Y_UNIQUE_INCLUDED
  82. #tryinclude "YSI_Coding\y_unique\y_unique_entry"
  83. #endif
  84. #if !defined _Y_UNIQUE_INCLUDED
  85. #tryinclude "YSI\YSI_Coding\y_unique\y_unique_entry"
  86. #endif
  87. #if !defined _Y_UNIQUE_INCLUDED
  88. #tryinclude <YSI_Coding\y_unique\y_unique_entry>
  89. #endif
  90. #if !defined _Y_UNIQUE_INCLUDED
  91. #tryinclude <YSI\YSI_Coding\y_unique\y_unique_entry>
  92. #endif
  93. #if defined _Y_UNIQUE_INCLUDED
  94. #undef _Y_UNIQUE_INCLUDED
  95. #else
  96. #error Did you use `YSI/y_hooks` instead of `YSI\y_hooks`?
  97. #endif
  98. #if !defined _INC_y_hooks
  99. #tryinclude "y_hooks\y_hooks_entry"
  100. #endif
  101. #if !defined _INC_y_hooks
  102. #tryinclude "YSI_Coding\y_hooks\y_hooks_entry"
  103. #endif
  104. #if !defined _INC_y_hooks
  105. #tryinclude "YSI\YSI_Coding\y_hooks\y_hooks_entry"
  106. #endif
  107. #if !defined _INC_y_hooks
  108. #tryinclude <YSI_Coding\y_hooks\y_hooks_entry>
  109. #endif
  110. #if !defined _INC_y_hooks
  111. #tryinclude <YSI\YSI_Coding\y_hooks\y_hooks_entry>
  112. #endif
  113. #if !defined _INC_y_hooks
  114. #error Could not find y_hooks
  115. #endif