Files
EGJ25/addons/guide/guide_action_mapping.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +02:00

22 lines
480 B
GDScript

@icon("res://addons/guide/guide_internal.svg")
@tool
## An action to input mapping
class_name GUIDEActionMapping
extends Resource
## The action to be mapped
@export var action:GUIDEAction:
set(value):
if value == action:
return
action = value
emit_changed()
## A set of input mappings that can trigger the action
@export var input_mappings:Array[GUIDEInputMapping] = []:
set(value):
if value == input_mappings:
return
input_mappings = value
emit_changed()