Firstborn/Library/PackageCache/com.unity.terrain-tools@4.0.5/Editor/TerrainTools/BrushControllers/IBrushEventHandler.cs

30 lines
917 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using UnityEngine;
using UnityEngine.TerrainTools;
namespace UnityEditor.TerrainTools
{
/// <summary>
/// An interface that represent handling methods for brush events.
/// </summary>
public interface IBrushEventHandler
{
/// <summary>
/// Register a system event for processing later.
/// </summary>
/// <param name="newEvent">The event to register.</param>
void RegisterEvent(Event newEvent);
/// <summary>
/// Consume previously registered events.
/// </summary>
/// <param name="terrain">The terrain in focus.</param>
/// <param name="editContext">The IOnSceneGUI to reference.</param>
void ConsumeEvents(Terrain terrain, IOnSceneGUI editContext);
/// <summary>
/// Allows us to request a repaint of the GUI and scene-view.
/// </summary>
void RequestRepaint();
}
}