Exemple #1
0
        public void BeforeEach()
        {
            Environment.SetEnvironmentVariable("is-testing", "true");

            IHommMod mod = new TestMod();

            ModLoader.RegisterMod(mod);
            ModLoader.EnableMods();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            ModLoader.LoadMods();
            ModLoader.EnableMods();

            using (var game = new HommGame())
            {
                game.Run();
            }

            ModLoader.DisableMods();
            ModLoader.UnloadMods();
        }