コード例 #1
0
 /// <summary>
 /// UnloadContent will be called once per game and is the place to unload
 /// game-specific content.
 /// </summary>
 protected override void UnloadContent()
 {
     _elevator.Detach(_cleaner);
     _elevator.Detach(_cleaner2);
     HotelEventManager.Stop();
     // TODO: Unload any non ContentManager content here
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: Mrzicokiller/hotelsimulator
        /// <summary>
        ///     UnloadContent will be called once per game and is the place to unload
        ///     game-specific content.
        /// </summary>
        protected override void UnloadContent()
        {
            //unregister listeners
            HotelEventManager.Deregister(_checkInListener);
            HotelEventManager.Deregister(_checkOutListener);

            //stop HotelEventManager
            HotelEventManager.Stop();
            hotel.StopTimer();
        }
コード例 #3
0
 /// <summary>
 /// Stop the simulation and go back to setting menu
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StopButton_Click(object sender, EventArgs e)
 {
     HotelEventManager.Stop();
     this.Hide();
     settings.Show();
 }
コード例 #4
0
 private void MainGame_Exiting(object sender, EventArgs e)
 {
     (_listener as EventListener).Exit();
     HotelEventManager.Stop();
 }
コード例 #5
0
ファイル: Simulation.cs プロジェクト: marnixwieffering/HATL
 /// <summary>
 /// Stopping the simulation from running new events
 /// </summary>
 private void _stopSimulation()
 {
     _timer.Stop();
     HotelEventManager.Stop();
 }
コード例 #6
0
 /// <summary>
 /// Adaptor Method that calls HotelEvent.Manager.Stop();
 /// </summary>
 public void Stop_Events()
 {
     HotelEventManager.Stop();
 }