megalanthusdefold-gamepush
megalanthus/defold-gamepush/gamepush.core.player_stats
GamePush player statistics: days played and time in game.
- GitHub: megalanthus/defold-gamepush — pinned to
v1.4.1- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as core_player_stats from "gamepush.core.player_stats"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
Functions
active_days(): number
The number of days the player has played.
Returns
number
active_days_consecutive(): number
The number of consecutive days the player has played.
Returns
number
playtime_today(): number
The number of seconds the player has played today.
Returns
number
playtime_all(): number
The number of seconds the player has played in total.
Returns
number