-
Notifications
You must be signed in to change notification settings - Fork 13
Next: GetScriptData
Retrieves a pointer to the CScript object for a given script ID.
AurieStatus GetScriptData(
[in] int Index,
[out] CScript*& Script
);
The index of an element within the runner's script array, the data of which to retrieve.
Important
Script IDs returned by both GameMaker built-in functions and the GetNamedRoutineIndex function are offset by 100 000 due to how asset IDs are reserved.
To convert a script ID into the array index required by this function, subtract 100 000 from it.
A reference to a pointer-sized buffer, into which the address of the script's data will be written. The contents of this buffer are guaranteed to be left untouched if the function fails.
The function returns AURIE_SUCCESS
on success, otherwise returns a matching error code. If the internal runner function needed for indexing the script array isn't available, the AURIE_MODULE_INTERNAL_ERROR
status code is returned. The function returns AURIE_OBJECT_NOT_FOUND
array index provided via the Index
parameter is out of bounds.