コード例 #1
0
 private static void OnGetPlayerCharactersSuccess(ListUsersCharactersResult result)
 {
     playerCharacters.Clear();
     foreach (var eachChar in result.Characters)
     {
         playerCharacters.Add(eachChar);
     }
     PF_Bridge.RaiseCallbackSuccess("Player Characters Retrieved", PlayFabAPIMethods.GetAllUsersCharacters, MessageDisplayStyle.none);
 }
コード例 #2
0
 private void GetCharsCallback(ListUsersCharactersResult result)
 {
     lastReceivedMessage = "Get Chars Successful";
     foreach (var eachCharacter in result.Characters)
     {
         if (eachCharacter.CharacterName == CHAR_NAME)
         {
             targetCharacter = eachCharacter;
         }
     }
 }
コード例 #3
0
        public static void ClientCharCallBack(ListUsersCharactersResult charResult)
        {
            CharacterModel temp;

            foreach (var character in charResult.Characters)
            {
                if (!PfSharedModelEx.globalClientUser.clientCharacterModels.TryGetValue(character.CharacterId, out temp))
                {
                    PfSharedModelEx.globalClientUser.clientCharacterModels[character.CharacterId] = new PfInvClientChar(PfSharedModelEx.globalClientUser.playFabId, character.CharacterId, character.CharacterName);
                }
                PfSharedControllerEx.PostEventMessage(PfSharedControllerEx.EventType.OnUserCharactersLoaded, PfSharedModelEx.globalClientUser.playFabId, character.CharacterId, PfSharedControllerEx.Api.Client, false);
            }
        }
コード例 #4
0
 private void GetCharsCallback(ListUsersCharactersResult result)
 {
     ((UUnitTestContext)result.CustomData).EndTest(UUnitFinishState.PASSED, null);
 }
コード例 #5
0
 private void PlayfabEvents_OnGetAllUsersCharactersResultEvent(ListUsersCharactersResult result)
 {
     this.UpdateCharacters(result.Characters);
 }
コード例 #6
0
 public static void OnGetPlayerCharactersSuccess(ListUsersCharactersResult result)
 {
     playerCharacters = result.Characters;
     PF_Bridge.RaiseCallbackSuccess("Player Characters Retrieved", PlayFabAPIMethods.GetAllUsersCharacters, MessageDisplayStyle.none);
 }