"> "> ">
namespace StatHub;
[GlobalClass, Icon("res://addons/StatHub/Assets/StatContainer.png")]
public sealed partial class StatContainer : Node, IEnumerable<Stat>
A container is used to store each stat owned by a particular source. Stats must be children of a stat container to be recognized by the Hub and used with most of its functionality.
onLoadedContainerpublic delegate void LoadedContainer(StatContainer container);
public static event LoadedContainer onLoadedContainer;
Invoked when a container is readied.
This is not intended for use, and the Hub’s onAddedContainer should be used, instead.
onUnloadedContainerpublic delegate void UnloadedContainer(StatContainer container);
public static event UnloadedContainer onUnloadedContainer;
Invoked when a container has exited the tree.
This is not intended for use, and the Hub’s onRemovedContainer should be used, instead.
Statspublic readonly ReadOnlyCollection<Stat> Stats;
Contains all Stat children of this StatContainer.
Call UpdateStatsList() to manually update the collection.
TagHolder[Export]
public TagHolder TagHolder { get; private set; }
The tag holder to match for this container.