Class KitLayoutService
public class KitLayoutService
- Inheritance
-
KitLayoutService
- Inherited Members
Constructors
KitLayoutService(ILogger<KitLayoutService>, DroppedItemTracker, IKitsDbContext)
public KitLayoutService(ILogger<KitLayoutService> logger, DroppedItemTracker droppedItemTracker, IKitsDbContext dbContext)
Parameters
loggerILogger<KitLayoutService>droppedItemTrackerDroppedItemTrackerdbContextIKitsDbContext
Methods
ResetLayoutAsync(CSteamID, uint, CancellationToken)
Remove all item transformations for the given player for a kit.
public Task<bool> ResetLayoutAsync(CSteamID player, uint kitPrimaryKey, CancellationToken token = default)
Parameters
playerCSteamIDkitPrimaryKeyuinttokenCancellationToken
Returns
SaveLayoutAsync(WarfarePlayer, CancellationToken)
Save the player's current inventory as the layout for their equipped kit.
public Task<bool> SaveLayoutAsync(WarfarePlayer player, CancellationToken token = default)
Parameters
playerWarfarePlayertokenCancellationToken
Returns
TryReverseLayoutTransformations(WarfarePlayer, Kit)
Undoes the player's inventory by moving items back to where the kit has them layed out.
public void TryReverseLayoutTransformations(WarfarePlayer player, Kit kitWithItems)
Parameters
playerWarfarePlayerkitWithItemsKit