COMM.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #ifndef _COMM_H_
  2. #define _COMM_H_
  3. #include "common_type.h"
  4. #include "CFTTMem.h"
  5. #include "global_func.h"
  6. #include "fpoint.h"
  7. #include "str_conv.h"
  8. #include "xsnprintf.h"
  9. enum ECommType {
  10. ECommType_Err = -1,
  11. ECommType_0 = 0,
  12. ECommType_1 = 1,
  13. ECommType_2 = 2,
  14. ECommType_3 = 3,
  15. ECommType_4 = 4,
  16. ECommType_5 = 5,
  17. ECommType_6 = 6,
  18. ECommType_7 = 7,
  19. ECommType_8 = 8,
  20. ECommType_9 = 9,
  21. ECommType_10 = 10,
  22. ECommType_11 = 11,
  23. ECommType_12 = 12,
  24. ECommType_13 = 13,
  25. ECommType_14 = 14,
  26. ECommType_15 = 15,
  27. ECommType_16 = 16,
  28. ECommType_17 = 17,
  29. ECommType_18 = 18,
  30. ECommType_19 = 19,
  31. ECommType_20 = 20,
  32. ECommType_21 = 21,
  33. ECommType_22 = 22,
  34. ECommType_23 = 23,
  35. ECommType_24 = 24,
  36. ECommType_25 = 25,
  37. ECommType_26 = 26,
  38. ECommType_27 = 27,
  39. ECommType_28 = 28,
  40. ECommType_29 = 29,
  41. ECommType_30 = 30,
  42. ECommType_31 = 31,
  43. ECommType_32 = 32,
  44. ECommType_33 = 33,
  45. ECommType_34 = 34,
  46. ECommType_35 = 35,
  47. ECommType_69 = 69
  48. };
  49. /*
  50. 001d25ac COMM_CheckCommentaryTime 11
  51. 001d26cc COMM_FindFile 47
  52. 001d243c COMM_PlayCommentary 96
  53. 001d2564 COMM_PlayCommentaryDelay 18
  54. 001d2558 COMM_PlayCommentaryID 4
  55. 001d2430 COMM_PlayCommentaryKeeper 2
  56. 001d2598 COMM_PlayCommentaryKick 9
  57. 001d242c COMM_PlayCommentaryName 2
  58. 001d2658 COMM_Process 28
  59. 001d2608 COMM_Reset 15
  60. 001d2638 COMM_ResetAfterRewind 11
  61. 001d2438 COMM_StopCommentary 1
  62. */
  63. struct COMM_Info_S0_14 {
  64. int dword_0;
  65. int dword_4;
  66. int dword_8;
  67. int dword_C;
  68. char char_10;
  69. };
  70. struct COMM_Info {
  71. int info[71];
  72. COMM_Info_S0_14 struct_11C[4];
  73. int byte_16C[0x804];
  74. };
  75. int COMM_CheckCommentaryTime(ECommType, int); // 001d25ac
  76. uint COMM_FindFile(const char *); // 001d26cc
  77. void COMM_PlayCommentary(ECommType, int, int); // 001d243c
  78. void COMM_PlayCommentaryDelay(int, ECommType, int, int, bool); // 001d2564
  79. void COMM_PlayCommentaryID(int, int); // 001d2558
  80. int COMM_PlayCommentaryKeeper(int, int); // 001d2430
  81. void COMM_PlayCommentaryKick(ECommType, int, int); // 001d2598
  82. int COMM_PlayCommentaryName(int, int, int); // 001d242c
  83. void COMM_Process(); // 001d2658
  84. void COMM_Reset(); // 001d2608
  85. void COMM_ResetAfterRewind(); // 001d2638
  86. void COMM_StopCommentary(); // 001d2438
  87. extern ushort* X_iCommCnt[70];
  88. #endif //_COMMON_H_