CStoryProfile.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // CStoryProfile - [2020-04-13 11:57:47]
  2. #ifndef _CSTORYPROFILE_H_
  3. #define _CSTORYPROFILE_H_
  4. #include "CFTTSerialize.h"
  5. #include "CDataBase.h"
  6. #include "CPlayer.h"
  7. #include "CStoryProfileStages.h"
  8. /*
  9. 001E356A CStoryProfile::SetStageStars(int,int)
  10. 001E35BA CStoryProfile::SetStageComplete(int,int,bool)
  11. 001E75B0 CStoryProfile::Init()
  12. 001E7688 CStoryProfile::SetTrialsClub()
  13. 001E76B8 CStoryProfile::Exit()
  14. 001E76D0 CStoryProfile::Serialize(CFTTSerialize &,bool)
  15. 001E7700 CStoryProfile::GetRandomLeague(ELeague,ELeague)
  16. 001E77B0 CStoryProfile::GetStartingCountry()
  17. 001E782C CStoryProfile::GetPossibleStartingClubs(int,int *,int)
  18. 001E78F4 CStoryProfile::GetPossibleNewClubs(int,bool,int,int *,int,ELeague,bool,bool)
  19. 001E7A00 CStoryProfile::GetHaveChangedTeamOnStage(int)
  20. 001E7A2C CStoryProfile::SetStageClubTeam(int,int)
  21. 001E7A8C CStoryProfile::SetOppoClubTeams(bool)
  22. 001E7BE0 CStoryProfile::GetStageClubTeam(int)
  23. 001E7C10 CStoryProfile::GetClubTeam()
  24. 001E7C28 CStoryProfile::SetOppoNationalTeams()
  25. 001E7D04 CStoryProfile::GetNumOppoTeams(int,int)
  26. 001E7D64 CStoryProfile::SetupNextStage()
  27. 001E7E18 CStoryProfile::SetSeason(int)
  28. 001E7E28 CStoryProfile::GetOppoTeam(int,int,int,int,TTeamInfo *)
  29. 001E7F64 CStoryProfile::ApplyUserPlayer(TPlayerInfo *)
  30. 001E7F9C CStoryProfile::UseGoldenBoot()
  31. 001E7FB4 CStoryProfile::UseRewind()
  32. 001E7FD8 CStoryProfile::EnergyUse(int)
  33. 001E8090 CStoryProfile::EnergyIncrease(int,bool)
  34. 001E80C4 CStoryProfile::SetTimeSinceReboot()
  35. 001E80DC CStoryProfile::CheckEnergyFallback()
  36. 001E8114 CStoryProfile::EnergyCheckRestore()
  37. 001E82C4 CStoryProfile::EnergyGetRestoreSecs()
  38. 001E830C CStoryProfile::SecondsToFullEnergy(int,int)
  39. 001E8360 CStoryProfile::GetDescription(wchar_t *,int)
  40. */
  41. enum ESyncState {
  42. ESyncState_0,
  43. ESyncState_1,
  44. ESyncState_2,
  45. ESyncState_3,
  46. ESyncState_4
  47. };
  48. class TMoveClubs {
  49. public:
  50. void Serialize(CFTTSerialize &); // 001E754C
  51. uint16 filed_0;
  52. uint16 filed_2;
  53. };
  54. //0x240
  55. class TStoryProfileData {
  56. public:
  57. void Serialize(CFTTSerialize &);
  58. bool field_0;
  59. bool field_1;
  60. TPlayerInfoLight field_2;
  61. bool field_14;
  62. bool field_15;
  63. TMoveClubs field_16;
  64. // ushort field_16;
  65. // ushort field_18;
  66. TMoveClubs field_1A[20];
  67. uchar field_6A;
  68. char field_6B;
  69. ushort field_6C;
  70. ushort field_6E[16];
  71. uchar field_8E;
  72. char field_8F;
  73. ushort field_90[39];
  74. uchar field_DE;
  75. char field_DF;
  76. ushort field_E0[75];
  77. uchar field_176;
  78. char field_177;
  79. ushort field_178[38];
  80. uchar field_1C4;
  81. char field_1C5;
  82. char field_1C6;
  83. char field_1C7;
  84. int field_1C8;
  85. ushort field_1CC;
  86. char field_1CE;
  87. char field_1CF;
  88. long field_1D0;
  89. long field_1D4;
  90. long field_1D8;
  91. uint field_1DC;
  92. uint field_1E0;
  93. uint field_1E4;
  94. wchar_t field_1E8[17];
  95. unsigned long long field_210[5];
  96. ESyncState field_238;
  97. long field_23C;
  98. };
  99. class CStoryProfile {
  100. public:
  101. void SetStageStars(int, int); // 001E356A
  102. void SetStageComplete(int, int, bool); // 001E35BA
  103. void Init(); // 001E75B0
  104. static void SetTrialsClub(); // 001E7688
  105. void Exit(); // 001E76B8
  106. void Serialize(CFTTSerialize &, bool); // 001E76D0
  107. ELeague GetRandomLeague(ELeague, ELeague); // 001E7700
  108. int GetStartingCountry(); // 001E77B0
  109. int GetPossibleStartingClubs(int, int *, int); // 001E782C
  110. int GetPossibleNewClubs(int, bool, int, int *, int, ELeague, bool, bool); // 001E78F4
  111. int GetHaveChangedTeamOnStage(int); // 001E7A00
  112. void SetStageClubTeam(int, int); // 001E7A2C
  113. void SetOppoClubTeams(bool); // 001E7A8C
  114. ushort GetStageClubTeam(int); // 001E7BE0
  115. static ushort GetClubTeam(); // 001E7C10
  116. void SetOppoNationalTeams(); // 001E7C28
  117. int GetNumOppoTeams(int, int); // 001E7D04
  118. bool SetupNextStage(); // 001E7D64
  119. void SetSeason(int); // 001E7E18
  120. int GetOppoTeam(int, int, int, int, TTeamInfo *); // 001E7E28
  121. void ApplyUserPlayer(TPlayerInfo *); // 001E7F64
  122. void UseGoldenBoot(); // 001E7F9C
  123. void UseRewind(); // 001E7FB4
  124. void EnergyUse(int); // 001E7FD8
  125. void EnergyIncrease(int, bool); // 001E8090
  126. void SetTimeSinceReboot(); // 001E80C4
  127. void CheckEnergyFallback(); // 001E80DC
  128. void EnergyCheckRestore(); // 001E8114
  129. int EnergyGetRestoreSecs(); // 001E82C4
  130. static int SecondsToFullEnergy(int a1, int a2); // 001E830C
  131. void GetDescription(wchar_t *, int); // 001E8360
  132. public:
  133. CStoryProfileStages *filed_0;
  134. static TStoryProfileData m_tData;
  135. };
  136. #endif //_CSTORYPROFILE_H_