RouteComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct RouteComponent : IComponent

Implements: IComponent

⭐ Constructors

public RouteComponent(ImmutableDictionary<TKey, TValue> route, Point initial, Point target)

Parameters
route ImmutableDictionary<TKey, TValue>
initial Point
target Point

⭐ Properties

Initial

public readonly Point Initial;

Initial position cell.

Returns
Point

Nodes

public readonly ImmutableDictionary<TKey, TValue> Nodes;

Nodes path that the agent will make.

Returns
ImmutableDictionary<TKey, TValue>

Target

public readonly Point Target;

Goal position cell.

Returns
Point