ILoadoutSave.SaveCurrentToAsync method
Saves the worn setup into the loadout identified by index. Completes without sending anything when index is the worn loadout (Rejected), is not a saved loadout (NoSuchLoadout), when the worn loadout is not known yet (GameApiUnavailable), or while a loadout switch or another save is still in flight (Rejected). A refusal from the game itself is Rejected. On Success the framework re-reads the loadout list, so GetSlots and LoadoutsChanged catch up with the saved target shortly after.
public Task<LoadoutResult> SaveCurrentToAsync(int index, CancellationToken ct = default)| parameter | description |
|---|---|
| index | A Index value other than the worn loadout’s. |
| ct | Cancels the request before it is sent to the game. Once sent, the save cannot be recalled and the task completes with the game’s answer. |
Return Value
Section titled “Return Value”The outcome of the save.
See Also
Section titled “See Also”- enum LoadoutResult
- interface ILoadoutSave
- namespace Stellar.Abstractions.Services