Callback - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a Handler storing a reference to a function or an array of them and their arguments to execute them at later point. Single value specified as an argument will be provided to each execution. If multiple functions or methods are being executed, arguments specified in an array will be provided to calls at respective array positions as single argument, unless it is a nested array to provide every of its values as multiple arguments to a single call. Empty arrays provide zero arguments.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
ID
None
Yes
self.argument
{any|any[]|any[+]}
[ ]
Yes
scope
{handle:instance|struct}
other
Yes

Construction types

Name
Arguments
New constructor
function {function|function[]}
argument? {any|any[]|any[+]}
scope? {handle:instance|struct}
Empty
Constructor copy
other {Callback}
⚠️ **GitHub.com Fallback** ⚠️