diff --git a/Runtime/Game/LootLockerSDKManager.cs b/Runtime/Game/LootLockerSDKManager.cs index 634e5e95..d3243be9 100644 --- a/Runtime/Game/LootLockerSDKManager.cs +++ b/Runtime/Game/LootLockerSDKManager.cs @@ -3242,6 +3242,40 @@ public static void LookupPlayerNamesByXboxIds(string[] xboxIds, Action + /// Get player names and important ids of a set of players from their last active platform by Epic Games ID's + /// + /// A list of multiple player Epic Games ID's + /// onComplete Action for handling the response of type PlayerNameLookupResponse + /// Optional : Execute the request for the specified player. If not supplied, the default player will be used. + public static void LookupPlayerNamesByEpicGamesIds(string[] epicGamesIds, Action onComplete, string forPlayerWithUlid = null) + { + if (!CheckInitialized(false, forPlayerWithUlid)) + { + onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError(forPlayerWithUlid)); + return; + } + + LootLockerAPIManager.LookupPlayerNames(forPlayerWithUlid, "epic_games_id", epicGamesIds, onComplete); + } + + /// + /// Get player names and important ids of a set of players from their last active platform by Google Play Games ID's + /// + /// A list of multiple player Google Play Games ID's + /// onComplete Action for handling the response of type PlayerNameLookupResponse + /// Optional : Execute the request for the specified player. If not supplied, the default player will be used. + public static void LookupPlayerNamesByGooglePlayGamesIds(string[] googlePlayGamesIds, Action onComplete, string forPlayerWithUlid = null) + { + if (!CheckInitialized(false, forPlayerWithUlid)) + { + onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError(forPlayerWithUlid)); + return; + } + + LootLockerAPIManager.LookupPlayerNames(forPlayerWithUlid, "google_play_games_id", googlePlayGamesIds, onComplete); + } + /// /// Mark the logged in player for deletion. After 30 days the player will be deleted from the system. ///