Table of Contents

Class CreditsReward

Namespace
Uncreated.Warfare.Quests
Assembly
Uncreated.Warfare.dll
public class CreditsReward : IQuestReward
Inheritance
CreditsReward
Implements
Inherited Members

Constructors

CreditsReward(IConfiguration)

public CreditsReward(IConfiguration configuration)

Parameters

configuration IConfiguration

CreditsReward(int)

public CreditsReward(int credits)

Parameters

credits int

CreditsReward(JsonElement)

public CreditsReward(JsonElement configuration)

Parameters

configuration JsonElement

Properties

Credits

Amount of credits to give the recipient.

public int Credits { get; }

Property Value

int

Methods

CreateQuestRewardString()

public string CreateQuestRewardString()

Returns

string

GrantRewardAsync(WarfarePlayer, QuestTracker, IServiceProvider, CancellationToken)

Dispatch the reward to the player.

public UniTask GrantRewardAsync(WarfarePlayer player, QuestTracker tracker, IServiceProvider serviceProvider, CancellationToken token = default)

Parameters

player WarfarePlayer
tracker QuestTracker
serviceProvider IServiceProvider

The scoped service provider for the current layout.

token CancellationToken

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

writer Utf8JsonWriter