You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Remove [Signal] attribute from events
- Remove event as a valid target of `SignalAttribute` - Stop adding the `[Signal]` attribute to events in bindings_generator - Make bindings_generator use the `EventHandler` suffix to be consistent with the C# source generator - Remove obsolete comment about the signal's delegate name
This commit is contained in:
@@ -2257,7 +2257,7 @@ Error BindingsGenerator::_generate_cs_signal(const BindingsGenerator::TypeInterf
|
||||
}
|
||||
|
||||
String delegate_name = p_isignal.proxy_name;
|
||||
delegate_name += "Handler"; // Delegate name is [SignalName]Handler
|
||||
delegate_name += "EventHandler"; // Delegate name is [SignalName]EventHandler
|
||||
|
||||
// Generate delegate
|
||||
p_output.append(MEMBER_BEGIN "public delegate void ");
|
||||
@@ -2271,7 +2271,7 @@ Error BindingsGenerator::_generate_cs_signal(const BindingsGenerator::TypeInterf
|
||||
// If so, we could store the pointer we get from `data_unique_pointer()` instead of allocating StringName here.
|
||||
|
||||
// Generate event
|
||||
p_output.append(MEMBER_BEGIN "[Signal]" MEMBER_BEGIN "public ");
|
||||
p_output.append(MEMBER_BEGIN "public ");
|
||||
|
||||
if (p_itype.is_singleton) {
|
||||
p_output.append("static ");
|
||||
|
||||
Reference in New Issue
Block a user