Remove in-progress work that isn't working well

This commit is contained in:
2024-09-01 12:59:48 -07:00
parent ea99e88535
commit b1ef3dbaab
52 changed files with 1521 additions and 166 deletions

View File

@@ -0,0 +1,30 @@
using Chickensoft.Introspection;
using Godot;
namespace GameJamDungeon
{
public partial class EnemyLogic
{
public partial record State
{
[Meta, Id("enemy_logic_state_followplayer")]
public partial record FollowPlayer : Alive, IGet<Input.PhysicsTick>, IGet<Input.LostPlayer>
{
public Transition On(in Input.PhysicsTick input)
{
var delta = input.Delta;
var gameRepo = Get<IGameRepo>();
var enemy = Get<IEnemy>();
Output(new Output.MovementComputed(enemy.Velocity));
return ToSelf();
}
public Transition On(in Input.LostPlayer input)
{
return To<Idle>();
}
}
}
}
}