1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
-- This allows us to make the same function in InGames and Pregame while changing exactly what it calls,
-- so shared code doesn't need to know which state its in
end
MARKET_PRODUCT_DISPLAY_STATE_NOT_PURCHASED = 0
MARKET_PRODUCT_DISPLAY_STATE_PURCHASED = 1
MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE = 2
return MARKET_PRODUCT_DISPLAY_STATE_PURCHASED
end
if expectedClaimResult == MARKET_PURCHASE_RESULT_FAIL_INSTANT_UNLOCK_REQ_LIST then
return MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE
end
return MARKET_PRODUCT_DISPLAY_STATE_INELIGIBLE
end
return MARKET_PRODUCT_DISPLAY_STATE_NOT_PURCHASED
end |