Add button interaction system with event publishing and requirements handling
This commit is contained in:
14
GameCore/Interaction/ButtonComponent.cs
Normal file
14
GameCore/Interaction/ButtonComponent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using GameCore.ECS.Interfaces;
|
||||
using GameCore.Interaction.Interfaces;
|
||||
|
||||
namespace GameCore.Interaction;
|
||||
|
||||
public class ButtonComponent : IComponent
|
||||
{
|
||||
public string ChannelId { get; set; } = "default_channel";
|
||||
public bool IsToggle { get; set; } = false;
|
||||
public bool IsOneTimeUse { get; set; } = false;
|
||||
public bool IsPressed { get; set; } = false;
|
||||
public bool HasBeenUsed { get; set; } = false;
|
||||
public List<IInteractionRequirement> Requirements { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user