Class RepairBountyComponent
A component that allows purchase + pickup of a world object.
Inheritance
System.Object
RepairBountyComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class RepairBountyComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IHasEnvVars, IPersistentData
Constructors
RepairBountyComponent()
Declaration
public RepairBountyComponent()
Properties
AllowRepairWhenDurabilityDropsToPercentOrBelow
Declaration
public float AllowRepairWhenDurabilityDropsToPercentOrBelow { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Currency
Declaration
public Currency Currency { get; set; }
Property Value
ItemsMustHaveIntegrityAtOrAbovePercent
Declaration
public float ItemsMustHaveIntegrityAtOrAbovePercent { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
OfferRepairBounty
Declaration
public bool OfferRepairBounty { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
OwnerAccount
Declaration
public BankAccount OwnerAccount { get; set; }
Property Value
PersistentData
Declaration
public object PersistentData { get; set; }
Property Value
| Type |
Description |
| System.Object |
|
Price
Declaration
public float Price { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
RepairDurability
Declaration
public float RepairDurability { get; }
Property Value
| Type |
Description |
| System.Single |
|
RepairPriceString
Declaration
[EnvVar]
public string RepairPriceString { get; }
Property Value
| Type |
Description |
| System.String |
|
SaleData
Declaration
public RepairBountyData SaleData { get; set; }
Property Value
Title
Declaration
public LocString Title { get; set; }
Property Value
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
HasOwner()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
Initialize()
Declaration
public override void Initialize()
Overrides
OnCreate()
Declaration
public override void OnCreate()
Overrides
ProratedPrice()
Calculates the prorated price based on how broken the thing is.
Declaration
public float ProratedPrice()
Returns
| Type |
Description |
| System.Single |
|
RepairInteraction(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
public void RepairInteraction(Player player, InteractionTriggerInfo trigger, InteractionTarget target)
Parameters
ReplaceParts(User)
Declaration
public Task ReplaceParts(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
ShowRepairBounty(User)
Can only buy it if its for sale, has valid props, and user isnt already an owner (unless force enabled)
Declaration
[EnvVar]
public bool ShowRepairBounty(User user = null)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods