| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- /*----------------------------------------------------------------------------*\
- ===============================
- Y Sever Includes - Master Auto
- ===============================
- Description:
- Attempts to figure out from what library the current instance of the master
- system was included from.
- Legal:
- Version: MPL 1.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is the YSI master include.
-
- The Initial Developer of the Original Code is Alex "Y_Less" Cole.
- Portions created by the Initial Developer are Copyright (C) 2011
- the Initial Developer. All Rights Reserved.
-
- Contributors:
- ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
-
- Thanks:
- JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
- ZeeX - Very productive conversations.
- koolk - IsPlayerinAreaEx code.
- TheAlpha - Danish translation.
- breadfish - German translation.
- Fireburn - Dutch translation.
- yom - French translation.
- 50p - Polish translation.
- Zamaroht - Spanish translation.
- Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
- for me to strive to better.
- Pixels^ - Running XScripters where the idea was born.
- Matite - Pestering me to release it and using it.
-
- Very special thanks to:
- Thiadmer - PAWN, whose limits continue to amaze me!
- Kye/Kalcor - SA:MP.
- SA:MP Team past, present and future - SA:MP.
-
- Version:
- 0.1
- Changelog:
- 06/08/10:
- First version.
- Functions:
- Public:
- -
- Core:
- -
- Stock:
- -
- Static:
- -
- Inline:
- -
- API:
- -
- Hooks:
- -
- Callbacks:
- -
- Definitions:
- -
- Enums:
- -
- Macros:
- -
- Tags:
- -
- Variables:
- Global:
- -.
- Static:
- -
- Commands:
- -
- Compile options:
- -
- Operators:
- -
- Natives:
- -
- \*----------------------------------------------------------------------------*/
- // =============================================================================
- // =============================================================================
- //
- // MAKE SURE THE RECALL CODE IN y_groups HAS THE RIGHT NUMBERS - THATS GIVEN
- // ODD ERRORS TWICE NOW!!!
- //
- // =============================================================================
- // =============================================================================
- #undef _inc_y_automasters
- //#define _YSIM_USED_AUTO
- // Commands are set as master number 25
- #if defined _inc_y_commands
- #if !defined _YCM_z@ // z is letter 25
- #define MASTER 25
- #endinput
- #endif
- #endif
- // Groups are set as master number 24
- #if defined _inc_y_grouponce
- #if !defined _YCM_y@ // y is letter 24
- #define MASTER 24
- #endinput
- #endif
- #endif
- // Reserve this number (only in terms of not using it).
- //#define DEFAULT_USER_COMMAND_MASTER 23
- // Classes are set as master number 22
- #if defined _inc_y_classes
- #if !defined _YCM_w@ // w is letter 22
- #define MASTER 22
- //#if defined _inc_y_classes_do
- // // Make sure only the implementation file calls y_master.
- // #define YSIM_DISABLE_RECALL
- //#endif
- #endinput
- #endif
- #endif
- // Languages are set as master number 21. This is the first library I've done
- // since largely finishing the y_master system (I hope anyway) and it is now, I
- // have to say, VERY smooth adding in a new YSI mastered library! Actually, I
- // need to remember to add the "revert" code, but it's only hard with groups.
- #if defined _inc_y_languages
- #if !defined _YCM_v@ // B is letter 21
- #define MASTER 21
- #endinput
- #endif
- #endif
- // Players are set as master number 20
- #if defined _inc_y_users
- #if !defined _YCM_u@ // C is letter 20
- #define MASTER 20
- #endinput
- #endif
- #endif
- // Dialogs are set as master number 19
- #if defined _inc_y_dialog
- #if !defined _YCM_t@ // C is letter 20
- #define MASTER 19
- #endinput
- #endif
- #endif
- // Areas are set as master number 18
- #if defined _inc_y_areas
- #if !defined _YCM_s@ // x is letter 23
- #define MASTER 18
- #endinput
- #endif
- #endif
- // PHP is set as master number 17
- #if defined _inc_y_php
- #if !defined _YCM_r@ // x is letter 23
- #define MASTER 17
- #endinput
- #endif
- #endif
- // The help system is set as master number 29
- /*#if defined _inc_y_help
- #if !defined _YCM_u@ // D is letter 29
- #define MASTER 20
- #endinput
- #endif
- #endif*/
- #if defined _YSI_ALLOW_INTERNAL_TEST
- #if defined _inc_y_inttest
- #if !defined _YCM_j@
- #define MASTER 9
- #endinput
- #endif
- #endif
- #if defined _inc_y_inttest2
- #if !defined _YCM_i@
- #define MASTER 8
- #endinput
- #endif
- #endif
- #endif
- //#undef _YSIM_USED_AUTO
- // We can't have an auto-incrementing master number as there's no way to
- // guarantee that two scripts using the same library will have the same master
- // number for that library!
- /*#if defined _YCM_z@
- #error "Max masters exceeded."
- #endif
- #if defined _YCM_y@
- #define MASTER 25
- #endif
- #if defined _YCM_x@
- #define MASTER 24
- #endif
- #if defined _YCM_w@
- #define MASTER 23
- #endif
- #if defined _YCM_v@
- #define MASTER 22
- #endif
- #if defined _YCM_u@
- #define MASTER 21
- #endif
- #if defined _YCM_t@
- #define MASTER 20
- #endif
- #if defined _YCM_s@
- #define MASTER 19
- #endif
- #if defined _YCM_r@
- #define MASTER 18
- #endif
- #if defined _YCM_q@
- #define MASTER 17
- #endif
- #if defined _YCM_p@
- #define MASTER 16
- #endif
- #if defined _YCM_o@
- #define MASTER 15
- #endif
- #if defined _YCM_n@
- #define MASTER 14
- #endif
- #if defined _YCM_m@
- #define MASTER 13
- #endif
- #if defined _YCM_l@
- #define MASTER 12
- #endif
- #if defined _YCM_k@
- #define MASTER 11
- #endif
- #if defined _YCM_j@
- #define MASTER 10
- #endif
- #if defined _YCM_i@
- #define MASTER 9
- #endif
- #if defined _YCM_h@
- #define MASTER 8
- #endif
- #if defined _YCM_g@
- #define MASTER 7
- #endif
- #if defined _YCM_f@
- #define MASTER 6
- #endif
- #if defined _YCM_e@
- #define MASTER 5
- #endif
- #if defined _YCM_d@
- #define MASTER 4
- #endif
- #if defined _YCM_c@
- #define MASTER 3
- #endif
- #if defined _YCM_b@
- #define MASTER 2
- #endif
- #if defined _YCM_a@
- #define MASTER 1
- #endif
- #define MASTER 0*/
|