Environment variables
You can get information about the environment the game is run in. To do this, use the ysdk.environment object.
1{
2 app: {
3 id: string
4 },
5 i18n: {
6 lang: string
7 },
8 payload: string|nil
9}
Environment object
Contains game environment variables.
|
Parameter |
Type |
Description |
|
|
|
Game data. |
|
|
|
Service internationalization. |
|
|
|
The value of the |
App structure
|
Parameter |
Type |
Description |
|
|
|
Game ID. |
i18n structure
|
Parameter |
Type |
Description |
|
|
|
Yandex Games interface language in ISO 639-1 format. For example, |