use tuple for QSBPlayerManager.GetPlayerProbes()

This commit is contained in:
JohnCorby 2022-03-07 13:04:54 -08:00
parent a1ddce5c7d
commit 350fc7e2ed
2 changed files with 2 additions and 4 deletions

View File

@ -88,7 +88,7 @@ public static class QSBPlayerManager
public static (Flashlight LocalFlashlight, IEnumerable<QSBFlashlight> RemoteFlashlights) GetPlayerFlashlights()
=> (Locator.GetFlashlight(), PlayerList.Where(x => x.FlashLight != null).Select(x => x.FlashLight));
public static Tuple<SurveyorProbe, IEnumerable<QSBProbe>> GetPlayerProbes()
public static (SurveyorProbe LocalProbe, IEnumerable<QSBProbe> RemoteProbes) GetPlayerProbes()
=> new(Locator.GetProbe(), PlayerList.Where(x => x.Probe != null).Select(x => x.Probe));
public static void ShowAllPlayers()

View File

@ -68,9 +68,7 @@ public class QuantumVisibilityPatches : QSBPatch
var point = __instance.transform.TransformPoint(__instance._localIlluminationOffset);
var (localFlashlight, playerFlashlights) = QSBPlayerManager.GetPlayerFlashlights();
var tupleProbes = QSBPlayerManager.GetPlayerProbes();
var localProbe = tupleProbes.Item1;
var playerProbes = tupleProbes.Item2;
var (localProbe, playerProbes) = QSBPlayerManager.GetPlayerProbes();
if (localFlashlight.CheckIlluminationAtPoint(point, __instance._illuminationRadius))
{