Remove in-progress work that isn't working well
This commit is contained in:
27
src/enemy/state/states/EnemyLogic.State.Idle.cs
Normal file
27
src/enemy/state/states/EnemyLogic.State.Idle.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
|
||||
namespace GameJamDungeon;
|
||||
|
||||
public partial class EnemyLogic
|
||||
{
|
||||
public partial record State
|
||||
{
|
||||
[Meta, Id("enemy_logic_state_idle")]
|
||||
public partial record Idle : Alive, IGet<Input.Alerted>, IGet<Input.PhysicsTick>
|
||||
{
|
||||
public Transition On(in Input.Alerted _)
|
||||
{
|
||||
return To<FollowPlayer>();
|
||||
}
|
||||
|
||||
public Transition On(in Input.PhysicsTick input)
|
||||
{
|
||||
var delta = input.Delta;
|
||||
var gameRepo = Get<IGameRepo>();
|
||||
var enemy = Get<IEnemy>();
|
||||
return ToSelf();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user