TileGridComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct TileGridComponent : 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 TileGridComponent()
public TileGridComponent(Point origin, int width, int height)

Parameters
origin Point
width int
height int

public TileGridComponent(TileGrid grid)

Parameters
grid TileGrid

public TileGridComponent(int width, int height)

Parameters
width int
height int

⭐ Properties

Grid

public readonly TileGrid Grid;

Returns
TileGrid

Height

public readonly int Height;

Returns
int

Origin

public readonly Point Origin;

Returns
Point

Rectangle

public IntRectangle Rectangle { get; }

Returns
IntRectangle

Width

public readonly int Width;

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