Tilemap/ITilemapSceneEvent.cs

Interface for tilemap-related scene events. Extends a generic ISceneEvent for ITilemapSceneEvent and provides two optional callbacks: OnTilemapChanged and OnTilemapStable, both with default empty implementations.

using System;
using System.Collections.Generic;
using System.Text;

namespace Saandy.Tilemapper;

public interface ITilemapSceneEvent : ISceneEvent<ITilemapSceneEvent>
{

	/// <summary>
	/// Called when tilemap was changed this frame.
	/// </summary>
	void OnTilemapChanged() { }

	/// <summary>
	/// Called when the tilemap has been updated recently and stopped being updated.
	/// </summary>
	void OnTilemapStable() { }
}