EditorEvents.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 ModalError = "ModalError";
  8. export interface ModalErrorEvent {
  9. title: string;
  10. message: string;
  11. }
  12. export const PlayerStarted = "EditorPlayerStarted";
  13. export const PlayerLog = "EditorPlayerLog";
  14. export interface PlayerLogEvent {
  15. message: string;
  16. level: number;
  17. }
  18. export const ActiveSceneEditorChange = "EditorActiveSceneEditorChange";
  19. export interface ActiveSceneEditorChangeEvent {
  20. sceneEditor: Editor.SceneEditor3D;
  21. }
  22. export const SceneClosed = "EditorSceneClosed";
  23. export interface SceneClosedEvent {
  24. scene: Atomic.Scene;
  25. }
  26. export const ContentFolderChanged = "ContentFolderChanged";
  27. export interface ContentFolderChangedEvent {
  28. path: string;
  29. }
  30. export const CloseProject = "EditorCloseProject";
  31. export const LoadProject = "EditorLoadProject";
  32. export interface LoadProjectEvent {
  33. // The full path to the .atomic file
  34. path: string;
  35. }
  36. export const SaveAllResources = "EditorSaveAllResources";
  37. export const SaveResource = "EditorSaveResource";
  38. export interface SaveResourceEvent {
  39. // The full path to the resource to save
  40. // empty or undefined for current
  41. path: string;
  42. }
  43. export const EditorResourceClose = "EditorResourceClose";
  44. export interface EditorCloseResourceEvent {
  45. editor:Editor.ResourceEditor;
  46. navigateToAvailableResource:boolean;
  47. }
  48. export const EditResource = "EditorEditResource";
  49. export interface EditResourceEvent {
  50. // The full path to the resource to edit
  51. path: string;
  52. }
  53. export const SceneEditStateChange = "SceneEditStateChange";
  54. export interface SceneEditStateChangeEvent {
  55. serializable: Atomic.Serializable;
  56. }