godot/modules/mono/glue/GodotSharp/GodotSharp/Core/SignalInfo.cs
Ignacio Etcheverry 6a85cdf640 Fix C# bindings after recent breaking changes
Implementation for new Variant types Callable, Signal, StringName.
Added support for PackedInt64Array and PackedFloat64Array.

Add generation of signal members as events, as well as support for
user created signals as events.
NOTE: As of now, raising such events will not emit the signal. As such,
one must use `EmitSignal` instead of raising the event directly.

Removed old ThreadLocal fallback class. It's safe to use thread_local now since
it's supported on all minimum versions of compilers we support.
2020-03-17 16:30:04 +01:00

18 lines
375 B
C#

namespace Godot
{
public struct SignalInfo
{
private readonly Object _owner;
private readonly StringName _signalName;
public Object Owner => _owner;
public StringName Name => _signalName;
public SignalInfo(Object owner, StringName name)
{
_owner = owner;
_signalName = name;
}
}
}