mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
refactor: remove remaining trial/upsell from platform interfaces
This commit is contained in:
parent
f7241f8064
commit
8b836cf604
|
|
@ -70,9 +70,6 @@ public:
|
||||||
// --- Dead stubs (inline no-ops, kept for call-site compat) ---
|
// --- Dead stubs (inline no-ops, kept for call-site compat) ---
|
||||||
|
|
||||||
void Tick() {}
|
void Tick() {}
|
||||||
void SetTrialTextStringTable(CXuiStringTable*, int, int) {}
|
|
||||||
void SetTrialAwardText(EAwardType, int, int) {}
|
|
||||||
void StartTrialGame() {}
|
|
||||||
unsigned int RequestSignInUI(bool, bool, bool, bool, bool,
|
unsigned int RequestSignInUI(bool, bool, bool, bool, bool,
|
||||||
int (*)(void*, const bool, const int),
|
int (*)(void*, const bool, const int),
|
||||||
void*, int = XUSER_INDEX_ANY) { return 0; }
|
void*, int = XUSER_INDEX_ANY) { return 0; }
|
||||||
|
|
@ -112,9 +109,6 @@ public:
|
||||||
void RegisterRichPresenceContext(int) {}
|
void RegisterRichPresenceContext(int) {}
|
||||||
void SetRichPresenceContextValue(int, int, int) {}
|
void SetRichPresenceContextValue(int, int, int) {}
|
||||||
void SetCurrentGameActivity(int, int, bool = false) {}
|
void SetCurrentGameActivity(int, int, bool = false) {}
|
||||||
void DisplayFullVersionPurchase(bool, int, int = -1) {}
|
|
||||||
void SetUpsellCallback(void (*)(void*, EUpsellType, EUpsellResponse, int),
|
|
||||||
void*) {}
|
|
||||||
void SetDebugFullOverride(bool) {}
|
void SetDebugFullOverride(bool) {}
|
||||||
|
|
||||||
// GetPrimaryPad/SetPrimaryPad moved to InputManager
|
// GetPrimaryPad/SetPrimaryPad moved to InputManager
|
||||||
|
|
|
||||||
|
|
@ -363,9 +363,6 @@ public:
|
||||||
bool GetLiveLinkRequired() { return m_bLiveLinkRequired; }
|
bool GetLiveLinkRequired() { return m_bLiveLinkRequired; }
|
||||||
void SetLiveLinkRequired(bool required) { m_bLiveLinkRequired = required; }
|
void SetLiveLinkRequired(bool required) { m_bLiveLinkRequired = required; }
|
||||||
|
|
||||||
static void UpsellReturnedCallback(void* pParam, EUpsellType type,
|
|
||||||
EUpsellResponse result, int iUserData);
|
|
||||||
|
|
||||||
#if defined(_DEBUG_MENUS_ENABLED)
|
#if defined(_DEBUG_MENUS_ENABLED)
|
||||||
bool DebugSettingsOn() { return m_bDebugOptions; }
|
bool DebugSettingsOn() { return m_bDebugOptions; }
|
||||||
bool DebugArtToolsOn();
|
bool DebugArtToolsOn();
|
||||||
|
|
|
||||||
|
|
@ -91,13 +91,6 @@ public:
|
||||||
[[nodiscard]] virtual void* GetGameDefinedProfileData(int iQuadrant) = 0;
|
[[nodiscard]] virtual void* GetGameDefinedProfileData(int iQuadrant) = 0;
|
||||||
virtual void ResetProfileProcessState() = 0;
|
virtual void ResetProfileProcessState() = 0;
|
||||||
|
|
||||||
// Trial
|
|
||||||
virtual void StartTrialGame() = 0;
|
|
||||||
virtual void SetTrialTextStringTable(CXuiStringTable* pStringTable,
|
|
||||||
int iAccept, int iReject) = 0;
|
|
||||||
virtual void SetTrialAwardText(EAwardType AwardType, int iTitle,
|
|
||||||
int iText) = 0;
|
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
virtual void AllowedPlayerCreatedContent(int iPad, bool thisQuadrantOnly,
|
virtual void AllowedPlayerCreatedContent(int iPad, bool thisQuadrantOnly,
|
||||||
bool* allAllowed,
|
bool* allAllowed,
|
||||||
|
|
@ -137,14 +130,6 @@ public:
|
||||||
virtual void SetCurrentGameActivity(int iPad, int iNewPresence,
|
virtual void SetCurrentGameActivity(int iPad, int iNewPresence,
|
||||||
bool bSetOthersToIdle = false) = 0;
|
bool bSetOthersToIdle = false) = 0;
|
||||||
|
|
||||||
// Purchase
|
|
||||||
virtual void DisplayFullVersionPurchase(bool bRequired, int iQuadrant,
|
|
||||||
int iUpsellParam = -1) = 0;
|
|
||||||
virtual void SetUpsellCallback(
|
|
||||||
void (*Func)(void* lpParam, EUpsellType type, EUpsellResponse response,
|
|
||||||
int iUserData),
|
|
||||||
void* lpParam) = 0;
|
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
virtual void SetDebugFullOverride(bool bVal) = 0;
|
virtual void SetDebugFullOverride(bool bVal) = 0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -92,12 +92,6 @@ public:
|
||||||
virtual void HideAllGameUIElements() = 0;
|
virtual void HideAllGameUIElements() = 0;
|
||||||
virtual void ShowOtherPlayersBaseScene(unsigned int iPad, bool show) = 0;
|
virtual void ShowOtherPlayersBaseScene(unsigned int iPad, bool show) = 0;
|
||||||
|
|
||||||
// Trial timer
|
|
||||||
virtual void ShowTrialTimer(bool show) = 0;
|
|
||||||
virtual void SetTrialTimerLimitSecs(unsigned int uiSeconds) = 0;
|
|
||||||
virtual void UpdateTrialTimer(unsigned int iPad) = 0;
|
|
||||||
virtual void ReduceTrialTimerValue() = 0;
|
|
||||||
|
|
||||||
// Autosave
|
// Autosave
|
||||||
virtual void ShowAutosaveCountdownTimer(bool show) = 0;
|
virtual void ShowAutosaveCountdownTimer(bool show) = 0;
|
||||||
virtual void UpdateAutosaveCountdownTimer(unsigned int uiSeconds) = 0;
|
virtual void UpdateAutosaveCountdownTimer(unsigned int uiSeconds) = 0;
|
||||||
|
|
|
||||||
|
|
@ -55,19 +55,6 @@ enum class EAwardType {
|
||||||
AvatarItem,
|
AvatarItem,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class EUpsellType {
|
|
||||||
Custom = 0,
|
|
||||||
Achievement,
|
|
||||||
GamerPic,
|
|
||||||
Theme,
|
|
||||||
AvatarItem,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum class EUpsellResponse {
|
|
||||||
Declined,
|
|
||||||
Accepted_NoPurchase,
|
|
||||||
Accepted_Purchase,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Backwards-compatible aliases for call sites still using the old
|
// Backwards-compatible aliases for call sites still using the old
|
||||||
// unscoped names. Remove these as call sites are migrated.
|
// unscoped names. Remove these as call sites are migrated.
|
||||||
|
|
@ -81,12 +68,3 @@ inline constexpr auto eAwardType_GamerPic = EAwardType::GamerPic;
|
||||||
inline constexpr auto eAwardType_Theme = EAwardType::Theme;
|
inline constexpr auto eAwardType_Theme = EAwardType::Theme;
|
||||||
inline constexpr auto eAwardType_AvatarItem = EAwardType::AvatarItem;
|
inline constexpr auto eAwardType_AvatarItem = EAwardType::AvatarItem;
|
||||||
|
|
||||||
inline constexpr auto eUpsellType_Custom = EUpsellType::Custom;
|
|
||||||
inline constexpr auto eUpsellType_Achievement = EUpsellType::Achievement;
|
|
||||||
inline constexpr auto eUpsellType_GamerPic = EUpsellType::GamerPic;
|
|
||||||
inline constexpr auto eUpsellType_Theme = EUpsellType::Theme;
|
|
||||||
inline constexpr auto eUpsellType_AvatarItem = EUpsellType::AvatarItem;
|
|
||||||
|
|
||||||
inline constexpr auto eUpsellResponse_Declined = EUpsellResponse::Declined;
|
|
||||||
inline constexpr auto eUpsellResponse_Accepted_NoPurchase = EUpsellResponse::Accepted_NoPurchase;
|
|
||||||
inline constexpr auto eUpsellResponse_Accepted_Purchase = EUpsellResponse::Accepted_Purchase;
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue