This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from xNexus-ACS/dev
Added CursedLocker
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
CursedMod/Features/Wrappers/Facility/Props/CursedLocker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using MapGeneration.Distributors; | ||
using UnityEngine; | ||
|
||
namespace CursedMod.Features.Wrappers.Facility.Props; | ||
|
||
public class CursedLocker | ||
{ | ||
public LockerChamber Base { get; } | ||
|
||
public CursedLocker(LockerChamber locker) | ||
{ | ||
Base = locker; | ||
} | ||
|
||
public bool IsOpen | ||
{ | ||
get => Base.IsOpen; | ||
set => Base.IsOpen = value; | ||
} | ||
|
||
public bool CanInteract => Base.CanInteract; | ||
|
||
public Vector3 Position | ||
{ | ||
get => Base.transform.position; | ||
set => Base.transform.position = value; | ||
} | ||
|
||
public Quaternion Rotation | ||
{ | ||
get => Base.transform.rotation; | ||
set => Base.transform.rotation = value; | ||
} | ||
|
||
public Transform Transform => Base.transform; | ||
|
||
public void SetDoor(bool status, AudioClip clip) => Base.SetDoor(status, clip); | ||
|
||
public void PlayDeniedSound(AudioClip clip) => Base.PlayDenied(clip); | ||
|
||
public override string ToString() => $"{nameof(CursedLocker)}: Opened: {IsOpen} | CanInteract: {CanInteract} | Position: {Position} | Rotation: {Rotation}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters