Skip to content

StatAttribute

namespace Griff.Scenes;
public sealed class StatAttribute : FieldEditorAttribute

Marks a string property as a number of a target’s components to change, “Value” or “Health.Max” (a component’s name and its property’s): the Inspector lists the number properties of what’s in the scene to pick from, those of the things its targets are first (the components on any entity with one of targets, and those).

public IReadOnlyList<Type> Targets { get; }

The kinds of component its targets have (a card’s buff’s: Card and Health); empty when it can be anything.

public override string Describe()