Files
brick-framework/GameCore/Interaction/ButtonComponent.cs

14 lines
486 B
C#

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; } = [];
}