Class KitPlayerComponent
public class KitPlayerComponent : IPlayerComponent
- Inheritance
-
KitPlayerComponent
- Implements
- Inherited Members
Properties
ActiveBranch
The branch of the player's current kit.
public Branch ActiveBranch { get; }
Property Value
ActiveClass
The class of the player's current kit.
public Class ActiveClass { get; }
Property Value
ActiveKitId
The internal name of the player's current kit.
public string? ActiveKitId { get; }
Property Value
ActiveKitKey
The primary key of the player's current kit.
public uint? ActiveKitKey { get; }
Property Value
- uint?
CachedKit
Get a copy of the kit from the kit cache if it's added. Use GetActiveKitAsync(KitInclude, CancellationToken) to get an up-to-date copy.
public Kit? CachedKit { get; }
Property Value
Remarks
Guaranteed to have Giveable data.
HasKit
If the player has a kit equipped.
public bool HasKit { get; }
Property Value
HasLowAmmo
If the player's current kit was equipped with low ammo.
public bool HasLowAmmo { get; }
Property Value
LoadoutComparer
Comparer used to sort cached loadouts.
public IComparer<Kit?> LoadoutComparer { get; }
Property Value
Loadouts
Ordered list of all loadouts including the Cached include level.
public IReadOnlyList<Kit> Loadouts { get; }
Property Value
Player
public WarfarePlayer Player { get; }
Property Value
Methods
GetActiveKitAsync(KitInclude, CancellationToken)
Get an up-to-date copy of the actively equipped kit.
public Task<Kit?> GetActiveKitAsync(KitInclude include, CancellationToken token = default)
Parameters
includeKitIncludetokenCancellationToken
Returns
IsKitAccessible(uint)
public bool IsKitAccessible(uint kitPk)
Parameters
kitPkuint
Returns
IsKitFavorited(uint)
public bool IsKitFavorited(uint kitPk)
Parameters
kitPkuint