| 1 |
using Godot; |
| 2 |
using Godot.NativeInterop; |
| 3 |
|
| 4 |
partial class EventSignals |
| 5 |
{ |
| 6 |
#pragma warning disable CS0109 |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
public new class SignalName : global::Godot.GodotObject.SignalName { |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
public new static readonly global::Godot.StringName @MySignal = "MySignal"; |
| 15 |
} |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 22 |
internal new static global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo> GetGodotSignalList() |
| 23 |
{ |
| 24 |
var signals = new global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>(1); |
| 25 |
signals.Add(new(name: SignalName.@MySignal, returnVal: new(type: (global::Godot.Variant.Type)0, name: "", hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)6, exported: false), flags: (global::Godot.MethodFlags)1, arguments: new() { new(type: (global::Godot.Variant.Type)4, name: "str", hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)6, exported: false), new(type: (global::Godot.Variant.Type)2, name: "num", hint: (global::Godot.PropertyHint)0, hintString: "", usage: (global::Godot.PropertyUsageFlags)6, exported: false), }, defaultArguments: null)); |
| 26 |
return signals; |
| 27 |
} |
| 28 |
#pragma warning restore CS0109 |
| 29 |
private global::EventSignals.MySignalEventHandler backing_MySignal; |
| 30 |
|
| 31 |
public event global::EventSignals.MySignalEventHandler @MySignal { |
| 32 |
add => backing_MySignal += value; |
| 33 |
remove => backing_MySignal -= value; |
| 34 |
} |
| 35 |
protected void EmitSignalMySignal(string @str, int @num) |
| 36 |
{ |
| 37 |
EmitSignal(SignalName.MySignal, @str, @num); |
| 38 |
} |
| 39 |
|
| 40 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 41 |
protected override void RaiseGodotClassSignalCallbacks(in godot_string_name signal, NativeVariantPtrArgs args) |
| 42 |
{ |
| 43 |
if (signal == SignalName.@MySignal && args.Count == 2) { |
| 44 |
backing_MySignal?.Invoke(global::Godot.NativeInterop.VariantUtils.ConvertTo<string>(args[0]), global::Godot.NativeInterop.VariantUtils.ConvertTo<int>(args[1])); |
| 45 |
return; |
| 46 |
} |
| 47 |
base.RaiseGodotClassSignalCallbacks(signal, args); |
| 48 |
} |
| 49 |
|
| 50 |
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 51 |
protected override bool HasGodotClassSignal(in godot_string_name signal) |
| 52 |
{ |
| 53 |
if (signal == SignalName.@MySignal) { |
| 54 |
return true; |
| 55 |
} |
| 56 |
return base.HasGodotClassSignal(signal); |
| 57 |
} |
| 58 |
} |