2022-03-10 23:26:09 +00:00

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();
}
}