did a few things

This commit is contained in:
2025-05-28 01:21:24 +02:00
parent 5b8dcb282f
commit c4ff84e8b6
10 changed files with 367 additions and 28 deletions
+29
View File
@@ -0,0 +1,29 @@
using Interactables.Interobjects.DoorUtils;
using LabApi.Features.Console;
namespace KeycardButModern;
public enum DoorType
{
Normal,
Gate,
Checkpoint
}
public class DoorLockConfiguration
{
public Dictionary<DoorType, float> LockDurations { get; set; }= new()
{
{ DoorType.Normal, 5f },
{ DoorType.Gate, 8f },
{ DoorType.Checkpoint, 3f }
};
public static DoorType GetDoorType(DoorVariant door)
{
Logger.Debug("Door name: " + door.name);
if (door.name.Contains("Checkpoint"))
return DoorType.Checkpoint;
return door.name.Contains("Gate") ? DoorType.Gate : DoorType.Normal;
}
}