HashSetAction<T>
An abstract class in Root.Township, the global namespace.
Base for game task actions whose filters are sets built on first use. An empty set matches anything.
- Listed in Global namespace: E to H
- Inherits or implements
CustomArgumentGameAction<T> - Derived types
DockPageTask,DockObjectTask,SpecificCraftTask,SpecificSpawnItemTask
Constructors
| Member | What it is |
|---|---|
protected HashSetAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override bool IsValid(GameTaskActionArgument argument) | Runs Initialize the first time, then the normal argument check. |
protected abstract void Initialize() | Builds the subclass's sets. Called once, the first time IsValid runs. |
protected bool IsSkippingOut<TSet>(TSet value, HashSet<TSet> set) | True when the set has entries and the value isn't one of them. |