IMessageDisplay.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // IMessageDisplay.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using Microsoft.Xna.Framework;
  11. #endregion
  12. namespace CatapultGame
  13. {
  14. /// <summary>
  15. /// Interface used to display notification messages when interesting events occur,
  16. /// for instance when gamers join or leave the network session. This interface
  17. /// is registered as a service, so any piece of code wanting to display a message
  18. /// can look it up from Game.Services, without needing to worry about how the
  19. /// message display is implemented. In this sample, the MessageDisplayComponent
  20. /// class implement this IMessageDisplay service.
  21. /// </summary>
  22. interface IMessageDisplay : IDrawable, IUpdateable
  23. {
  24. void ShowMessage(string message, params object[] parameters);
  25. }
  26. }