y_classes_entry.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #if defined _INC_y_classes
  2. #endinput
  3. #endif
  4. #define _INC_y_classes
  5. /*
  6. Legal:
  7. Version: MPL 1.1
  8. The contents of this file are subject to the Mozilla Public License Version
  9. 1.1 the "License"; you may not use this file except in compliance with
  10. the License. You may obtain a copy of the License at
  11. http://www.mozilla.org/MPL/
  12. Software distributed under the License is distributed on an "AS IS" basis,
  13. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14. for the specific language governing rights and limitations under the
  15. License.
  16. The Original Code is the YSI framework.
  17. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  18. Portions created by the Initial Developer are Copyright C 2011
  19. the Initial Developer. All Rights Reserved.
  20. Contributors:
  21. Y_Less
  22. koolk
  23. JoeBullet/Google63
  24. g_aSlice/Slice
  25. Misiur
  26. samphunter
  27. tianmeta
  28. maddinat0r
  29. spacemud
  30. Crayder
  31. Dayvison
  32. Ahmad45123
  33. Zeex
  34. irinel1996
  35. Yiin-
  36. Chaprnks
  37. Konstantinos
  38. Masterchen09
  39. Southclaws
  40. PatchwerkQWER
  41. m0k1
  42. paulommu
  43. udan111
  44. Thanks:
  45. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  46. ZeeX - Very productive conversations.
  47. koolk - IsPlayerinAreaEx code.
  48. TheAlpha - Danish translation.
  49. breadfish - German translation.
  50. Fireburn - Dutch translation.
  51. yom - French translation.
  52. 50p - Polish translation.
  53. Zamaroht - Spanish translation.
  54. Los - Portuguese translation.
  55. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  56. me to strive to better.
  57. Pixels^ - Running XScripters where the idea was born.
  58. Matite - Pestering me to release it and using it.
  59. Very special thanks to:
  60. Thiadmer - PAWN, whose limits continue to amaze me!
  61. Kye/Kalcor - SA:MP.
  62. SA:MP Team past, present and future - SA:MP.
  63. Optional plugins:
  64. Gamer_Z - GPS.
  65. Incognito - Streamer.
  66. Me - sscanf2, fixes2, Whirlpool.
  67. */
  68. #include "..\..\YSI_Core\y_utils"
  69. stock _YSI_HAS_y_classes(_do_not_call_me_ever_, _like_never_)
  70. {
  71. P:E("You called _YSI_HAS_y_classes! Bad, don't do that!", _do_not_call_me_ever_, _like_never_);
  72. assert(false);
  73. return 0;
  74. }
  75. #if !defined MAX_CLASSES
  76. #define MAX_CLASSES (512)
  77. #endif
  78. #if !defined MAX_CLASS_SPAWN_WEAPONS
  79. #define MAX_CLASS_SPAWN_WEAPONS (13)
  80. #endif
  81. #if !defined WEAPON_ARMOUR
  82. #define WEAPON_ARMOUR (100)
  83. #endif
  84. #define INFINATE_ARMOUR (0x00800000)
  85. #include "..\..\YSI_Data\y_bit"
  86. #include "..\..\YSI_Data\y_iterate"
  87. #include "..\..\YSI_Data\y_playerarray"
  88. #include "..\..\YSI_Data\y_iterate"
  89. #define Y_CLASSES_GROUP_NAME<%0...%1> %0Class%1
  90. #define Y_CLASSES_GROUP_LIMIT MAX_CLASSES
  91. #define Y_CLASSES_GROUP_TAG _
  92. #include "..\..\YSI_Players\y_groups\y_groups__include"
  93. CHAIN_HOOK(Class)
  94. #undef CHAIN_ORDER
  95. #define CHAIN_ORDER CHAIN_NEXT(Class)
  96. #define MASTER 61
  97. #define YSIM_U_DISABLE
  98. #include "..\..\YSI_Core\y_master"
  99. #include "..\..\YSI_Coding\y_hooks"
  100. #include "y_classes_classcontrol"
  101. #include "..\..\YSI_Coding\y_hooks"
  102. #include "y_classes_multiclass"
  103. #if defined YSI_TESTS
  104. #include "y_classes_tests"
  105. #endif
  106. #if defined _INC_y_groups
  107. #include "y_classes_classgroups"
  108. #endif
  109. // Reset.
  110. //#undef _GROUP_MAKE_LIMIT
  111. //#undef _GROUP_MAKE_NAME
  112. #include "..\..\YSI_Core\y_master"