Authoring/GooEventDelegates.cs

Delegate declarations used by the Goo authoring UI. Defines four delegate types for pointer events, text entry events, and validation notifications used by the action graph and nodes.

using Sandbox;
using Sandbox.UI;

namespace Goo.Authoring;

/// <summary>ActionGraph signature for hierarchy-authored Goo pointer events.</summary>
public delegate void GooPointerAction( BlobNode source, Vector2 localPosition, MouseButtons button );

/// <summary>ActionGraph signature for TextEntry events that provide the current text.</summary>
public delegate void GooTextValueAction( TextEntryNode source, string value );

/// <summary>ActionGraph signature for TextEntry events without an additional value.</summary>
public delegate void GooTextAction( TextEntryNode source );

/// <summary>ActionGraph signature for TextEntry validation changes.</summary>
public delegate void GooTextValidationAction( TextEntryNode source, bool isValid );