-
Notifications
You must be signed in to change notification settings - Fork 1
management
Francisco Dias edited this page Dec 17, 2024
·
1 revision
This a module that contains a couple of general management functions.
The following functions are provided:
The following structs can be used:
This function retrieves the error connected with the last API call on the local thread.
Note
If there was no error the return struct will be empty.
Syntax:
GOG_GetError()
Returns:
Example:
var error = GOG_GetError();
if (variable_struct_names_count(error) != 0)
{
var _type = error.Type;
var _message = error.Msg;
var _name = error.Name;
}
The code above provides a simple usage example.
This function should be called each frame while the GOG extension is active. It's recommended to use a persistent Controller object that is created or placed in the first room and this call is in the Step Event.
Syntax:
GOG_ProcessData()
Returns:
N/A
Example:
GOG_ProcessData();
The code above provides a simple usage example.
A struct containing error information
This struct is referenced by the following functions:
Member | Type | Description |
---|---|---|
Type | Real | The type of the error. |
Msg | String | The error message. |
Name | String | The name of the error. |
GameMaker 2024