Skip to main content

DockPageTask

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​

MemberWhat it is
DockPageTask()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private List<NetworkPrefab> dockPrefabsDock prefabs that count; empty means any dock.
private HashSet<uint> dockPrefabsHashesHashes of dockPrefabs, filled in Initialize.
private List<Object> targetPagesPages (any IPageBasis asset) that count; empty means any page.

Properties​

MemberWhat it is
override GameActionChannel Channel { get; }Listens on the DockObject game action channel.

Methods​

MemberWhat 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.