Show / Hide Table of Contents

Class RepairBountyComponent

A component that allows purchase + pickup of a world object.

Inheritance
System.Object
WorldObjectComponent
RepairBountyComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IHasEnvVars
IPersistentData
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
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
Type Description
Currency

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
Type Description
BankAccount

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
Type Description
RepairBountyData

Title

Declaration
public LocString Title { get; set; }
Property Value
Type Description
LocString

Methods

Destroy()

Declaration
public override void Destroy()
Overrides
WorldObjectComponent.Destroy()

HasOwner()

Declaration
public bool HasOwner()
Returns
Type Description
System.Boolean

Initialize()

Declaration
public override void Initialize()
Overrides
WorldObjectComponent.Initialize()

OnCreate()

Declaration
public override void OnCreate()
Overrides
WorldObjectComponent.OnCreate()

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
Type Name Description
Player player
InteractionTriggerInfo trigger
InteractionTarget target

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

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
IHasEnvVars
IPersistentData

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾