namespace StatHub;

[GlobalClass]
public sealed partial class GlobalModifier : RefCounted

A global modifier is an object used to attach a modifier to applicable stats and figures automatically.

This class has no functionality on its own and should be used in tandem with the Hub and its helpers.

Constructors:

GlobalModifier(StatModifier, bool)

public GlobalModifier(StatModifier modifier, bool persistent)

Creates a new global modifier of the input modifier.

There is often no real reason to create this directly. Go through the helper StatHub.CreateAndAddGlobalModifier(...), instead.

Members:

Modifier

public readonly StatModifier Modifier;

The modifier this globalizes.

Persistent

public readonly bool Persistent;

Whether or not the modifier will continue to attach to newly created stats after first being created.

AttachedStats

public readonly HashSet<Stat> AttachedStats;

A collection of all stats this modifier is attached to.