Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Lootlocker_UnitySDKv2.0.0

Compare
Choose a tag to compare
@kirre-bylund kirre-bylund released this 25 Oct 11:50
· 136 commits to main since this release

Changes

  • v2.0.0 removes a lot of code that has previosly been deprecated, you can read more in our docs about what that means.
    • How you get error information from the SDK has changed. Instead of the fields hasError and Error in each response there is now a field named errorData within which all error information resides. Instead of hasError you use !success, and instead of Error you should use the fields in errorData. The exact replacement is errorData.message.
    • The field "texture" on each response has been removed (it was never used)
    • Dev Mode is deprecated, so is the "support" for deprecated api keys
    • Game ID is no longer needed for White Label Signup
    • When calling Init explicitly with parameters, then platform and onDevelopmentMode are no longer needed. The method now looks like this: bool Init(string apiKey, string gameVersion, string domainKey)
    • void StartSession(string deviceId, Action<LootLockerSessionResponse> onComplete) is removed. If you're using this method you need to switch over to the topical start session methods instead. For example if you were using this to start a session for Android, then you should now use StartAndroidSession instead. If you're unsure of what to use, we recommend Guest or White Label.
    • EndSession no longer takes deviceId as an argument, use void EndSession(Action<LootLockerSessionResponse> onComplete) instead
    • Calling StartWhiteLabelSession with email and password is no longer supported. Instead, we cache the needed information and you should call StartWhiteLabelSession(Action<LootLockerSessionResponse> onComplete). Or even better, replace the separate Login and StartSession calls with using WhiteLabelLoginAndStartSession
    • All leaderboard methods that were using the leaderboard id (integer) have been removed. You should use the methods that take the leaderboard keys instead. The reason for this is that the leaderboard key is independent across environments meaning your code can stay the same when the game releases. Affected methods are:
      • GetMemberRank
      • GetByListOfMembers
      • GetScoreList
      • GetNextScoreList
      • GetPrevScoreList
      • GetScoreListOriginal
      • SubmitScore
    • Starting a LootLocker Session from a White Label Login Token no longer needs a password in the request (LootLockerWhiteLabelSessionRequest)
    • Renamed types (deprecated the old one, use the new one)
      • LootLockerActivateARentalAssetResponse renamed to LootLockerActivateRentalAssetResponse
      • LootLockerGettingCollectablesResponse renamed to LootLockerGetCollectablesResponse
      • LootLockerCollectingAnItemResponse renamed to LootLockerCollectItemResponse
      • LootLockerFinishingAMissionRequest renamed to LootLockerFinishMissionRequest
      • LootLockerGettingAllMissionsResponse renamed to LootLockerGetAllMissionsResponse
      • LootLockerGettingASingleMissionResponse renamed to LootLockerGetMissionResponse
      • LootLockerStartingAMissionResponse renamed to LootLockerStartMissionResponse
      • LootLockerFinishingAMissionResponse renamed to LootLockerFinishMissionResponse
      • LootLockerTriggerAnEventRequest renamed to LootLockerExecuteTriggerRequest
      • LootLockerTriggerAnEventResponse renamed to LootLockerExecuteTriggerResponse
      • LootLockerListingAllTriggersResponse renamed to LootLockerListAllTriggersResponse
    • Renamed methods (deprecated the old one, use the new one)
      • GettingCollectables renamed to GetCollectables
      • CollectingAnItem renamed to CollectItem
      • GettingAllMaps renamed to GetAllMaps
      • GettingAllMissions renamed to GetAllMissions
      • GettingASingleMission renamed to GetMission
      • StartingAMission renamed to StartMission
      • FinishingAMission renamed to FinishMission
      • PollingOrderStatus renamed to PollOrderStatus
      • ActivatingARentalAsset renamed to ActivateRentalAsset
      • TriggeringAnEvent renamed to ExecuteTrigger
      • ListingTriggeredTriggerEvents renamed to ListAllExecutedTriggers

Bugfixes

  • The SDK will no longer cause editor versions newer than 2021 to lose their External Tools section in Preferences

Full Changelog: v1.2.7...v2.0.0