Skip to content

CallbackMap

Inherits: Node

Description

A simple class to manage callbacks for different keys

Properties

NameTypeDefault
callbacksDictionary
single_callbacksArray

Methods

ReturnsName
void_validate_key ( key: Variant )
voidadd ( key: Variant, callback: Callable )
voidadd_once ( key: Variant, callback: Callable )
voidcall_key ( key: Variant, args: Array )
voidremove ( key: Variant, callback: Callable )

Property Descriptions

callbacks: Dictionary

Map of callbacks

single_callbacks: Array

No description provided yet.

Method Descriptions

_validate_key (key: Variant ) -> void

No description provided yet.

add (key: Variant , callback: Callable ) -> void

No description provided yet.

add_once (key: Variant , callback: Callable ) -> void

No description provided yet.

call_key (key: Variant , args: Array ) -> void

No description provided yet.

remove (key: Variant , callback: Callable ) -> void

No description provided yet.