-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C#: Add WeakEvent to store subscriptions of events
- Add `GodotWeakEvent` type that stores the subscriptions of events. - Keeps only a weak reference to the target and the method info of the handler, so the target can be garbage collected. - If the target is collected, it will eventually get rid of the subscription data and avoids raising the event for collected targets. - Used in user script events and native class events, resulting in consistent behavior. - Fix generation of signal events documentation that was adding the documentation comments in the wrong place.
- Loading branch information
Showing
12 changed files
with
597 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.