CustomEvents.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * FILE
  21. *
  22. * DESCRIPTION
  23. *
  24. * PROGRAMMER
  25. * Denzil E. Long, Jr.
  26. *
  27. * VERSION INFO
  28. * $Author: Patrick $
  29. * $Revision: 7 $
  30. * $Modtime: 11/29/00 5:14p $
  31. * $Archive: /Commando/Code/Scripts/CustomEvents.h $
  32. *
  33. ******************************************************************************/
  34. #ifndef _CUSTOMEVENTS_H_
  35. #define _CUSTOMEVENTS_H_
  36. // Custom script events
  37. typedef enum {
  38. // Global events 0-999
  39. SCMD_GLOBAL = 0,
  40. // Sent by subscribers to publishers to request subscription to published events.
  41. // Note: Not all scripts support subscription, if a script subscribes to an object
  42. // that does not publish then it will never receive messages from it.
  43. //
  44. // Param = Subscriber
  45. SCMD_SUBSCRIBE,
  46. // Sent by subscribers to publishers to request removal from subscriber list.
  47. //
  48. // Param = Subscriber
  49. SCMD_UNSUBSCRIBE,
  50. // Sent by the mission controller when an objective has failed to be satisfied.
  51. // (An example of a failed objective would be when an object that was to be
  52. // protected was destroyed or when a timed objective expired.)
  53. //
  54. // Param = Objective Number
  55. SCMD_OBJECTIVE_FAILED,
  56. // Sent by mission controller when an objective has been completed.
  57. //
  58. // Param: Objective Number
  59. SCMD_OBJECTIVE_COMPLETE,
  60. // Sent by mission controller when the mission is lost.
  61. SCMD_MISSION_FAILED,
  62. // Send by mission controller when the mission is accomplished.
  63. SCMD_MISSION_ACCOMPLISHED,
  64. // Refer to Group definition for description of group events.
  65. SCMD_GROUP_EVENT,
  66. // Mission 1 events 1000-1999
  67. SCMD_MISSION1 = 1000,
  68. // Mission 2 events 2000-2999
  69. SCMD_MISSION2 = 2000,
  70. // Mission 3 events 3000-3999
  71. SCMD_MISSION3 = 3000,
  72. // Mission 4 events 4000-4999
  73. SCMD_MISSION4 = 4000,
  74. // Mission 5 events 5000-5999
  75. SCMD_MISSION5 = 5000,
  76. // Mission 6 events 6000-6999
  77. SCMD_MISSION6 = 6000,
  78. // Mission 7 events 7000-7999
  79. SCMD_MISSION7 = 7000,
  80. // Mission 8 events 8000-8999
  81. SCMD_MISSION8 = 8000,
  82. // Mission 9 events 9000-9999
  83. SCMD_MISSION9 = 9000,
  84. // Mission 10 events 10000-10999
  85. SCMD_MISSION10 = 10000,
  86. // Mission 11 events 11000-11999
  87. SCMD_MISSION11 = 11000,
  88. // Mission 12 events 12000-12999
  89. SCMD_MISSION12 = 12000,
  90. // PR Demo events 99000-99999
  91. SCMD_PRDEMO = 99000,
  92. // Programmer generated events begin at 1000000000
  93. } SCRIPT_CUSTOMEVENT;
  94. // Script timer IDs
  95. typedef enum {
  96. // Global timers 0-99
  97. STIMER_GLOBAL = 0,
  98. STIMER_BEAT,
  99. STIMER_SURVIVE,
  100. // Mission 1 timers 100-199
  101. STIMER_MISSION1 = 100,
  102. // Mission 2 timers 200-299
  103. STIMER_MISSION2 = 200,
  104. // Mission 3 timers 300-399
  105. STIMER_MISSION3 = 300,
  106. // Mission 4 timers 400-499
  107. STIMER_MISSION4 = 400,
  108. // Mission 5 timers 500-599
  109. STIMER_MISSION5 = 500,
  110. // Mission 6 timers 600-699
  111. STIMER_MISSION6 = 600,
  112. // Mission 7 timers 700-799
  113. STIMER_MISSION7 = 700,
  114. // Mission 8 timers 800-899
  115. STIMER_MISSION8 = 800,
  116. // Mission 9 timers 900-999
  117. STIMER_MISSION9 = 900,
  118. // Mission 10 timers 1000-1099
  119. STIMER_MISSION10 = 1000,
  120. // Mission 11 timers 1100-1199
  121. STIMER_MISSION11 = 1100,
  122. // Mission 12 timers 1200-1299
  123. STIMER_MISSION12 = 1200,
  124. // PR Demo timers 1300-1399
  125. STIMER_PRDEMO = 1300,
  126. // Toolkit timers 9900 - 9999
  127. STIMER_TOOLKIT = 9900,
  128. } SCRIPT_TIMER;
  129. #endif // _CUSTOMEVENTS_H_