Interrupt / delverengine

Delver game engine and editor
zlib License
796 stars 77 forks source link

Moving pathfinding behind an interface that can be set via game.dat #300

Closed Interrupt closed 1 year ago

Interrupt commented 1 year ago

This also adds a new field in game.dat - pathfindingManager.

The new pathfinding interface itself is very small:

public interface PathfindingInterface {
    void tick(float delta);
    void initForLevel(Level level);
    Vector3 getNextPathToTarget(Level level, Entity checking, Entity target);
}