public override void PreSaveAndQuit()
        {
            TerramonPlayer p = Main.LocalPlayer.GetModPlayer <TerramonPlayer>();

            p.openingSfx?.Stop();
            client?.SetPresence(new RichPresence()
            {
                Details = "In Menu",
                State   = "Playing v0.4.2",
                Assets  = new Assets()
                {
                    LargeImageKey  = "largeimage2",
                    LargeImageText = "Merry Christmas!"
                }
            });
        }
Beispiel #2
0
        public override void PreSaveAndQuit()
        {
            TerramonPlayer p = Main.LocalPlayer.GetModPlayer <TerramonPlayer>();

            p.openingSfx?.Stop();
            client?.SetPresence(new RichPresence()
            {
                Details = "In Menu",
                State   = $"Playing v{ModContent.GetInstance<TerramonMod>().Version}",
                Assets  = new Assets()
                {
                    LargeImageKey  = "largeimage2",
                    LargeImageText = "Terramon Mod"
                }
            });
        }