Class RepairComponent
Inheritance
System.Object
RepairComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
public class RepairComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler
Constructors
RepairComponent()
Declaration
Fields
MaxDurabilityPenaltyMultiplier
Set this to determine a multiplier based on skills/talents/etc for the max durability reduction during repair.
Declaration
public IDynamicValue MaxDurabilityPenaltyMultiplier
Field Value
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
Inventory
Declaration
public Inventory Inventory { get; }
Property Value
RepairMaterial
Declaration
public LimitedInventory RepairMaterial { get; set; }
Property Value
ToRepair
Declaration
public LimitedInventory ToRepair { get; set; }
Property Value
Methods
CanRepair(Player)
Declaration
public bool CanRepair(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Returns
| Type |
Description |
| System.Boolean |
|
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
PenaltyDetails(Player)
Declaration
public LocString PenaltyDetails(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Returns
Repair(Player, BankAccount)
Declaration
public void Repair(Player player, BankAccount account)
Parameters
RepairPreview(Player)
Declaration
public LocString RepairPreview(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Returns
TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
Declaration
public override InventoryMoveResult TryPickup(Player player, InventoryChangeSet invChanges, Inventory targetInventory, bool force)
Parameters
Returns
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods