A class in Root.Township, the global namespace.
A game task asset (TransferAmount channel) that counts when a matching prefab is transferred. Created from the Township Tale / Game Tasks menu.
Constructors
| Member | What it is |
|---|
TransferAmountTask() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private List<uint> ignoreHashes | Prefab hashes that never count. |
private bool isAnyPrefab | When true, every transfer counts. |
private List<uint> targetHashes | Prefab hashes that count. |
Properties
Methods
| Member | What it is |
|---|
protected override bool IsValid(TransferAmountArgument argument) | True if any prefab is allowed, or the transferred item's hash is in targetHashes and not in ignoreHashes. |