public static void UpdatingAnAssetCandidate(int assetId, bool isCompleted, Action <LootLockerUserGenerateContentResponse> onComplete, string name = null, Dictionary <string, string> kv_storage = null, Dictionary <string, string> filters = null, Dictionary <string, string> data_entities = null, int context_id = -1) { if (!CheckInitialized()) { return; } ConvertAssetDictionaries(kv_storage, filters, data_entities, out List <LootLockerAssetKVPair> temp_kv, out List <LootLockerAssetKVPair> temp_filters, out List <LootLockerDataEntity> temp_data); LootLockerAssetData assetData = new LootLockerAssetData { name = name, kv_storage = temp_kv.ToArray(), filters = temp_filters.ToArray(), data_entities = temp_data.ToArray(), context_id = context_id, }; LootLockerCreatingOrUpdatingAnAssetCandidateRequest data = new LootLockerCreatingOrUpdatingAnAssetCandidateRequest { data = assetData, completed = isCompleted, }; LootLockerGetRequest getRequest = new LootLockerGetRequest(); getRequest.getRequests.Add(assetId.ToString()); LootLockerAPIManager.UpdatingAnAssetCandidate(data, getRequest, onComplete); }
public static void FinishingAMission(int missionId, string startingMissionSignature, string playerId, LootLockerFinishingPayload finishingPayload, Action <LootLockerFinishingAMissionResponse> onComplete) { if (!CheckInitialized()) { return; } string source = JsonConvert.SerializeObject(finishingPayload) + startingMissionSignature + playerId; string hash; using (SHA1 sha1Hash = SHA1.Create()) { byte[] sourceBytes = Encoding.UTF8.GetBytes(source); byte[] hashBytes = sha1Hash.ComputeHash(sourceBytes); hash = BitConverter.ToString(hashBytes).Replace("-", string.Empty); } LootLockerFinishingAMissionRequest data = new LootLockerFinishingAMissionRequest() { signature = hash, payload = finishingPayload }; data.getRequests.Add(missionId.ToString()); LootLockerAPIManager.FinishingAMission(data, onComplete); }
public static void ListingTriggeredTriggerEvents(Action <LootLockerListingAllTriggersResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.ListingTriggeredTriggerEvents(onComplete); }
public static void GetCurrentLoadOutToDefaultCharacter(Action <LootLockerGetCurrentLoadouttoDefaultCharacterResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetCurrentLoadOutToDefaultCharacter(onComplete); }
public static void GetInventory(Action <LootLockerInventoryResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetInventory(onComplete); }
public static void GetBalance(Action <LootLockerBalanceResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetBalance(onComplete); }
//Player calls public static void GetPlayerInfo(Action <LootLockerGetPlayerInfoResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetPlayerInfo(onComplete); }
public static void GetCharacterLoadout(Action <LootLockerCharacterLoadoutResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetCharacterLoadout(onComplete); }
public static void ListingAssetCandidates(Action <LootLockerListingAssetCandidatesResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.ListingAssetCandidates(onComplete); }
public static void GetEntirePersistentStorage(Action <LootLockerGetPersistentStoragResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetEntirePersistentStorage(onComplete); }
public static void GetAllKeyValuePairsForAssetInstances(Action <LootLockerGetAllKeyValuePairsResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetAllKeyValuePairs(onComplete); }
public static void GettingAllMissions(Action <LootLockerGettingAllMissionsResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GettingAllMissions(onComplete); }
public static void GetAssetsOriginal(int assetCount, Action <LootLockerAssetResponse> onComplete, int?idOfLastAsset = null, LootLocker.LootLockerEnums.AssetFilter filter = LootLocker.LootLockerEnums.AssetFilter.none) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetAssetsOriginal(onComplete, assetCount, idOfLastAsset, filter); }
public static void ListFavouriteAssets(Action <LootLockerFavouritesListResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.ListFavouriteAssets(onComplete); }
public static void UpdateOrCreateKeyValue(LootLockerGetPersistentStoragRequest data, Action <LootLockerGetPersistentStoragResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete); }
public static void GetContext(Action <LootLockerContextResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetContext(onComplete); }
public static void GetEquipableContextToDefaultCharacter(Action <LootLockerContextResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetEquipableContextToDefaultCharacter(onComplete); }
public static void SetProfilePublic(Action <LootLockerStandardResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.SetProfilePublic(onComplete); }
public static void GetDLCMigrated(Action <LootLockerDlcResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetDLCMigrated(onComplete); }
public static void GetDeactivatedAssetNotification(Action <LootLockerDeactivatedAssetsResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerAPIManager.GetDeactivatedAssetNotification(onComplete); }
public static void EndSession(string deviceId, Action <LootLockerSessionResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerSessionRequest sessionRequest = new LootLockerSessionRequest(deviceId); LootLockerAPIManager.EndSession(sessionRequest, onComplete); }
public static void VerifySteamID(string steamSessionTicket, Action <LootLockerVerifyResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerVerifyRequest verifyRequest = new LootLockerVerifyRequest(steamSessionTicket); LootLockerAPIManager.Verify(verifyRequest, onComplete); }
public static void VerifyID(string deviceId, Action <LootLockerVerifyResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerVerifyRequest verifyRequest = new LootLockerVerifyRequest(deviceId); LootLockerAPIManager.Verify(verifyRequest, onComplete); }
public static void GetXpAndLevel(Action <LootLockerXpResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerXpRequest xpRequest = new LootLockerXpRequest(); LootLockerAPIManager.GetXpAndLevel(xpRequest, onComplete); }
public static void SubmitXp(int xpToSubmit, Action <LootLockerXpSubmitResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerXpSubmitRequest xpSubmitRequest = new LootLockerXpSubmitRequest(xpToSubmit); LootLockerAPIManager.SubmitXp(xpSubmitRequest, onComplete); }
public static void StartSteamSession(string steamId64, Action <LootLockerSessionResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerSessionRequest sessionRequest = new LootLockerSessionRequest(steamId64); LootLockerAPIManager.Session(sessionRequest, onComplete); }
public static void StartingAMission(int missionId, Action <LootLockerStartingAMissionResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerGetRequest data = new LootLockerGetRequest(); data.getRequests.Add(missionId.ToString()); LootLockerAPIManager.StartingAMission(data, onComplete); }
public static void OpenALootBoxForAssetInstances(int assetId, Action <LootLockerOpenLootBoxResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerGetRequest data = new LootLockerGetRequest(); data.getRequests.Add(assetId.ToString()); LootLockerAPIManager.OpenALootBox(data, onComplete); }
public static void GetAllKeyValuePairsToAnInstance(int instanceId, Action <LootLockerAssetDefaultResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerGetRequest data = new LootLockerGetRequest(); data.getRequests.Add(instanceId.ToString()); LootLockerAPIManager.GetAllKeyValuePairsToAnInstance(data, onComplete); }
public static void GettingASingleAssetCandidate(int assetId, Action <LootLockerUserGenerateContentResponse> onComplete) { if (!CheckInitialized()) { return; } LootLockerGetRequest data = new LootLockerGetRequest(); data.getRequests.Add(assetId.ToString()); LootLockerAPIManager.GettingASingleAssetCandidate(data, onComplete); }