You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +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:
@@ -2,6 +2,8 @@ using System;
|
||||
|
||||
namespace Godot.SourceGenerators
|
||||
{
|
||||
// TODO: May need to think about compatibility here. Could Godot change these values between minor versions?
|
||||
|
||||
internal enum VariantType
|
||||
{
|
||||
Nil = 0,
|
||||
@@ -131,4 +133,16 @@ namespace Godot.SourceGenerators
|
||||
DefaultIntl = 38,
|
||||
NoEditor = 2
|
||||
}
|
||||
|
||||
public enum MethodFlags
|
||||
{
|
||||
Normal = 1,
|
||||
Editor = 2,
|
||||
Const = 4,
|
||||
Virtual = 8,
|
||||
Vararg = 16,
|
||||
Static = 32,
|
||||
ObjectCore = 64,
|
||||
Default = 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user