AddComponentOnInteraction

Namespace: Murder.Interactions
Assembly: Murder.dll

public sealed struct AddComponentOnInteraction : IInteraction

This will trigger an effect by placing AddComponentOnInteraction.Component in the world.

Implements: IInteraction

⭐ Properties

Component

public readonly IComponent Component;

Returns
IComponent

Target

public readonly TargetEntity Target;

Returns
TargetEntity

⭐ Methods

Interact(World, Entity, Entity)

public virtual void Interact(World world, Entity interactor, Entity interacted)

Parameters
world World
interactor Entity
interacted Entity