Add door interaction system with requirements and HUD integration
This commit is contained in:
15
Code/Resources/DoorComponentResource.cs
Normal file
15
Code/Resources/DoorComponentResource.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using GameCore.Interaction;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace CryptonymThunder.Code.Resources;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class DoorComponentResource : Resource
|
||||
{
|
||||
[Export] public DoorComponent.DoorState InitialState { get; set; } = DoorComponent.DoorState.Closed;
|
||||
[Export] public bool IsOneTimeUnlock { get; set; } = false;
|
||||
[Export(PropertyHint.Range, "0.1,10.0,0.1")] public float OpenSpeed { get; set; } = 1.0f;
|
||||
|
||||
[ExportGroup("Requirements")] [Export] public Array<InteractionRequirementResource> Requirements { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user