polygone/Library/PackageCache/com.unity.visualscripting@1.5.2/Runtime/VisualScripting.Flow/Framework/Events/MachineEventUnit.cs
2021-08-02 05:44:37 -04:00

14 lines
451 B
C#

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}'.");
}
}