Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Global Signal Nodes (Auto-bus fork)

An asset by akasob
The page banner background of a mountain and forest
Global Signal Nodes (Auto-bus fork) hero image

Quick Information

0 ratings
Global Signal Nodes (Auto-bus fork) icon image
akasob
Global Signal Nodes (Auto-bus fork)

# Global Signal Nodes (Auto-bus fork)## DescriptionThe purpose of the addon is to dynamically create global signals on shared signal bus (event bus) without the need to create a singleton to manage it.The addon adds 3 nodes:+ SignalEmitter <- a node representing a signal emitter, where the 'emit_to' property is the signal's name.+ SignalReceiver <- a node representing a signal receiver, where the 'react_to' property is the name of the signal it expects to receive.+ SignalRegister <- a node representing a signal registrator, where the 'signals' property is the list of signals to be registered on bus.To quickly test classes, place this code in your _ready():```gdscriptSignalReceiver.register("test", print) # immediately creates and registers global signalawait get_tree().process_frame # wait a frame, because some operations processes deferredSignalEmitter.fire("test", "test ok") # this prints that, and works everywhere```

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

# Global Signal Nodes (Auto-bus fork)

## Description

The purpose of the addon is to dynamically create global signals on shared signal bus (event bus) without the need to create a singleton to manage it.

The addon adds 3 nodes:
+ SignalEmitter <- a node representing a signal emitter, where the 'emit_to' property is the signal's name.
+ SignalReceiver <- a node representing a signal receiver, where the 'react_to' property is the name of the signal it expects to receive.
+ SignalRegister <- a node representing a signal registrator, where the 'signals' property is the list of signals to be registered on bus.

To quickly test classes, place this code in your _ready():
```gdscript
SignalReceiver.register("test", print) # immediately creates and registers global signal
await get_tree().process_frame # wait a frame, because some operations processes deferred
SignalEmitter.fire("test", "test ok") # this prints that, and works everywhere
```

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Global Signal Nodes (Auto-bus fork) icon image
akasob
Global Signal Nodes (Auto-bus fork)

# Global Signal Nodes (Auto-bus fork)## DescriptionThe purpose of the addon is to dynamically create global signals on shared signal bus (event bus) without the need to create a singleton to manage it.The addon adds 3 nodes:+ SignalEmitter <- a node representing a signal emitter, where the 'emit_to' property is the signal's name.+ SignalReceiver <- a node representing a signal receiver, where the 'react_to' property is the name of the signal it expects to receive.+ SignalRegister <- a node representing a signal registrator, where the 'signals' property is the list of signals to be registered on bus.To quickly test classes, place this code in your _ready():```gdscriptSignalReceiver.register("test", print) # immediately creates and registers global signalawait get_tree().process_frame # wait a frame, because some operations processes deferredSignalEmitter.fire("test", "test ok") # this prints that, and works everywhere```

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers