Skip to content

Commit

Permalink
Update Locker.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rysik5318 committed Dec 24, 2024
1 parent 76dd31c commit a4834b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions EXILED/Exiled.API/Exiled.API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<Reference Include="UnityEngine.CoreModule" HintPath="$(EXILED_REFERENCES)\UnityEngine.CoreModule.dll" Private="false" />
<Reference Include="UnityEngine.ParticleSystemModule" HintPath="$(EXILED_REFERENCES)\UnityEngine.ParticleSystemModule.dll" Private="false" />
<Reference Include="UnityEngine.PhysicsModule" HintPath="$(EXILED_REFERENCES)\UnityEngine.PhysicsModule.dll" Private="false" />
<Reference Include="UnityEngine.AudioModule" HintPath="$(EXILED_REFERENCES)\UnityEngine.AudioModule.dll" Private="false" />
<Reference Include="YamlDotNet" HintPath="$(EXILED_REFERENCES)\YamlDotNet.dll" Private="false" />
</ItemGroup>

Expand Down
9 changes: 9 additions & 0 deletions EXILED/Exiled.API/Features/Lockers/Locker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ public Locker(BaseLocker locker)
/// </summary>
public IReadOnlyCollection<Chamber> Chambers { get; }

/// <summary>
/// Gets or sets a value indicating whether the locker is currently open.
/// </summary>
public bool IsOpen
{
get => Chambers.FirstOrDefault().IsOpen;
set => Chambers.FirstOrDefault().IsOpen = value;
}

/// <summary>
/// Gets or sets an id for manipulating opened chambers.
/// </summary>
Expand Down

0 comments on commit a4834b5

Please sign in to comment.