/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #ifndef CRYINCLUDE_EDITOR_CORE_INCLUDE_API_H #define CRYINCLUDE_EDITOR_CORE_INCLUDE_API_H #pragma once #include #if defined(AZ_PLATFORM_WINDOWS) #if defined(EDITOR_CORE) #define EDITOR_CORE_API AZ_DLL_EXPORT #else #define EDITOR_CORE_API AZ_DLL_IMPORT #endif #elif defined(AZ_PLATFORM_MAC) || defined(AZ_PLATFORM_LINUX) #if defined(EDITOR_CORE) #define EDITOR_CORE_API __attribute__ ((visibility ("default"))) #else #define EDITOR_CORE_API #endif #endif struct IEditor; namespace AZ { namespace Internal { class EnvironmentInterface; } typedef Internal::EnvironmentInterface* EnvironmentInstance; } EDITOR_CORE_API void SetIEditor(IEditor* pEditor); EDITOR_CORE_API IEditor* GetIEditor(); //! Attach the editorcore dll to the system environmen in the System DLL EDITOR_CORE_API void SetEditorCoreEnvironment(struct SSystemGlobalEnvironment* pEnv); //! Attach the editorcore dll to the AZ Environment which allows ebus and memory allocation - should be done really early EDITOR_CORE_API void AttachEditorCoreAZEnvironment(AZ::EnvironmentInstance pAzEnv); //! Detach the editorcore dll from the AZ Environment, should be done last. EDITOR_CORE_API void DetachEditorCoreAZEnvironment(); #if defined(AZ_PLATFORM_WINDOWS) #include "../IEditor.h" #endif #endif // CRYINCLUDE_EDITOR_CORE_INCLUDE_API_H