[dotnet] Signals as events #4382
Replies: 1 comment
-
Reply =>
Follow up: What happens to types not derived from a Godot class? Do I need to worry about them, or are they WeakReference wrapped or something? In the context of events, or generally? Do you have an example of what you're asking?
|
Beta Was this translation helpful? Give feedback.
-
@tvardero
Signals as events?
What about implicitly calling
Connect(signalName, this, nameof(signalDelegate))
for eachsignalName
in class, just before _Ready() function execution?It also could be possible to be added in 3.x, since there are no breaking changes: only adding a new delegates and events to classes, and legacy connect method is not being removed. Only thing to worry is naming conflicts with user defined methods and events for handling those.
Two years had passed btw since that article .
System.Numerics
for Vector2 and Vector3 andSystem.Collections
for collections?(Or is it already?)
Remaining functionality to be added as extension methods.
Beta Was this translation helpful? Give feedback.
All reactions