mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-13 12:40:50 +00:00
use tuple for QSBPlayerManager.GetPlayerProbes()
This commit is contained in:
parent
a1ddce5c7d
commit
350fc7e2ed
@ -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()
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user