| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- //
- // Copyright (c) 2014-2016 THUNDERBEAST GAMES LLC
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to deal
- // in the Software without restriction, including without limitation the rights
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- // copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- // THE SOFTWARE.
- //
- // TODO: migrate these interfaces out to the d.ts and migrate the static strings to some common location
- export const ModalError = "ModalError";
- export interface ModalErrorEvent {
- title: string;
- message: string;
- }
- export const PlayerStartRequest = "EditorPlayRequest";
- export const PlayerStarted = "EditorPlayerStarted";
- export const PlayerStopped = "EditorPlayerStopped";
- export const PlayerPaused = "EditorPlayerPaused";
- export const PlayerResumed = "EditorPlayerResumed";
- export const PlayerLog = "EditorPlayerLog";
- export interface PlayerLogEvent {
- message: string;
- level: number;
- }
- export const ActiveSceneEditorChange = "EditorActiveSceneEditorChange";
- export interface ActiveSceneEditorChangeEvent {
- sceneEditor: Editor.SceneEditor3D;
- }
- export const SceneClosed = "EditorSceneClosed";
- export interface SceneClosedEvent {
- scene: Atomic.Scene;
- }
- export const ContentFolderChanged = "ContentFolderChanged";
- export interface ContentFolderChangedEvent {
- path: string;
- }
- export const CloseProject = "EditorCloseProject";
- export const ProjectClosed = "EditorProjectClosed";
- export const ProjectUnloadedNotification = "ProjectUnloadedNotification";
- export const LoadProject = "EditorLoadProject";
- export const LoadProjectNotification = "EditorLoadProjectNotification";
- export interface LoadProjectEvent {
- // The full path to the .atomic file
- path: string;
- }
- export const SaveAllResources = "EditorSaveAllResources";
- export const SaveResource = "EditorSaveResource";
- /**
- * Called once the resource has been saved
- * @type {String}
- */
- export const SaveResourceNotification = "EditorSaveResourceNotification";
- export interface SaveResourceEvent {
- // The full path to the resource to save / empty or undefined for current
- path: string;
- }
- export const EditorResourceClose = "EditorResourceClose";
- export interface EditorCloseResourceEvent {
- editor:Editor.ResourceEditor;
- navigateToAvailableResource:boolean;
- }
- export const EditResource = "EditorEditResource";
- export interface EditResourceEvent {
- // The full path to the resource to edit
- path: string;
- }
- export const DeleteResource = "EditorDeleteResource";
- /**
- * Called once the resource has been deleted
- * @type {String}
- */
- export const DeleteResourceNotification = "DeleteResourceNotification";
- export interface DeleteResourceEvent {
- // The full path to the resource to edit
- path: string;
- }
- export const RenameResource = "EditorRenameResource";
- /**
- * Called once the resource has been renamed
- * @type {String}
- */
- export const RenameResourceNotification = "RenameResourceNotification";
- export interface RenameResourceEvent {
- // The full path to the resource to edit
- path: string;
- newPath: string;
- newName: string;
- // the asset to delete
- asset: ToolCore.Asset;
- }
- export const SceneEditStateChange = "SceneEditStateChange";
- export interface SceneEditStateChangeEvent {
- serializable: Atomic.Serializable;
- }
- export const InspectorProjectReference = "InspectorProjectReference";
- export interface InspectorProjectReferenceEvent {
- // The full path to the resource to edit
- path: string;
- }
- export const RemoveCurrentAssetAssigned = "RemoveCurrentAssetAssigned";
- export interface RemoveCurrentAssetAssignedEvent {
- }
- export const UserPreferencesChangedNotification = "UserPreferencesChangedNotification";
- export const WebViewLoadEnd = "WebViewLoadEnd";
- export const WebMessage = "WebMessage";
|