2022-05-27 15:03:30 -07:00
|
|
|
|
using QSB.WorldSync;
|
2022-02-26 00:26:31 -08:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
namespace QSB.EchoesOfTheEye.LightSensorSync.WorldObjects;
|
|
|
|
|
|
|
|
|
|
internal class QSBLightSensor : WorldObject<SingleLightSensor>
|
2022-02-26 00:26:31 -08:00
|
|
|
|
{
|
2022-05-27 15:03:30 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// illuminated specifically by the player
|
|
|
|
|
/// </summary>
|
2022-05-26 21:23:05 -07:00
|
|
|
|
public bool LocallyIlluminated;
|
2022-02-26 00:26:31 -08:00
|
|
|
|
|
2022-03-06 23:13:48 -08:00
|
|
|
|
public Action OnDetectLocalLight;
|
|
|
|
|
public Action OnDetectLocalDarkness;
|
2022-03-02 19:46:33 -08:00
|
|
|
|
|
2022-05-27 15:03:30 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// illuminated on the client (replacement for base game code)
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal bool _illuminated;
|
|
|
|
|
|
2022-05-27 15:03:30 -07:00
|
|
|
|
public override void SendInitialState(uint to) { }
|
2022-03-06 23:13:48 -08:00
|
|
|
|
}
|