mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
28 lines
850 B
C#
28 lines
850 B
C#
using QSB.Player;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace QSB.EchoesOfTheEye.Ghosts;
|
|
|
|
public class GhostPlayer
|
|
{
|
|
public PlayerInfo player;
|
|
public QSBGhostSensorData sensor = new();
|
|
public GhostLocationData playerLocation = new();
|
|
public GhostLocationData lastKnownPlayerLocation = new();
|
|
public QSBGhostSensorData lastKnownSensor = new();
|
|
public QSBGhostSensorData firstUnknownSensor = new();
|
|
public bool isPlayerLocationKnown;
|
|
public bool wasPlayerLocationKnown;
|
|
public float timeLastSawPlayer;
|
|
public float timeSincePlayerLocationKnown = float.PositiveInfinity;
|
|
public float playerMinLanternRange;
|
|
public bool lostPlayerDueToOcclusion
|
|
=> !isPlayerLocationKnown
|
|
&& !lastKnownSensor.isPlayerOccluded
|
|
&& firstUnknownSensor.isPlayerOccluded;
|
|
}
|