mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
25 lines
660 B
C#
25 lines
660 B
C#
using MinecraftClient.Mapping;
|
|
using MinecraftClient.Physics;
|
|
|
|
namespace MinecraftClient.Pathing.Execution
|
|
{
|
|
public enum TemplateState
|
|
{
|
|
InProgress,
|
|
Complete,
|
|
Failed
|
|
}
|
|
|
|
/// <summary>
|
|
/// Per-tick movement controller for one path segment.
|
|
/// Reads player state from physics, writes desired input to MovementInput,
|
|
/// and reports completion or failure.
|
|
/// </summary>
|
|
public interface IActionTemplate
|
|
{
|
|
Location ExpectedStart { get; }
|
|
Location ExpectedEnd { get; }
|
|
|
|
TemplateState Tick(Location currentPos, PlayerPhysics physics, MovementInput input, World world);
|
|
}
|
|
}
|