Esempio n. 1
0
        public override void Unload()
        {
            //DrawMapInjection.revert();
            UpdateBiomesInjection.InjectMe();

            Main.SavePath   = SAVE_PATH;
            Main.PlayerPath = Main.SavePath + "/Player";
            Main.WorldPath  = Main.SavePath + "/World";

            instance = null;
            quote.Clear();
            FieldInfo info2 = typeof(ModLoader).GetField("versionedName",
                                                         BindingFlags.Static | BindingFlags.DeclaredOnly | BindingFlags.Public);

            info2.SetValue(null, string.Format("tModLoader v{0}", (object)ModLoader.version)
                           + (ModLoader.branchName.Length == 0 ? "" : " " + ModLoader.branchName)
                           + (ModLoader.beta == 0 ? "" : string.Format(" Beta {0}", (object)ModLoader.beta)));

            MoonEventManagerWorld.moonEventList.Clear();

            if (!Main.dedServ)
            {
                DRPSystem.Kill();
                Main.OnTick -= DRPSystem.Update;
            }

            ReflManager <Type> .Clear();

            RaidsManager.Clear();
        }
Esempio n. 2
0
        static TUA()
        {
            version            = "0.1 dev";;
            tModLoaderVersion2 = "";
            SAVE_PATH          = Main.SavePath;

            raidsUI = new RaidsUI();

#if DEBUG
            devMode = true;
#else
            devMode = false;
#endif

            quote   = new List <string>();
            animate = GetAnimatedTitle();

            gameTime = new GameTime();

            ReflManager <Type> .AddItem("TMain", typeof(Main));

            RaidsManager.Fill();
        }