2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: gameHighScore
|
|
|
|
description: Contains one row of the game high scores table
|
|
|
|
---
|
|
|
|
## Constructor: gameHighScore
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contains one row of the game high scores table
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|position|[int](../types/int.md) | Yes|Position in the high score table|
|
|
|
|
|user\_id|[int](../types/int.md) | Yes|User identifier|
|
|
|
|
|score|[int](../types/int.md) | Yes|User score|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [GameHighScore](../types/GameHighScore.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$gameHighScore = ['_' => 'gameHighScore', 'position' => int, 'user_id' => int, 'score' => int];
|
2017-03-11 19:54:51 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "gameHighScore", "position": int, "user_id": int, "score": int}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
gameHighScore={_='gameHighScore', position=int, user_id=int, score=int}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|