TilesetComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct TilesetComponent : IComponent

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

Implements: IComponent

⭐ Constructors

public TilesetComponent()
public TilesetComponent(ImmutableArray<T> tilesets)

Parameters
tilesets ImmutableArray<T>

⭐ Properties

Tilesets

public readonly ImmutableArray<T> Tilesets;

Returns
ImmutableArray<T>

⭐ Methods

WithTile(Guid)

public TilesetComponent WithTile(Guid tile)

Parameters
tile Guid

Returns
TilesetComponent

WithTiles(ImmutableArray)

public TilesetComponent WithTiles(ImmutableArray<T> tiles)

Parameters
tiles ImmutableArray<T>

Returns
TilesetComponent