namespace StatHub;

[GlobalClass, Icon("res://addons/StatHub/Assets/StatHub.png")]
public partial class StatHub : Node

The Hub is the central manager of the rest of the plugin and provides various helpers and functionality. It is an AutoLoad for use in GDScript, but most functionality is static to be easily used in C#.

Signals:

AddedContainer

[Signal]
public delegate void AddedContainerEventHandler(StatContainer container);

Emitted when a container is loaded and added to the Hub's collection.

AddedGlobalModifier

[Signal]
public delegate void AddedGlobalModifierEventHandler(GlobalModifier globalModifier);

Emitted when a global modifier is added via the Hub.

RemovedContainer

[Signal]
public delegate void RemovedContainerEventHandler(StatContainer container);

Emitted when a container is unloaded and removed from the Hub's collection.

RemovedGlobalModifier

[Signal]
public delegate void RemovedGlobalModifierEventHandler(GlobalModifier globalModifier);

Emitted when a global modifier is removed via the Hub.

Members:

ActiveContainers

public static readonly ReadOnlyCollection<StatContainer> ActiveContainers;

A collection of all active stat containers recognized by the Hub

GlobalModifiers