mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-16 06:02:52 +00:00
refactor: remove backwards-compat enum aliases from PlatformTypes
This commit is contained in:
parent
26222f26e0
commit
eacf5ccf30
|
|
@ -850,7 +850,7 @@ void LocalPlayer::awardStat(Stat* stat, const std::vector<uint8_t>& param) {
|
|||
if (g_NetworkManager.IsLocalGame() &&
|
||||
g_NetworkManager.GetPlayerCount() == 1 &&
|
||||
ProfileManager.GetAwardType(ach->getAchievementID()) !=
|
||||
eAwardType_Achievement) {
|
||||
EAwardType::Achievement) {
|
||||
ui.CloseUIScenes(m_iPad);
|
||||
ui.NavigateToScene(m_iPad, eUIScene_PauseMenu);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,18 +55,6 @@ enum class EAwardType {
|
|||
AvatarItem,
|
||||
};
|
||||
|
||||
// Backwards-compatible aliases for call sites still using the old
|
||||
// unscoped names. Remove these as call sites are migrated.
|
||||
inline constexpr auto EKeyboard_Pending = EKeyboardResult::Pending;
|
||||
inline constexpr auto EKeyboard_Cancelled = EKeyboardResult::Cancelled;
|
||||
inline constexpr auto EKeyboard_ResultAccept = EKeyboardResult::ResultAccept;
|
||||
inline constexpr auto EKeyboard_ResultDecline = EKeyboardResult::ResultDecline;
|
||||
|
||||
inline constexpr auto eAwardType_Achievement = EAwardType::Achievement;
|
||||
inline constexpr auto eAwardType_GamerPic = EAwardType::GamerPic;
|
||||
inline constexpr auto eAwardType_Theme = EAwardType::Theme;
|
||||
inline constexpr auto eAwardType_AvatarItem = EAwardType::AvatarItem;
|
||||
|
||||
inline constexpr int XUSER_INDEX_ANY = 255;
|
||||
inline constexpr int XUSER_MAX_COUNT = 4;
|
||||
inline constexpr int XUSER_NAME_SIZE = 32;
|
||||
|
|
|
|||
|
|
@ -656,7 +656,7 @@ EKeyboardResult C_4JInput::RequestKeyboard(const wchar_t*, const wchar_t*, int,
|
|||
s_keyboardCallback = callback;
|
||||
s_keyboardCallbackParam = scene;
|
||||
SDL_StartTextInput();
|
||||
return EKeyboard_Pending;
|
||||
return EKeyboardResult::Pending;
|
||||
}
|
||||
bool C_4JInput::GetMenuDisplayed(int iPad) {
|
||||
if (iPad >= 0 && iPad < 4) return s_menuDisplayed[iPad];
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ public:
|
|||
CXuiStringTable* = nullptr, int = -1, int = -1, int = -1,
|
||||
char* = nullptr, unsigned int = 0L) {}
|
||||
int GetAwardId(int) { return 0; }
|
||||
EAwardType GetAwardType(int) { return eAwardType_Achievement; }
|
||||
EAwardType GetAwardType(int) { return EAwardType::Achievement; }
|
||||
bool CanBeAwarded(int, int) { return false; }
|
||||
void Award(int, int, bool = false) {}
|
||||
bool IsAwardsFlagSet(int, int) { return false; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue