EditorEvents.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. export const Quit = "EditorEventQuit";
  8. export const ModalError = "ModalError";
  9. export interface ModalErrorEvent {
  10. title: string;
  11. message: string;
  12. }
  13. export const PlayerStarted = "EditorPlayerStarted";
  14. export const PlayerLog = "EditorPlayerLog";
  15. export interface PlayerLogEvent {
  16. message: string;
  17. level: number;
  18. }
  19. export const ActiveSceneChange = "EditorActiveSceneChange";
  20. export const ActiveNodeChange = "EditorActiveNodeChange";
  21. export const SceneClosed = "EditorSceneClosed";
  22. export interface SceneClosedEvent {
  23. scene: Atomic.Scene;
  24. }
  25. export const ContentFolderChanged = "ContentFolderChanged";
  26. export interface ContentFolderChangedEvent {
  27. path: string;
  28. }
  29. export const CloseProject = "EditorCloseProject";
  30. export const LoadProject = "EditorLoadProject";
  31. export interface LoadProjectEvent {
  32. // The full path to the .atomic file
  33. path: string;
  34. }
  35. export const SaveAllResources = "EditorSaveAllResources";
  36. export const SaveResource = "EditorSaveResource";
  37. export interface SaveResourceEvent {
  38. // The full path to the resource to save
  39. // empty or undefined for current
  40. path: string;
  41. }
  42. export const CloseResource = "EditorCloseResource";
  43. export interface CloseResourceEvent {
  44. editor:Editor.ResourceEditor;
  45. navigateToAvailableResource:boolean;
  46. }
  47. export const EditResource = "EditorEditResource";
  48. export interface EditResourceEvent {
  49. // The full path to the resource to edit
  50. path: string;
  51. }