removing broken ABC and refactoring enemy movement
This commit is contained in:
15
interfaces/IMoveable.cs
Normal file
15
interfaces/IMoveable.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
|
||||
namespace Movementtests.interfaces;
|
||||
|
||||
public record MovementInputs(
|
||||
Vector3 Velocity = default,
|
||||
Vector3 TargetLocation = default,
|
||||
bool isOnFloor = false,
|
||||
Vector3 gravity = default,
|
||||
double delta = 0);
|
||||
|
||||
public interface IMoveable
|
||||
{
|
||||
Vector3 ComputeVelocity(MovementInputs inputs);
|
||||
}
|
||||
1
interfaces/IMoveable.cs.uid
Normal file
1
interfaces/IMoveable.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dp6v42a2iwlbs
|
||||
Reference in New Issue
Block a user