@@ -151,6 +151,27 @@ public static void SetPlayerUlidToInactive(string playerUlid)
151
151
LootLockerStateData . SetPlayerULIDToInactive ( playerUlid ) ;
152
152
}
153
153
154
+ /// <summary>
155
+ /// Make the state for all currently active players to be "inactive".
156
+ ///
157
+ /// This will not delete the state, but it will remove all players from the list of active players.
158
+ /// </summary>
159
+ public static void SetAllPlayersToInactive ( )
160
+ {
161
+ LootLockerStateData . SetAllPlayersToInactive ( ) ;
162
+ }
163
+
164
+ /// <summary>
165
+ /// Make the state for all currently active players except the specified player to be "inactive".
166
+ ///
167
+ /// This will not delete the state, but it will remove all players except the specified one from the list of active players.
168
+ /// </summary>
169
+ /// <param name="playerUlid">The ULID of the player to keep active.</param>
170
+ public static void SetAllPlayersToInactiveExceptForPlayer ( string playerUlid )
171
+ {
172
+ LootLockerStateData . SetAllPlayersToInactiveExceptForPlayer ( playerUlid ) ;
173
+ }
174
+
154
175
/// <summary>
155
176
/// Get a list of player ULIDs that there is a stored state for.
156
177
/// This includes both active and inactive players.
@@ -213,6 +234,17 @@ public static void ClearAllPlayerCaches()
213
234
LootLockerStateData . ClearAllSavedStates ( ) ;
214
235
}
215
236
237
+ /// <summary>
238
+ /// Remove all stored state information except for the specified player (players will need to re-authenticate).
239
+ /// This will clear all player states except for the specified player.
240
+ /// If the specified player is the default player, it will remain as the default player.
241
+ /// </summary>
242
+ /// <param name="playerUlid">The ULID of the player to save the cache for.</param>
243
+ public static void ClearAllPlayerCachesExceptForPlayer ( string playerUlid )
244
+ {
245
+ LootLockerStateData . ClearAllSavedStatesExceptForPlayer ( playerUlid ) ;
246
+ }
247
+
216
248
#endregion
217
249
218
250
#region Authentication
0 commit comments