Files
BABA_YAGA/Assets/Baba_yaga/GameSetup/Maze/Interfaces/IMazeAlgorithm.cs

21 lines
749 B
C#
Raw Normal View History

namespace Baba_yaga.GameSetup.Maze
2026-04-21 23:28:49 +07:00
{
/// <summary>
/// Interface for all maze generation algorithms.
/// Supports both immediate and step-by-step (animated) generation.
/// </summary>
[UnityEngine.Scripting.APIUpdating.MovedFrom(true, sourceNamespace: "Hallucinate.GameSetup.Maze", sourceAssembly: "Opsive.UltimateCharacterController")]
2026-04-21 23:28:49 +07:00
public interface IMazeAlgorithm
{
/// <summary>
/// Generates the maze immediately in one frame.
/// </summary>
void Generate(MazeGrid grid);
/// <summary>
/// Generates the maze step-by-step for visualization.
/// </summary>
2026-06-26 00:21:29 +07:00
System.Collections.IEnumerator GenerateStepByStep(MazeGrid grid, int cellsPerFrame);
2026-04-21 23:28:49 +07:00
}
}