IMessageDisplay.cs 997 B

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