mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
25 lines
447 B
C#
25 lines
447 B
C#
|
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
|
|||
|
|
|||
|
internal class QSBPictureFrameDoorInterface : QSBPictureFrameDoor<PictureFrameDoorInterface>
|
|||
|
{
|
|||
|
public override void SetOpenState(bool open)
|
|||
|
{
|
|||
|
if (AttachedObject._door.IsOpen() == open)
|
|||
|
{
|
|||
|
AttachedObject.UpdatePrompt();
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
if (open)
|
|||
|
{
|
|||
|
AttachedObject._door.Open();
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
AttachedObject._door.Close();
|
|||
|
}
|
|||
|
|
|||
|
AttachedObject.UpdatePrompt();
|
|||
|
}
|
|||
|
}
|