GodotComponentTest/components/InteractionComponent.cs

19 lines
470 B
C#
Raw Normal View History

using Godot;
namespace GodotComponentTest.components;
2023-11-18 22:32:57 +01:00
public class InteractionComponent : Component {
[Signal]
2023-11-18 22:32:57 +01:00
private delegate void InteractionStart(Spatial owningEntity, Spatial targetEntity);
[Signal]
2023-11-18 22:32:57 +01:00
private delegate void InteractionEnd(Spatial owningEntity, Spatial targetEntity);
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;
public Spatial OwningEntity;
public Spatial TargetEntity;
}