예제 #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;
        }
예제 #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();
            }
        }