CCurrency.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // CCurrency - [2020-04-13 11:57:46]
  2. #ifndef _CCURRENCY_H_
  3. #define _CCURRENCY_H_
  4. #include "common.h"
  5. #include "CInFlightCredits.h"
  6. /*
  7. 001CBBF4 CCurrency::Init()
  8. 001CBBF6 CCurrency::Shutdown()
  9. 001CBBF8 CCurrency::SetDefaults()
  10. 001CBC3C CCurrency::SetCredits(int)
  11. 001CBC60 CCurrency::ResetCreditsAnim()
  12. 001CBC84 CCurrency::AddCredits(int a1, bool b, int a3, bool b4 ,bool b5, bool b6)
  13. 001CBD68 CCurrency::SubtractCredits(int a1,ETrigger e, bool b)
  14. 001CBE90 CCurrency::AddSpentCredits(int a1)
  15. 001CBEA4 CCurrency::GetRenderCredits()
  16. 001CBEE4 CCurrency::Process()
  17. 001CC020 CCurrency::ResetDuringMatchCredits()
  18. 001CC030 CCurrency::IncDuringMatchCredits(int a1)
  19. 001CC044 CCurrency::GetDuringMatchCredits()
  20. 001CC054 CCurrency::SetInFlightCredits(float f1, float f2, float f3, int a4, float f5)
  21. 001CC084 CCurrency::UpdateInFlightCredits(float f1, float f2, float f3)
  22. 001CC24C CCurrency::InFlightActive()
  23. 001CC280 CCurrency::RenderInFlightCredits()
  24. 001CC2AC CCurrency::RenderCredits(float f1,float f2, float f3, int a4, float f5)
  25. */
  26. enum ETrigger {
  27. ETrigger_0,
  28. ETrigger_1,
  29. ETrigger_2,
  30. ETrigger_3,
  31. ETrigger_4,
  32. ETrigger_5,
  33. ETrigger_6,
  34. ETrigger_7,
  35. };
  36. class CCurrency {
  37. public:
  38. // 001CBBF4
  39. static void Init();
  40. // 001CBBF6
  41. static void Shutdown();
  42. // 001CBBF8
  43. static void SetDefaults();
  44. // 001CBC3C
  45. static void SetCredits(int);
  46. // 001CBC60
  47. static void ResetCreditsAnim();
  48. // 001CBC84
  49. static void AddCredits(int a1, bool b, int a3, bool b4, bool b5, bool b6);
  50. // 001CBD68
  51. static void SubtractCredits(int a1, ETrigger e, bool b);
  52. // 001CBE90
  53. static void AddSpentCredits(int a1);
  54. // 001CBEA4
  55. static int GetRenderCredits();
  56. // 001CBEE4
  57. static void Process();
  58. // 001CC020
  59. static void ResetDuringMatchCredits();
  60. // 001CC030
  61. static void IncDuringMatchCredits(int a1);
  62. // 001CC044
  63. static int GetDuringMatchCredits();
  64. // 001CC054
  65. static void SetInFlightCredits(float f1, float f2, float f3, int a4, float f5);
  66. // 001CC084
  67. static int UpdateInFlightCredits(float f1, float f2, float f3);
  68. // 001CC24C
  69. static bool InFlightActive();
  70. // 001CC280
  71. static void RenderInFlightCredits();
  72. // 001CC2AC
  73. static void RenderCredits(float f1, float f2, float f3, int a4, float f5);
  74. static int s_iCredits; // 00342E30
  75. static float s_fAnimCredits; // 00342E34
  76. static int s_iPurchasedCredits; // 00477DF0
  77. static int s_iSpentCredits; // 00477DF4
  78. static float s_fAnimCoinAdjust; // 00477DF8
  79. static int s_iDuringMatchCredits; // 00477DFC
  80. static int s_iEffectDelay; // 00477E00
  81. static int s_iEffectCredits; // 00477E04
  82. static bool s_bEffectAnimation; // 00477E08
  83. static int64_t m_iAnimTick; // 00477E10
  84. static CInFlightCredits s_tInFlightCredits; // 00477E18
  85. };
  86. #endif //_CCURRENCY_H_