Table of Contents

Interface IReadOnlyHudCollection<TElementContainer, TElement>

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

Read-only interface for collections of HUD elements wrapped in decorator containers.

public interface IReadOnlyHudCollection<TElementContainer, TElement> : IReadOnlyList<TElementContainer>, IReadOnlyCollection<TElementContainer>, IEnumerable<TElementContainer>, IEnumerable where TElementContainer : IHudNodeContainer<TElement>, new() where TElement : HudNodeBase

Type Parameters

TElementContainer

Type of the container/decorator wrapping each element. Must implement IHudNodeContainer<TElement>.

TElement

Actual HUD element type stored in each container.

Inherited Members

Properties

Collection

Read-only access to the underlying container list.

IReadOnlyList<TElementContainer> Collection { get; }

Property Value

IReadOnlyList<TElementContainer>

Methods

Find(Func<TElementContainer, bool>)

Returns the first container matching the predicate, or default if none found.

TElementContainer Find(Func<TElementContainer, bool> predicate)

Parameters

predicate Func<TElementContainer, bool>

Returns

TElementContainer

FindIndex(Func<TElementContainer, bool>)

Returns the index of the first matching container, or -1 if none found.

int FindIndex(Func<TElementContainer, bool> predicate)

Parameters

predicate Func<TElementContainer, bool>

Returns

int