Skip to main content

FinishSpawnProjectTask

A class in Root.Township, the global namespace.

Game task action that counts finishing a spawn project for one target prefab. Asset made from the Game Tasks menu.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private uint spawningTargetPrefab hash the spawned object must match.

Properties​

MemberWhat it is
override GameActionChannel Channel { get; }Listens on GameActionChannel.FinishRepair, the same channel as repair tasks.

Methods​

MemberWhat it is
protected override bool IsValid(FinishSpawnProjectTaskArgument argument)True when the finished project spawned the prefab with hash spawningTarget.