using Robust.Shared.Configuration; namespace Robust.Client.WebView; // ReSharper disable once InconsistentNaming /// /// CVars for Robust.Client.WebView /// [CVarDefs] public static class WCVars { /// /// Enable the res:// protocol inside WebView browsers, allowing access to the Robust resources. /// public static readonly CVarDef WebResProtocol = CVarDef.Create("web.res_protocol", true, CVar.CLIENTONLY); /// /// Overrides the default CEF user-agent when set to a non-empty string. /// public static readonly CVarDef WebUserAgentOverride = CVarDef.Create("web.user_agent", "", CVar.CLIENTONLY); /// /// If true, use headless WebView implementation even with graphical client (turn off CEF). /// public static readonly CVarDef WebHeadless = CVarDef.Create("web.headless", false, CVar.CLIENTONLY); #if TOOLS private const int DefaultRemoteDebugPort = 9222; #else private const int DefaultRemoteDebugPort = 0; #endif /// /// If not 0, the port number used for Chromium's remote debugging. /// public static readonly CVarDef WebRemoteDebugPort = CVarDef.Create("web.remote_debug_port", DefaultRemoteDebugPort, CVar.CLIENTONLY); }