2022-03-24 15:02:31 +00:00
|
|
|
|
using OWML.Common;
|
|
|
|
|
using QSB.Utility;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Player;
|
|
|
|
|
|
|
|
|
|
public partial class PlayerInfo
|
|
|
|
|
{
|
|
|
|
|
public PlayerProbeLauncher LocalProbeLauncher
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (!IsLocalPlayer)
|
|
|
|
|
{
|
2022-03-27 22:07:37 -07:00
|
|
|
|
DebugLog.ToConsole("Warning - Tried to access local-only property LocalProbeLauncher in PlayerInfo for non local player!", MessageType.Warning);
|
2022-03-24 15:02:31 +00:00
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-31 20:22:54 +01:00
|
|
|
|
return (PlayerProbeLauncher)Locator.GetToolModeSwapper().GetProbeLauncher();
|
2022-03-24 15:02:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Flashlight LocalFlashlight
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (!IsLocalPlayer)
|
|
|
|
|
{
|
2022-03-27 22:07:37 -07:00
|
|
|
|
DebugLog.ToConsole("Warning - Tried to access local-only property LocalFlashlight in PlayerInfo for non local player!", MessageType.Warning);
|
2022-03-24 15:02:31 +00:00
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Locator.GetFlashlight();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Signalscope LocalSignalscope
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (!IsLocalPlayer)
|
|
|
|
|
{
|
2022-03-27 22:07:37 -07:00
|
|
|
|
DebugLog.ToConsole("Warning - Tried to access local-only property LocalSignalscope in PlayerInfo for non local player!", MessageType.Warning);
|
2022-03-24 15:02:31 +00:00
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-31 20:22:54 +01:00
|
|
|
|
return Locator.GetToolModeSwapper().GetSignalScope();
|
2022-03-24 15:02:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public NomaiTranslator LocalTranslator
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (!IsLocalPlayer)
|
|
|
|
|
{
|
2022-03-27 22:07:37 -07:00
|
|
|
|
DebugLog.ToConsole("Warning - Tried to access local-only property LocalTranslator in PlayerInfo for non local player!", MessageType.Warning);
|
2022-03-24 15:02:31 +00:00
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-31 20:22:54 +01:00
|
|
|
|
return Locator.GetToolModeSwapper().GetTranslator();
|
2022-03-24 15:02:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|