Remove in-progress work that isn't working well
This commit is contained in:
30
src/enemy/state/states/EnemyLogic.State.FollowPlayer.cs
Normal file
30
src/enemy/state/states/EnemyLogic.State.FollowPlayer.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user