InteractOnRuleMatchComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct InteractOnRuleMatchComponent : IComponent

Implements: IComponent

⭐ Constructors

public InteractOnRuleMatchComponent()
public InteractOnRuleMatchComponent(AfterInteractRule after, bool triggered, ImmutableArray<T> requirements)

Parameters
after AfterInteractRule
triggered bool
requirements ImmutableArray<T>

public InteractOnRuleMatchComponent(InteractOn interactOn, AfterInteractRule after, ImmutableArray<T> requirements)

Parameters
interactOn InteractOn
after AfterInteractRule
requirements ImmutableArray<T>

public InteractOnRuleMatchComponent(CriterionNode[] criteria)

Parameters
criteria CriterionNode[]

⭐ Properties

AfterInteraction

public readonly AfterInteractRule AfterInteraction;

Returns
AfterInteractRule

InteractOn

public readonly InteractOn InteractOn;

Returns
InteractOn

Requirements

public readonly ImmutableArray<T> Requirements;

List of requirements which will trigger the interactive component within the same entity.

Returns
ImmutableArray<T>

Triggered

public readonly bool Triggered;

This will only be triggered once the component has been interacted with. Used if AfterInteractRule.InteractOnReload is set.

Returns
bool

⭐ Methods

Disable()

public InteractOnRuleMatchComponent Disable()

Returns
InteractOnRuleMatchComponent