Skip to main content

PlatformStats

An abstract class in Root.Township, Alta.Achievements.

Base for a platform's achievements and stats backend. AchievementManager creates a SteamStats and forwards calls to it.

Constructors​

MemberWhat it is
protected PlatformStats()Creates a PlatformStats with default values.

Methods​

MemberWhat it is
abstract void Initialize()Sets up the platform backend.
abstract void LateUpdate()Called each frame by AchievementManager.
abstract void RequestUpdate(Achievement achievement)Reads an achievement's or stat's current value from the platform into the game's object.
abstract void RequestUpdate(Stat stat)Reads an achievement's or stat's current value from the platform into the game's object.
abstract void StatChanged(Stat stat)Tells the backend a stat's value changed so it can be stored.
abstract void UnlockAchievement(Achievement achievement)Unlocks an achievement on the platform.

Used in​

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