コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public static void ListingTriggeredTriggerEvents(Action <LootLockerListingAllTriggersResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.ListingTriggeredTriggerEvents(onComplete);
 }
コード例 #4
0
 public static void GetCurrentLoadOutToDefaultCharacter(Action <LootLockerGetCurrentLoadouttoDefaultCharacterResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetCurrentLoadOutToDefaultCharacter(onComplete);
 }
コード例 #5
0
 public static void GetInventory(Action <LootLockerInventoryResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetInventory(onComplete);
 }
コード例 #6
0
 public static void GetBalance(Action <LootLockerBalanceResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetBalance(onComplete);
 }
コード例 #7
0
 //Player calls
 public static void GetPlayerInfo(Action <LootLockerGetPlayerInfoResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetPlayerInfo(onComplete);
 }
コード例 #8
0
 public static void GetCharacterLoadout(Action <LootLockerCharacterLoadoutResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetCharacterLoadout(onComplete);
 }
コード例 #9
0
 public static void ListingAssetCandidates(Action <LootLockerListingAssetCandidatesResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.ListingAssetCandidates(onComplete);
 }
コード例 #10
0
 public static void GetEntirePersistentStorage(Action <LootLockerGetPersistentStoragResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetEntirePersistentStorage(onComplete);
 }
コード例 #11
0
 public static void GetAllKeyValuePairsForAssetInstances(Action <LootLockerGetAllKeyValuePairsResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetAllKeyValuePairs(onComplete);
 }
コード例 #12
0
 public static void GettingAllMissions(Action <LootLockerGettingAllMissionsResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GettingAllMissions(onComplete);
 }
コード例 #13
0
 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);
 }
コード例 #14
0
 public static void ListFavouriteAssets(Action <LootLockerFavouritesListResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.ListFavouriteAssets(onComplete);
 }
コード例 #15
0
 public static void UpdateOrCreateKeyValue(LootLockerGetPersistentStoragRequest data, Action <LootLockerGetPersistentStoragResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete);
 }
コード例 #16
0
 public static void GetContext(Action <LootLockerContextResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetContext(onComplete);
 }
コード例 #17
0
 public static void GetEquipableContextToDefaultCharacter(Action <LootLockerContextResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetEquipableContextToDefaultCharacter(onComplete);
 }
コード例 #18
0
 public static void SetProfilePublic(Action <LootLockerStandardResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.SetProfilePublic(onComplete);
 }
コード例 #19
0
 public static void GetDLCMigrated(Action <LootLockerDlcResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetDLCMigrated(onComplete);
 }
コード例 #20
0
 public static void GetDeactivatedAssetNotification(Action <LootLockerDeactivatedAssetsResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.GetDeactivatedAssetNotification(onComplete);
 }
コード例 #21
0
        public static void EndSession(string deviceId, Action <LootLockerSessionResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerSessionRequest sessionRequest = new LootLockerSessionRequest(deviceId);

            LootLockerAPIManager.EndSession(sessionRequest, onComplete);
        }
コード例 #22
0
        public static void VerifySteamID(string steamSessionTicket, Action <LootLockerVerifyResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerVerifyRequest verifyRequest = new LootLockerVerifyRequest(steamSessionTicket);

            LootLockerAPIManager.Verify(verifyRequest, onComplete);
        }
コード例 #23
0
        public static void VerifyID(string deviceId, Action <LootLockerVerifyResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerVerifyRequest verifyRequest = new LootLockerVerifyRequest(deviceId);

            LootLockerAPIManager.Verify(verifyRequest, onComplete);
        }
コード例 #24
0
        public static void GetXpAndLevel(Action <LootLockerXpResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerXpRequest xpRequest = new LootLockerXpRequest();

            LootLockerAPIManager.GetXpAndLevel(xpRequest, onComplete);
        }
コード例 #25
0
        public static void SubmitXp(int xpToSubmit, Action <LootLockerXpSubmitResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerXpSubmitRequest xpSubmitRequest = new LootLockerXpSubmitRequest(xpToSubmit);

            LootLockerAPIManager.SubmitXp(xpSubmitRequest, onComplete);
        }
コード例 #26
0
        public static void StartSteamSession(string steamId64, Action <LootLockerSessionResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerSessionRequest sessionRequest = new LootLockerSessionRequest(steamId64);

            LootLockerAPIManager.Session(sessionRequest, onComplete);
        }
コード例 #27
0
        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);
        }
コード例 #28
0
        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);
        }
コード例 #29
0
        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);
        }
コード例 #30
0
        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);
        }