Newer
Older
undead-universal-patch-mono / Config.cs
@zombieb zombieb on 10 Jun 2024 2 KB Initial commit
using BepInEx.Configuration;

namespace undead_universal_patch
{
    public static class GenericConfig
    {
        public static ConfigEntry<bool> DisableAmplitude;
        public static ConfigEntry<bool> DisableGoogleAnalytics;
        //public static ConfigEntry<bool> UnhideEditorRooms;
        public static ConfigEntry<bool> LogAllRequests;
        public static ConfigEntry<bool> IsNameserver;
    }
    public static class GenericConfigDefaults
    {
        public static bool DisableAmplitude = true;
        public static bool DisableGoogleAnalytics = true;
        //public static bool UnhideEditorRooms = false;
        public static bool LogAllRequests = false;
        public static bool IsNameserver = false;
    }
    public static class GameserverConfig
    {
        public static ConfigEntry<bool> UseGameserverHost;
        public static ConfigEntry<bool> SecureProtocol;
        public static ConfigEntry<string> Host;
        public static ConfigEntry<bool> UseSocketHost;
        public static ConfigEntry<bool> SecureSocketProtocol;
        public static ConfigEntry<string> SocketHost;
    }

    public static class GameserverConfigDefaults
    {
        public static bool UseGameserverHost = false;
        public static bool SecureProtocol = true;
        public static string Host = "nosuchsubdomain.google.com";
        public static bool UseSocketHost = false;
        public static bool SecureSocketProtocol = true;
        public static string SocketHost = "anothernonexistentsubdomain.google.com";
    }
    public static class PhotonConfig
    {
        public static ConfigEntry<bool> PatchPhotonIds;
        public static ConfigEntry<string> AppID;
        public static ConfigEntry<string> VoiceAppID;
        public static ConfigEntry<string> PatchEvent;
    }
    public static class PhotonConfigDefaults
    {
        public static bool PatchPhotonIds = false;
        public static string AppID = "replace-me-please";
        public static string VoiceAppID = "replace-me-please";
        public static string PatchEvent = "Load";
    }
    public static class NameserverConfig
    {
        public static ConfigEntry<bool> UseNameserverHost;
        public static ConfigEntry<bool> SecureProtocol;
        public static ConfigEntry<string> Host;
        public static ConfigEntry<string> Path;
    }
    public static class NameserverConfigDefaults 
    {
        public static bool UseNameserverHost = false;
        public static bool SecureProtocol = false;
        public static string Host = "thissubdomaindoesnotexist.google.com";
        public static string Path = "/";
    }
}