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