Skip to content

management

Francisco Dias edited this page Dec 17, 2024 · 1 revision

Management

This a module that contains a couple of general management functions.

Functions

The following functions are provided:

Structs

The following structs can be used:



Back To Top

GOG_GetError

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:

Error


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.




Back To Top

GOG_ProcessData

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.




Back To Top

Error

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.

Clone this wiki locally