Table of Contents

Class RequestCommandResultHandler

Namespace
Uncreated.Warfare.Interaction.Requests
Assembly
Uncreated.Warfare.dll

Handles chat output for /request.

public class RequestCommandResultHandler : IRequestResultHandler
Inheritance
RequestCommandResultHandler
Implements
Inherited Members

Constructors

RequestCommandResultHandler(ChatService, TranslationInjection<RequestTranslations>)

public RequestCommandResultHandler(ChatService chatService, TranslationInjection<RequestTranslations> translations)

Parameters

chatService ChatService
translations TranslationInjection<RequestTranslations>

Properties

CanUseIMGUI

If translations for methods taking a string can use IMGUI for translations.

public bool CanUseIMGUI { get; }

Property Value

bool

Methods

MissingCreditsOwnership(WarfarePlayer, IRequestable<object>, double)

Called when the player has to purchase the requestable object with /buy but hasn't yet.

public void MissingCreditsOwnership(WarfarePlayer player, IRequestable<object> value, double creditCost)

Parameters

player WarfarePlayer
value IRequestable<object>
creditCost double

The total amount of credits required to purchase the object.

MissingDonorOwnership(WarfarePlayer, IRequestable<object>, decimal)

Called when the player has to purchase the requestable object with a donation.

public void MissingDonorOwnership(WarfarePlayer player, IRequestable<object> value, decimal usdCost)

Parameters

player WarfarePlayer
value IRequestable<object>
usdCost decimal

The total amount of USD required to purchase the object.

MissingExclusiveOwnership(WarfarePlayer, IRequestable<object>)

Called when the player doesn't have access to an object.

public void MissingExclusiveOwnership(WarfarePlayer player, IRequestable<object> value)

Parameters

player WarfarePlayer
value IRequestable<object>

MissingRequirement(WarfarePlayer, IRequestable<object>, string)

Called when a generic requirement isn't met for this requestable object.

public void MissingRequirement(WarfarePlayer player, IRequestable<object> value, string localizedRequirement)

Parameters

player WarfarePlayer
value IRequestable<object>
localizedRequirement string

Exceptions

GameThreadException

MissingUnlockCost(WarfarePlayer, IRequestable<object>, UnlockCost)

Called when the player doesn't meet an unlock cost.

public void MissingUnlockCost(WarfarePlayer player, IRequestable<object> value, UnlockCost unlockCost)

Parameters

player WarfarePlayer
value IRequestable<object>
unlockCost UnlockCost

MissingUnlockRequirement(WarfarePlayer, IRequestable<object>, UnlockRequirement)

Called when the player doesn't meet an unlock cost.

public void MissingUnlockRequirement(WarfarePlayer player, IRequestable<object> value, UnlockRequirement unlockRequirement)

Parameters

player WarfarePlayer
value IRequestable<object>
unlockRequirement UnlockRequirement

NotFoundOrRegistered(WarfarePlayer)

Called when the requestable object isn't registered or can't be found, etc.

public void NotFoundOrRegistered(WarfarePlayer player)

Parameters

player WarfarePlayer

Exceptions

GameThreadException

Success(WarfarePlayer, IRequestable<object>)

Called when a generic requirement isn't met for this requestable object.

public void Success(WarfarePlayer player, IRequestable<object> value)

Parameters

player WarfarePlayer
value IRequestable<object>

Exceptions

GameThreadException

VehicleDelayed(WarfarePlayer, IRequestable<object>, TimeSpan)

Called when the player tries to request a vehicle that's currently delayed.

public void VehicleDelayed(WarfarePlayer player, IRequestable<object> value, TimeSpan timeLeft)

Parameters

player WarfarePlayer
value IRequestable<object>
timeLeft TimeSpan