mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
40 lines
No EOL
935 B
C#
40 lines
No EOL
935 B
C#
using Cirno.Scripts.Components.Actors;
|
|
using Cirno.Scripts.Enums;
|
|
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Enemy;
|
|
|
|
public partial class Init : EnemyStateBase
|
|
{
|
|
public override EnemyState StateId => EnemyState.Init;
|
|
|
|
[Export]
|
|
public GenericDamageReceiver DamageReceiver { get; private set; }
|
|
|
|
[Export]
|
|
public EnemyStorageModule StorageModule { get; private set; }
|
|
|
|
public override void EnterState()
|
|
{
|
|
GD.Print("Enemy init");
|
|
DamageReceiver.HealthProvider.MaxResource = StorageModule.Root.EnemyResource.MaxHealth;
|
|
|
|
StorageModule.AiState = StorageModule.Root.StartingAiState;
|
|
|
|
// TODO: Hide wings
|
|
// TODO: Hide aiming reticule
|
|
|
|
StateMachine.SetState(EnemyState.Idle);
|
|
}
|
|
|
|
public override void PhysicsProcessState(double delta)
|
|
{
|
|
|
|
}
|
|
|
|
public override void ProcessState(double delta)
|
|
{
|
|
|
|
}
|
|
|
|
} |