2022-03-13 21:44:04 +00:00
|
|
|
|
using QSB.EchoesOfTheEye.AirlockSync.VariableSync;
|
2022-07-25 09:20:20 +00:00
|
|
|
|
using System;
|
2022-03-14 15:32:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
2022-03-14 10:22:44 +00:00
|
|
|
|
using UnityEngine;
|
2021-11-08 20:55:53 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.EchoesOfTheEye.AirlockSync.WorldObjects;
|
|
|
|
|
|
2022-03-14 19:49:38 +00:00
|
|
|
|
internal class QSBAirlockInterface : QSBRotatingElements<AirlockInterface, AirlockVariableSyncer>
|
2021-11-08 20:55:53 +00:00
|
|
|
|
{
|
2022-03-14 19:49:38 +00:00
|
|
|
|
protected override IEnumerable<SingleLightSensor> LightSensors => AttachedObject._lightSensors;
|
2022-03-13 21:44:04 +00:00
|
|
|
|
|
2022-03-14 10:22:44 +00:00
|
|
|
|
protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.AirlockPrefab;
|
2022-07-25 09:20:20 +00:00
|
|
|
|
|
|
|
|
|
public override string ReturnLabel()
|
|
|
|
|
{
|
|
|
|
|
var baseString = $"{this}{Environment.NewLine}CurrentRotation:{AttachedObject._currentRotation}";
|
|
|
|
|
foreach (var element in AttachedObject._rotatingElements)
|
|
|
|
|
{
|
|
|
|
|
baseString += $"{Environment.NewLine}localRotation:{element.localRotation}";
|
|
|
|
|
}
|
|
|
|
|
return baseString;
|
|
|
|
|
}
|
2022-03-14 10:22:44 +00:00
|
|
|
|
}
|