Interface IRequestResultHandler
- Namespace
- Uncreated.Warfare.Interaction.Requests
- Assembly
- Uncreated.Warfare.dll
Used to handle various results from a request.
public interface IRequestResultHandler
Properties
CanUseIMGUI
If translations for methods taking a string can use IMGUI for translations.
bool CanUseIMGUI { get; }
Property Value
Methods
MissingCreditsOwnership(WarfarePlayer, IRequestable<object>, double)
Called when the player has to purchase the requestable object with /buy but hasn't yet.
void MissingCreditsOwnership(WarfarePlayer player, IRequestable<object> value, double creditCost)
Parameters
playerWarfarePlayervalueIRequestable<object>creditCostdoubleThe 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.
void MissingDonorOwnership(WarfarePlayer player, IRequestable<object> value, decimal usdCost)
Parameters
playerWarfarePlayervalueIRequestable<object>usdCostdecimalThe total amount of USD required to purchase the object.
MissingExclusiveOwnership(WarfarePlayer, IRequestable<object>)
Called when the player doesn't have access to an object.
void MissingExclusiveOwnership(WarfarePlayer player, IRequestable<object> value)
Parameters
playerWarfarePlayervalueIRequestable<object>
MissingRequirement(WarfarePlayer, IRequestable<object>, string)
Called when a generic requirement isn't met for this requestable object.
void MissingRequirement(WarfarePlayer player, IRequestable<object> value, string localizedRequirement)
Parameters
playerWarfarePlayervalueIRequestable<object>localizedRequirementstring
Exceptions
MissingUnlockCost(WarfarePlayer, IRequestable<object>, UnlockCost)
Called when the player doesn't meet an unlock cost.
void MissingUnlockCost(WarfarePlayer player, IRequestable<object> value, UnlockCost unlockCost)
Parameters
playerWarfarePlayervalueIRequestable<object>unlockCostUnlockCost
MissingUnlockRequirement(WarfarePlayer, IRequestable<object>, UnlockRequirement)
Called when the player doesn't meet an unlock cost.
void MissingUnlockRequirement(WarfarePlayer player, IRequestable<object> value, UnlockRequirement unlockRequirement)
Parameters
playerWarfarePlayervalueIRequestable<object>unlockRequirementUnlockRequirement
NotFoundOrRegistered(WarfarePlayer)
Called when the requestable object isn't registered or can't be found, etc.
void NotFoundOrRegistered(WarfarePlayer player)
Parameters
playerWarfarePlayer
Exceptions
Success(WarfarePlayer, IRequestable<object>)
Called when a generic requirement isn't met for this requestable object.
void Success(WarfarePlayer player, IRequestable<object> value)
Parameters
playerWarfarePlayervalueIRequestable<object>
Exceptions
VehicleDelayed(WarfarePlayer, IRequestable<object>, TimeSpan)
Called when the player tries to request a vehicle that's currently delayed.
void VehicleDelayed(WarfarePlayer player, IRequestable<object> value, TimeSpan timeLeft)
Parameters
playerWarfarePlayervalueIRequestable<object>timeLeftTimeSpan