immersive-home/docs/reference/CallbackMap.md

62 lines
3.5 KiB
Markdown
Raw Normal View History

2024-03-16 19:45:43 +02:00
# CallbackMap
**Inherits:** [Node](https://docs.godotengine.org/de/4.x/classes/class_node.html)
2024-03-16 19:45:43 +02:00
## Description
A simple class to manage callbacks for different keys
## Properties
2024-03-17 01:14:31 +02:00
| Name | Type | Default |
| ------------------------------------------ | ------------------------------------------------------------------------------- | ------- |
| [callbacks](#prop-callbacks) | [Dictionary](https://docs.godotengine.org/de/4.x/classes/class_dictionary.html) | |
| [single_callbacks](#prop-single-callbacks) | [Array](https://docs.godotengine.org/de/4.x/classes/class_array.html) | |
2024-03-16 19:45:43 +02:00
## Methods
| Returns | Name |
| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void | [_validate_key](#-validate-key) ( key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) |
| void | [add](#add) ( key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html), callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) |
| void | [add_once](#add-once) ( key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html), callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) |
| void | [call_key](#call-key) ( key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html), args: [Array](https://docs.godotengine.org/de/4.x/classes/class_array.html) ) |
| void | [remove](#remove) ( key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html), callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) |
2024-03-17 01:14:31 +02:00
2024-03-16 19:45:43 +02:00
## Property Descriptions
2024-03-17 01:14:31 +02:00
### callbacks: [Dictionary](https://docs.godotengine.org/de/4.x/classes/class_dictionary.html) {#prop-callbacks}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
Map of callbacks
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
### single_callbacks: [Array](https://docs.godotengine.org/de/4.x/classes/class_array.html) {#prop-single-callbacks}
2024-03-16 19:45:43 +02:00
No description provided yet.
## Method Descriptions
2024-03-17 01:14:31 +02:00
### _validate_key (key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) ) -> void {#-validate-key}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### add (key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) , callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) -> void {#add}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### add_once (key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) , callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) -> void {#add-once}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### call_key (key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) , args: [Array](https://docs.godotengine.org/de/4.x/classes/class_array.html) ) -> void {#call-key}
2024-03-16 19:45:43 +02:00
No description provided yet.
2024-03-17 01:14:31 +02:00
### remove (key: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) , callback: [Callable](https://docs.godotengine.org/de/4.x/classes/class_callable.html) ) -> void {#remove}
2024-03-16 19:45:43 +02:00
No description provided yet.