15 lines
507 B
C#
Raw Normal View History

2022-03-10 23:26:09 +00:00
using QSB.EchoesOfTheEye.PictureFrameDoors.Messages;
using QSB.Messaging;
using QSB.WorldSync;
using UnityEngine;
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
public abstract class QSBPictureFrameDoor<T> : WorldObject<T>, IQSBPictureFrameDoor
where T : PictureFrameDoorInterface
2022-03-10 23:26:09 +00:00
{
public override void SendInitialState(uint to)
=> ((IQSBPictureFrameDoor)this).SendMessage(new PictureFrameDoorMessage(AttachedObject._door.IsOpen()));
2022-03-10 23:26:09 +00:00
public abstract void SetOpenState(bool open);
}