2023-06-26 22:34:48 +02:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace GodotComponentTest.components;
|
|
|
|
|
|
|
|
public class InteractionComponent: Component
|
|
|
|
{
|
|
|
|
[Signal]
|
2023-07-14 17:56:01 +02:00
|
|
|
delegate void InteractionStart(Spatial owningEntity, Spatial targetEntity);
|
2023-06-26 22:34:48 +02:00
|
|
|
|
|
|
|
[Signal]
|
2023-07-14 17:56:01 +02:00
|
|
|
delegate void InteractionEnd(Spatial owningEntity, Spatial targetEntity);
|
2023-06-26 22:34:48 +02:00
|
|
|
|
2023-07-14 17:56:01 +02:00
|
|
|
public Spatial OwningEntity;
|
|
|
|
public Spatial TargetEntity;
|
2023-06-26 22:34:48 +02:00
|
|
|
}
|