Exemple #1
0
        public static void Patch()
        {
            secrets = new Secrets();

            // Customize event configuration
            EventLookup.ConfigureEventCost(secrets.eventConfigList);

            if (secrets.client == "crowdcontrol")
            {
                Console.WriteLine("CrowdControl client active");
                StartCrowdControlServer();
            }
            else
            {
                Console.WriteLine("Twitch client active");
                //StartTwitchChatClient(); Turned off cause the ping pong doesnt work and when it disconnects it crashes the game
                StartTwitchPubSubClient();
            }

            Harmony.CreateAndPatchAll(myAssembly, "subnautica.mod.twitchinteraction");
        }
        public void UpdateEventsData()
        {
            var newList = this.PopulateEventList();

            EventLookup.ConfigureEventCost(newList);
        }