A class in Root.Township, Alta.Pages.
Game task asset (Township Tale/Game Tasks/Dock Page) that counts when a page item is docked into one of the chosen docks.
Constructors
| Member | What it is |
|---|
DockPageTask() | 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<NetworkPrefab> dockPrefabs | Dock prefabs that count; empty means any dock. |
private HashSet<uint> dockPrefabsHashes | Hashes of dockPrefabs, filled in Initialize. |
private List<Object> targetPages | Pages (any IPageBasis asset) that count; empty means any page. |
Properties
| Member | What it is |
|---|
override GameActionChannel Channel { get; } | Listens on the DockObject game action channel. |
Methods
| Member | What it is |
|---|
protected override void Initialize() | Builds dockPrefabsHashes from the dock prefab list. |
protected override bool IsValid(DockObjectTaskArgument argument) | True when the docked item is a page or duplicate page, the dock passes the dock filter, and the page matches targetPages if any are set. |