megalanthusdefold-gamepush
megalanthus/defold-gamepush/gamepush.core.players
GamePush other players: fetch their data by id.
- 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_players from "gamepush.core.players"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
Functions
fetch(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches other players' data. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The players to fetch, for example{ ids: [62116670, 62142823] }.callback?:(result: unknown) => void— Receives the fetched data.