mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 13:35:53 +00:00
Possession handling
This commit is contained in:
parent
681510d75c
commit
31ffe6156e
9 changed files with 305 additions and 22 deletions
|
|
@ -15,6 +15,9 @@ public partial class Actor : CharacterBody2D
|
|||
[Export] public Node2D DefeatScript { get; set; }
|
||||
|
||||
[Export] public ActivationType ActivationType { get; private set; } = ActivationType.Toggle;
|
||||
|
||||
[Export]
|
||||
public AiState StartingAiState { get; private set; }
|
||||
|
||||
public Vector2 MovementDirection { get; set; }
|
||||
public Vector2 FacingDirection { get; set; }
|
||||
|
|
@ -25,6 +28,9 @@ public partial class Actor : CharacterBody2D
|
|||
|
||||
[Signal]
|
||||
public delegate void OnDeathEventHandler();
|
||||
|
||||
[Signal]
|
||||
public delegate void OnControlAssumedEventHandler();
|
||||
|
||||
public bool IsDestroyed { get; set; }
|
||||
|
||||
|
|
@ -62,4 +68,9 @@ public partial class Actor : CharacterBody2D
|
|||
EmitSignal(SignalName.OnDeath);
|
||||
}
|
||||
|
||||
public void AssumeControl()
|
||||
{
|
||||
EmitSignal(SignalName.OnControlAssumed);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue