27 lines
679 B
C#
Raw Normal View History

2022-09-08 21:29:16 +02:00
using Comfort.Common;
using EFT;
namespace CameraResolutionScale
{
public class Utils
{
public bool gameIsReady()
{
var gameWorld = Singleton<GameWorld>.Instance;
var sessionResultPanel = Singleton<SessionResultPanel>.Instance;
if (gameWorld == null
|| gameWorld.AllPlayers == null
|| gameWorld.AllPlayers.Count <= 0
|| sessionResultPanel != null)
{ return false; }
return true;
}
2022-09-17 19:49:55 +02:00
public Player getLocalPlayer()
{
return Singleton<GameWorld>.Instance.RegisteredPlayers.Find(p => p.IsYourPlayer);
}
2022-09-08 21:29:16 +02:00
}
}