15 lines
567 B
C#
15 lines
567 B
C#
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; } = [];
|
|
} |