mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-16 16:15:24 +00:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
namespace QSB.EchoesOfTheEye.Ghosts;
|
|
|
|
public class QSBGhostSensorData
|
|
{
|
|
public bool isPlayerVisible;
|
|
public bool isPlayerHeldLanternVisible;
|
|
public bool isPlayerDroppedLanternVisible;
|
|
public bool isPlayerHoldingLantern;
|
|
public bool isIlluminatedByPlayer;
|
|
public bool inContactWithPlayer;
|
|
public bool isPlayerOccluded;
|
|
public bool isPlayerIlluminated;
|
|
public bool isPlayerIlluminatedByUs;
|
|
public bool isPlayerInGuardVolume;
|
|
|
|
public bool knowsPlayerVelocity => isPlayerVisible || isPlayerHeldLanternVisible;
|
|
|
|
public void CopyFromOther(QSBGhostSensorData other)
|
|
{
|
|
isPlayerVisible = other.isPlayerVisible;
|
|
isPlayerHeldLanternVisible = other.isPlayerHeldLanternVisible;
|
|
isPlayerDroppedLanternVisible = other.isPlayerDroppedLanternVisible;
|
|
isPlayerHoldingLantern = other.isPlayerHoldingLantern;
|
|
isIlluminatedByPlayer = other.isIlluminatedByPlayer;
|
|
inContactWithPlayer = other.inContactWithPlayer;
|
|
isPlayerOccluded = other.isPlayerOccluded;
|
|
isPlayerIlluminated = other.isPlayerIlluminated;
|
|
isPlayerIlluminatedByUs = other.isPlayerIlluminatedByUs;
|
|
isPlayerInGuardVolume = other.isPlayerInGuardVolume;
|
|
}
|
|
}
|