mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +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;
|
namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
|
||||||
|
|
||||||
public abstract class QSBPictureFrameDoor<T> : WorldObject<T>, IQSBPictureFrameDoor
|
public abstract class QSBPictureFrameDoor<T> : WorldObject<T>, IQSBPictureFrameDoor
|
||||||
where T : MonoBehaviour
|
where T : PictureFrameDoorInterface
|
||||||
{
|
{
|
||||||
public override void SendInitialState(uint to)
|
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);
|
public abstract void SetOpenState(bool open);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user