Class HudCollection<TElementContainer>
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Generic collection of HUD elements, each wrapped in a decorator container. Elements inside containers are parented directly to this collection (not to their containers). Supports full IList-like manipulation while ensuring proper registration/unregistration with the HUD tree.
Alias for HudCollection<TElementContainer, TElement> where the element type is HudElementBase.
public class HudCollection<TElementContainer> : HudCollection<TElementContainer, HudElementBase>, IReadOnlyHudElement, IReadOnlyHudNode, IReadOnlyHudParent, IHudCollection<TElementContainer, HudElementBase>, IReadOnlyHudCollection<TElementContainer, HudElementBase>, IReadOnlyList<TElementContainer>, IReadOnlyCollection<TElementContainer>, IEnumerable<TElementContainer>, IEnumerable where TElementContainer : IHudNodeContainer<HudElementBase>, new()
Type Parameters
TElementContainerType of the container/decorator wrapping each element. Must implement IHudNodeContainer<TElement>.
- Inheritance
-
HudCollection<TElementContainer, HudElementBase>HudCollection<TElementContainer>
- Implements
-
IHudCollection<TElementContainer, HudElementBase>IReadOnlyHudCollection<TElementContainer, HudElementBase>IReadOnlyList<TElementContainer>IReadOnlyCollection<TElementContainer>IEnumerable<TElementContainer>
- Inherited Members
Constructors
HudCollection(HudParentBase)
public HudCollection(HudParentBase parent = null)
Parameters
parentHudParentBase