InteractionCollection

Namespace: Murder.Interactions
Assembly: Murder.dll

public sealed struct InteractionCollection : IInteraction

This triggers a list of different interactions within this entity.

Implements: IInteraction

⭐ Constructors

public InteractionCollection()
public InteractionCollection(ImmutableArray<T> interactives)

Parameters
interactives ImmutableArray<T>

⭐ Properties

Interactives

public readonly ImmutableArray<T> Interactives;

Returns
ImmutableArray<T>

⭐ Methods

WithInteraction(IInteractiveComponent)

public InteractionCollection WithInteraction(IInteractiveComponent interactive)

Parameters
interactive IInteractiveComponent

Returns
InteractionCollection

Interact(World, Entity, Entity)

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

Parameters
world World
interactor Entity
interacted Entity