Firstborn/Library/PackageCache/com.unity.terrain-tools@4.0.3/Editor/TerrainTools/BrushControllers/IBrushEventHandler.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

30 lines
917 B
C#

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();
}
}