Class ReputationReward
public class ReputationReward : IQuestReward
- Inheritance
-
ReputationReward
- Implements
- Inherited Members
Constructors
ReputationReward(IConfiguration)
public ReputationReward(IConfiguration configuration)
Parameters
configurationIConfiguration
ReputationReward(int)
public ReputationReward(int credits)
Parameters
creditsint
ReputationReward(JsonElement)
public ReputationReward(JsonElement configuration)
Parameters
configurationJsonElement
Properties
Reputation
Amount of reputation to give the recipient.
public int Reputation { 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