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); }
private void GetCharsCallback(ListUsersCharactersResult result) { lastReceivedMessage = "Get Chars Successful"; foreach (var eachCharacter in result.Characters) { if (eachCharacter.CharacterName == CHAR_NAME) { targetCharacter = eachCharacter; } } }
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); } }
private void GetCharsCallback(ListUsersCharactersResult result) { ((UUnitTestContext)result.CustomData).EndTest(UUnitFinishState.PASSED, null); }
private void PlayfabEvents_OnGetAllUsersCharactersResultEvent(ListUsersCharactersResult result) { this.UpdateCharacters(result.Characters); }
public static void OnGetPlayerCharactersSuccess(ListUsersCharactersResult result) { playerCharacters = result.Characters; PF_Bridge.RaiseCallbackSuccess("Player Characters Retrieved", PlayFabAPIMethods.GetAllUsersCharacters, MessageDisplayStyle.none); }