Singularity/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.Flow/Framework/Events/MachineEventUnit.cs

15 lines
451 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
namespace Unity.VisualScripting
{
public abstract class MachineEventUnit<TArgs> : EventUnit<TArgs>
{
protected sealed override bool register => true;
public override EventHook GetHook(GraphReference reference)
{
return new EventHook(hookName, reference.machine);
}
protected virtual string hookName => throw new InvalidImplementationException($"Missing event hook for '{this}'.");
}
}