@@ -1962,11 +1962,22 @@ public static void GetCharacterLoadout(Action<LootLockerCharacterLoadoutResponse
1962
1962
}
1963
1963
1964
1964
/// <summary>
1965
- /// Get a character loadout from a specific characterID .
1965
+ /// Get a character loadout from a specific player on the current platform .
1966
1966
/// </summary>
1967
- /// <param name="characterID">ID of the character</param>
1967
+ /// <param name="player_id">ID of the player</param>
1968
+ /// <param name="onComplete">onComplete Action for handling the response of type LootLockerCharacterLoadoutResponse</param>
1969
+ public static void GetOtherPlayersCharacterLoadout ( string player_id , Action < LootLockerCharacterLoadoutResponse > onComplete )
1970
+ {
1971
+ GetOtherPlayersCharacterLoadout ( player_id , CurrentPlatform . Get ( ) , onComplete ) ;
1972
+ }
1973
+
1974
+ /// <summary>
1975
+ /// Get a character loadout from a specific player and platform
1976
+ /// </summary>
1977
+ /// <param name="player_id">ID of the player</param>
1978
+ /// <param name="platform">The platform that the ID of the player is for</param>
1968
1979
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerCharacterLoadoutResponse</param>
1969
- public static void GetOtherPlayersCharacterLoadout ( string characterID , Action < LootLockerCharacterLoadoutResponse > onComplete )
1980
+ public static void GetOtherPlayersCharacterLoadout ( string player_id , Platforms platform , Action < LootLockerCharacterLoadoutResponse > onComplete )
1970
1981
{
1971
1982
if ( ! CheckInitialized ( ) )
1972
1983
{
@@ -1975,8 +1986,8 @@ public static void GetOtherPlayersCharacterLoadout(string characterID, Action<Lo
1975
1986
}
1976
1987
LootLockerGetRequest data = new LootLockerGetRequest ( ) ;
1977
1988
1978
- data . getRequests . Add ( characterID ) ;
1979
- data . getRequests . Add ( CurrentPlatform . GetString ( ) ) ;
1989
+ data . getRequests . Add ( player_id ) ;
1990
+ data . getRequests . Add ( CurrentPlatform . GetPlatformRepresentation ( platform ) . PlatformString ) ;
1980
1991
LootLockerAPIManager . GetOtherPlayersCharacterLoadout ( data , onComplete ) ;
1981
1992
}
1982
1993
@@ -2162,19 +2173,30 @@ public static void GetCurrentLoadOutToDefaultCharacter(Action<LootLockerGetCurre
2162
2173
}
2163
2174
2164
2175
/// <summary>
2165
- /// Get the loadout for a specific character.
2176
+ /// Get the current loadout for the default character of the specified player on the current platform
2166
2177
/// </summary>
2167
- /// <param name="characterID ">ID of the character to get the loadout for</param>
2178
+ /// <param name="playerID ">ID of the player to get the loadout for</param>
2168
2179
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerGetCurrentLoadouttoDefaultCharacterResponse</param>
2169
- public static void GetCurrentLoadOutToOtherCharacter ( string characterID , Action < LootLockerGetCurrentLoadouttoDefaultCharacterResponse > onComplete )
2180
+ public static void GetCurrentLoadOutToOtherCharacter ( string playerID , Action < LootLockerGetCurrentLoadouttoDefaultCharacterResponse > onComplete )
2181
+ {
2182
+ GetCurrentLoadOutToOtherCharacter ( playerID , CurrentPlatform . Get ( ) , onComplete ) ;
2183
+ }
2184
+
2185
+ /// <summary>
2186
+ /// Get the current loadout for the default character of the specified player and platform
2187
+ /// </summary>
2188
+ /// <param name="playerID">ID of the player to get the loadout for</param>
2189
+ /// <param name="platform">The platform that the ID of the player is for</param>
2190
+ /// <param name="onComplete">onComplete Action for handling the response of type LootLockerGetCurrentLoadouttoDefaultCharacterResponse</param>
2191
+ public static void GetCurrentLoadOutToOtherCharacter ( string playerID , Platforms platform , Action < LootLockerGetCurrentLoadouttoDefaultCharacterResponse > onComplete )
2170
2192
{
2171
2193
if ( ! CheckInitialized ( ) )
2172
2194
{
2173
2195
onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerGetCurrentLoadouttoDefaultCharacterResponse > ( ) ) ;
2174
2196
}
2175
2197
LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest ( ) ;
2176
- lootLockerGetRequest . getRequests . Add ( characterID ) ;
2177
- lootLockerGetRequest . getRequests . Add ( CurrentPlatform . GetString ( ) ) ;
2198
+ lootLockerGetRequest . getRequests . Add ( playerID ) ;
2199
+ lootLockerGetRequest . getRequests . Add ( CurrentPlatform . GetPlatformRepresentation ( platform ) . PlatformString ) ;
2178
2200
LootLockerAPIManager . GetCurrentLoadOutToOtherCharacter ( lootLockerGetRequest , onComplete ) ;
2179
2201
}
2180
2202
0 commit comments