Added Glitch Room Source code to Gitty
This commit is contained in:
commit
1ac9eb5644
505 files changed
+28504
No files matched your search
@@ -0,0 +1,18 @@
|
||||
@tool
|
||||
class_name HardwareConfig
|
||||
extends Resource
|
||||
|
||||
|
||||
@export var controller_id: StringName = &""
|
||||
@export var actions: Array[HardwareAction] = []
|
||||
|
||||
|
||||
func get_action(action_id: StringName) -> HardwareAction:
|
||||
for action in actions:
|
||||
if action.action_id == action_id:
|
||||
return action
|
||||
|
||||
return null
|
||||
|
||||
func has_action(action_id: StringName) -> bool:
|
||||
return get_action(action_id) != null
|
||||
Reference in new issue
Block a user