Class PluginModulesComponent
Component which allows to add Plugin Modules to a world object (like better efficiency, longer labor queue etc).
Inheritance
System.Object
PluginModulesComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class PluginModulesComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, IHasBonuses, IHasEnvVars
Constructors
PluginModulesComponent()
Declaration
public PluginModulesComponent()
Fields
OnChanged
Declaration
public readonly ThreadSafeAction OnChanged
Field Value
Properties
AllowedModulesInfo
Cached information about allowed modules (tags) you can plug. Actual module items stored in inventory.
Declaration
public LocString AllowedModulesInfo { get; }
Property Value
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
Bonuses
Aggregates bonuses from all installed plugin modules.
Declaration
public IEnumerable<Bonus> Bonuses { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<Bonus> |
|
Inventory
Declaration
public AuthorizationInventory Inventory { get; }
Property Value
Methods
CanPutModule(User)
Declaration
[EnvVar]
public bool CanPutModule(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetModule(ModuleTypes)
Declaration
public PluginModule GetModule(ModuleTypes types)
Parameters
Returns
Initialize()
Declaration
public override void Initialize()
Overrides
PutModule(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
public void PutModule(Player player, InteractionTriggerInfo trigger, InteractionTarget target)
Parameters
TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
Declaration
public override InventoryMoveResult TryPickup(Player player, InventoryChangeSet playerInvChanges, Inventory targetInventory, bool force)
Parameters
Returns
Overrides
Explicit Interface Implementations
IInventoryWorldObjectComponent.Inventory
Declaration
Inventory IInventoryWorldObjectComponent.Inventory { get; }
Returns
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods