{"repo":"minami110/godot-signal-extensions","free":true,"listed":false,"github":"https://github.com/minami110/godot-signal-extensions","clone":"git clone https://github.com/minami110/godot-signal-extensions.git","description":"Godot 4 plugin that extends GDScript's Signal and Callable.","language":"GDScript","stars":21,"topics":["gdscript","godot"],"license":"MIT","category":"game-templates","readme_excerpt":"Signal Extensions for Godot 4 This plugin extends GDScript's Signal and Callable classes, influenced by Cysharp/R3. The main purpose of this plugin is to make it easier to unsubscribe from Godot signals. However, it is not intended to fully replicate R3. Additionally, several simple operators are implemented. Installation from Asset Library You can install the plugin by searching for \"Signal Extensions\" in the AssetLib tab within the editor. from GitHub Download the latest .zip file from the Releases page of this repository. After extracting it, copy the addons/signal extensions/ directory into the addons/ folder of your project. Sample Code This is a sample code of a simple player class that can be written using this plugin. It implements the minimum functionality of Subject and ReactiveProperty , and allows the use of several basic operators. Unsubscribing and stopping the stream can be done via the dispose() method, and in the case of classes inheriting from Node, you can reduce the amount of code by using the add to() method. Core Classes All classes inherit from the base Observable class and implement the Disposable pattern for automatic cleanup: Core Concepts Subject Subject is a basic implementation of the observer pattern that allows you to manually emit values to multiple subscribers. Unit Type : Unit is a special type used to represent the absence of a meaningful value, particularly for signals that don't carry data. When you call on next() without arguments, Unit.d","default_branch":null,"files":null,"tree":[],"storefront":"/r/minami110","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/minami110/godot-signal-extensions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}