Class KitAccessReward
public class KitAccessReward : IQuestReward
- Inheritance
-
KitAccessReward
- Implements
- Inherited Members
Constructors
KitAccessReward(IConfiguration)
public KitAccessReward(IConfiguration configuration)
Parameters
configurationIConfiguration
KitAccessReward(string)
public KitAccessReward(string kitId)
Parameters
kitIdstring
KitAccessReward(JsonElement)
public KitAccessReward(JsonElement configuration)
Parameters
configurationJsonElement
Properties
KitId
The internal kit name of the kit to give access for the recipient.
public string? KitId { get; }
Property Value
Methods
CreateQuestRewardString()
public string CreateQuestRewardString()
Returns
GrantRewardAsync(WarfarePlayer, QuestTracker, IServiceProvider, CancellationToken)
Dispatch the reward to the player.
public UniTask GrantRewardAsync(WarfarePlayer player, QuestTracker tracker, IServiceProvider serviceProvider, CancellationToken token = default)
Parameters
playerWarfarePlayertrackerQuestTrackerserviceProviderIServiceProviderThe scoped service provider for the current layout.
tokenCancellationToken
Returns
- UniTask
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteToJson(Utf8JsonWriter)
public void WriteToJson(Utf8JsonWriter writer)
Parameters
writerUtf8JsonWriter