label for AirlockInterface

This commit is contained in:
Mister_Nebula 2022-07-25 10:20:20 +01:00
parent 01f1425ac0
commit ce8fd91aa4

View File

@ -1,4 +1,5 @@
using QSB.EchoesOfTheEye.AirlockSync.VariableSync;
using System;
using System.Collections.Generic;
using UnityEngine;
@ -9,4 +10,14 @@ internal class QSBAirlockInterface : QSBRotatingElements<AirlockInterface, Airlo
protected override IEnumerable<SingleLightSensor> LightSensors => AttachedObject._lightSensors;
protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.AirlockPrefab;
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;
}
}