Skip to main content

CustomArgumentGameAction<T>

An abstract class in Root.Township, the global namespace.

Base for a game task action that only checks one kind of task argument.

Constructors​

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

Methods​

MemberWhat it is
override bool IsValid(GameTaskActionArgument argument)Casts the argument to the expected type (null if it's another type) and checks it.
protected abstract bool IsValid(T argument)Casts the argument to the expected type (null if it's another type) and checks it.