quantum-space-buddies/QSB/ServerSettings/ServerSettingsManager.cs

12 lines
389 B
C#
Raw Normal View History

2022-11-07 20:14:03 +00:00
using QSB.Utility;
using UnityEngine;
namespace QSB.ServerSettings;
internal class ServerSettingsManager : MonoBehaviour, IAddComponentOnStart
{
2022-12-02 22:27:23 +00:00
public static bool ServerShowPlayerNames;
public static bool ShowPlayerNames => (ServerShowPlayerNames || QSBCore.IsHost) && QSBCore.ShowPlayerNames;
2023-03-03 20:05:15 +00:00
public static bool ShowExtraHUD => ShowPlayerNames && QSBCore.ShowExtraHUDElements;
2022-11-07 20:14:03 +00:00
}