GameWindow.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BansheeEngine;
  7. namespace BansheeEditor
  8. {
  9. /// <summary>
  10. /// Displays in-game viewport in the editor.
  11. /// </summary>
  12. public class GameWindow : EditorWindow // TODO - Dummy class, unfinished
  13. {
  14. /// <summary>
  15. /// Opens the game window.
  16. /// </summary>
  17. [MenuItem("Windows/Game", ButtonModifier.CtrlAlt, ButtonCode.G, 6000)]
  18. private static void OpenGameWindow()
  19. {
  20. OpenWindow<GameWindow>();
  21. }
  22. /// <summary>
  23. /// Starts execution of the game in the game window.
  24. /// </summary>
  25. [MenuItem("Tools/Play", 9300)]
  26. [ToolbarItem("Play", ToolbarIcon.Play, "", 1800, true)]
  27. private static void Play()
  28. {
  29. // TODO - Not implemented
  30. }
  31. /// <summary>
  32. /// Pauses the execution of the game on the current frame.
  33. /// </summary>
  34. [MenuItem("Tools/Pause", 9299)]
  35. [ToolbarItem("Pause", ToolbarIcon.Pause, "", 1799)]
  36. private static void Pause()
  37. {
  38. // TODO - Not implemented
  39. }
  40. /// <summary>
  41. /// Moves the execution of the game by one frame forward.
  42. /// </summary>
  43. [MenuItem("Tools/Step", 9298)]
  44. [ToolbarItem("Step", ToolbarIcon.Step, "", 1798)]
  45. private static void Step()
  46. {
  47. // TODO - Not implemented
  48. }
  49. /// <inheritdoc/>
  50. protected override LocString GetDisplayName()
  51. {
  52. return new LocEdString("Game");
  53. }
  54. }
  55. }