2023-06-26 22:34:48 +02:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace GodotComponentTest.components;
|
|
|
|
|
2023-11-18 22:32:57 +01:00
|
|
|
public class InteractionComponent : Component {
|
2023-06-26 22:34:48 +02:00
|
|
|
[Signal]
|
2023-11-18 22:32:57 +01:00
|
|
|
private delegate void InteractionStart(Spatial owningEntity, Spatial targetEntity);
|
|
|
|
|
2023-06-26 22:34:48 +02:00
|
|
|
[Signal]
|
2023-11-18 22:32:57 +01:00
|
|
|
private delegate void InteractionEnd(Spatial owningEntity, Spatial targetEntity);
|
2023-06-26 22:34:48 +02:00
|
|
|
|
2023-11-18 22:32:57 +01:00
|
|
|
public void EndInteraction() {
|
2023-11-10 20:22:55 +01:00
|
|
|
hasStopped = true;
|
|
|
|
}
|
|
|
|
|
2023-11-18 22:32:57 +01:00
|
|
|
public bool hasStopped;
|
2023-07-14 17:56:01 +02:00
|
|
|
public Spatial OwningEntity;
|
|
|
|
public Spatial TargetEntity;
|
2023-06-26 22:34:48 +02:00
|
|
|
}
|