MapComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct MapComponent : IModifiableComponent, IComponent

This is a struct that points to a singleton class. Reactive systems won't be able to subscribe to this component.

Implements: IModifiableComponent, IComponent

⭐ Constructors

public MapComponent(int width, int height)

Parameters
width int
height int

⭐ Properties

Height

public int Height { get; }

Returns
int

Map

public readonly Map Map;

Returns
Map

Width

public int Width { get; }

Returns
int

⭐ Methods

Subscribe(Action)

public virtual void Subscribe(Action notification)

Parameters
notification Action

Unsubscribe(Action)

public virtual void Unsubscribe(Action notification)

Parameters
notification Action