Skip to content

Commit

Permalink
#2 Added action for Environment Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
achubutkin committed Aug 8, 2023
1 parent e09b1ed commit fcc7423
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,50 @@
],
"objectGroups": []
},
{
"description": "You can get information about the game's environment.",
"fullName": "Get environment variables",
"functionType": "Action",
"name": "GetEnvironmentVariables",
"sentence": "Get environment variables to _PARAM1_",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "YandexGamesSDK::Initialized"
},
"parameters": [
"",
""
]
}
],
"actions": [],
"events": [
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": [
"var data = gdjs._YandexGamesSDK.getInstance().environment;\r",
"gdjs._YandexGamesSDK.setFunctionContextJsonCallback(JSON.stringify(data), eventsFunctionContext);"
],
"parameterObjects": "",
"useStrict": true,
"eventsSheetExpanded": true
}
]
}
],
"parameters": [
{
"description": "Global variable where to store environment variables",
"name": "ResultVariableName",
"type": "string"
}
],
"objectGroups": []
},
{
"description": "Checking for the successful loading of the player data.",
"fullName": "Load the player data succeeded",
Expand Down

0 comments on commit fcc7423

Please sign in to comment.