You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
C#: Add source generator for signals as events
Changed the signal declaration signal to: ``` // The following generates a MySignal event [Signal] public delegate void MySignalEventHandler(int param); ```
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace Godot.SourceGenerators.Sample;
|
||||
|
||||
public partial class EventSignals : Godot.Object
|
||||
{
|
||||
[Signal]
|
||||
public delegate void MySignalEventHandler(string str, int num);
|
||||
}
|
||||
Reference in New Issue
Block a user