Skip to main content

MaxValueTask

A class in Root.Township, the global namespace.

Game task asset (Game Tasks/Max Value Object) that keeps the highest value it has been sent, on the MaxCount channel.

Constructors​

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

Properties​

MemberWhat it is
override GameActionChannel Channel { get; }Always MaxCount.

Methods​

MemberWhat it is
override int ReceiveNewValue(int currentValue, int newValue)Returns the larger of the current and new value.
protected override bool IsValid(MaxValueTaskArgument argument)Always true.