private static void DefineSignalFromType(Godot.Object obj, Type type, SignalAttribute attr) { var name = string.IsNullOrEmpty(attr.SignalName) ? type.Name : attr.SignalName; if (!obj.HasUserSignal(name)) { obj.AddUserSignal(name, attr.Arguments); } }
public static void AddSignal(Godot.Object o, string name, string[] names, int[] types) { Godot.Collections.Array arguments = new Godot.Collections.Array(); for (int i = 0; i < names.Length; i++) { arguments.Add(new Godot.Collections.Dictionary { { "name", names[i] }, { "type", types[i] } }); } o.AddUserSignal(name, arguments); }
public static void AddSignal(Godot.Object o, string name) { o.AddUserSignal(name); }