You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// - `unregistered`: If set, will use `new_unregistered` instead of `new` for the namespace builder
28
28
/// - `core`: If set, marks the type as `core` using the `MarkAsCore` type data
29
29
/// - `significant`: If set, marks the type as `significant` using the `MarkAsSignificant` type data
30
+
/// - `use_dummy_registry`: If true will register into the [`DummyScriptFunctionRegistry`] instead of the full one. This is useful for documenting functions without actually making them available, if you're exposing them another way.
30
31
///
31
32
/// It is encouraged to place `significant` markers on your own types, for the purposes of documentation generation.
/// would call the `my_unload_handler` function, whenever the `on_script_unloaded` callback is triggered, which is when your script is about to be unloaded.
1355
+
///
1356
+
/// Registered callbacks take precedence over free-standing function callbacks, i.e. the below top level function:
1357
+
/// ```lua
1358
+
/// function on_script_unloaded()
1359
+
/// print("freestanding unload handler!")
1360
+
/// end
1361
+
/// ```
1362
+
///
1363
+
/// would be a valid handler, but if a registered callback existed, it would be called instead.
1364
+
///
1365
+
/// Arguments:
1366
+
/// * `callback`: the callback label to register this function against.
1367
+
/// * `function`: the callback function which will be stored as a handler for this callback label.
0 commit comments