Skip to main content

PlayerProgressFlag

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

Base for per-player completion flags looked up by hash: game achievements and micro tutorials.

Constructors​

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

Methods​

MemberWhat it is
static bool TryGet<TProgressFlagType>(uint hash, out TProgressFlagType flag)Looks up a flag by hash or name and checks it is the type you asked for.
static bool TryGet<T>(string input, out T flag, bool isLogging = true)Looks up a flag by hash or name and checks it is the type you asked for.

Used in​

Members of other types that take, return or hold a PlayerProgressFlag: