mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
QSBPictureFrameDoor: where T : PictureFrameDoorInterface
This commit is contained in:
parent
96311ff0c4
commit
509d1429d4
@ -6,10 +6,10 @@ using UnityEngine;
|
||||
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
|
||||
|
||||
public abstract class QSBPictureFrameDoor<T> : WorldObject<T>, IQSBPictureFrameDoor
|
||||
where T : MonoBehaviour
|
||||
where T : PictureFrameDoorInterface
|
||||
{
|
||||
public override void SendInitialState(uint to)
|
||||
=> (this as IQSBPictureFrameDoor).SendMessage(new PictureFrameDoorMessage((AttachedObject as PictureFrameDoorInterface)._door.IsOpen()));
|
||||
=> ((IQSBPictureFrameDoor)this).SendMessage(new PictureFrameDoorMessage(AttachedObject._door.IsOpen()));
|
||||
|
||||
public abstract void SetOpenState(bool open);
|
||||
}
|
Loading…
Reference in New Issue
Block a user