Beispiel #1
0
        /// <summary>
        /// The constructor for the Spotify class.
        /// </summary>
        public Spotify()
        {
            // Load the latest config.
            LoadConfig();

            // Initialize a connection to the Spotify Web Helper application.
            // TODO: Catch if the App is not running.
            CommunicationService = SpotifyWebHelperApi.Create();

            // Request Dashboard Scaleform Movie
            DashboardScaleform = new Scaleform("dashboard", true);


            // Update on every game tick.
            this.Tick += Update;
        }
Beispiel #2
0
        public static void Main()
        {
            Game.Console.Print($"SpotifyRage is now starting..");

            // Initialize a connection to the Spotify Web Helper application.
            // TODO: Catch if the App is not running.
            Game.Console.Print("Connecting to the Spotify Web Helper application.");
            CommunicationService = SpotifyWebHelperApi.Create();

            // Request Dashboard Scaleform Movie
            DashboardScaleform = new Scaleform("dashboard", true);


            // Update on every game tick.
            Game.FrameRender += Update;

            while (true)
            {
                GameFiber.Yield();
            }
        }