123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #include <SceneAPI/SceneCore/Events/ExportEventContext.h>
- namespace AZ
- {
- namespace SceneAPI
- {
- namespace Events
- {
- /////////////
- // PreExportEventContext
- /////////////
- PreExportEventContext::PreExportEventContext(
- ExportProductList& productList,
- const AZStd::string& outputDirectory,
- const Containers::Scene& scene,
- const char* platformIdentifier,
- bool debug)
- : m_outputDirectory(outputDirectory)
- , m_productList(productList)
- , m_scene(scene)
- , m_platformIdentifier(platformIdentifier)
- , m_debug(debug)
- {
- }
- PreExportEventContext::PreExportEventContext(
- ExportProductList& productList,
- AZStd::string&& outputDirectory,
- const Containers::Scene& scene,
- const char* platformIdentifier,
- bool debug)
- : m_outputDirectory(AZStd::move(outputDirectory))
- , m_productList(productList)
- , m_scene(scene)
- , m_platformIdentifier(platformIdentifier)
- , m_debug(debug)
- {
- }
- const AZStd::string& PreExportEventContext::GetOutputDirectory() const
- {
- return m_outputDirectory;
- }
- ExportProductList& PreExportEventContext::GetProductList()
- {
- return m_productList;
- }
- const ExportProductList& PreExportEventContext::GetProductList() const
- {
- return m_productList;
- }
- const Containers::Scene& PreExportEventContext::GetScene() const
- {
- return m_scene;
- }
- const char* PreExportEventContext::GetPlatformIdentifier() const
- {
- return m_platformIdentifier;
- }
- bool PreExportEventContext::GetDebug() const
- {
- return m_debug;
- }
- /////////////
- // ExportEventContext
- /////////////
- ExportEventContext::ExportEventContext(ExportProductList& productList, const AZStd::string& outputDirectory, const Containers::Scene& scene, const char* platformIdentifier)
- : m_outputDirectory(outputDirectory)
- , m_productList(productList)
- , m_scene(scene)
- , m_platformIdentifier(platformIdentifier)
- {
- }
- ExportEventContext::ExportEventContext(ExportProductList& productList, AZStd::string&& outputDirectory, const Containers::Scene& scene, const char* platformIdentifier)
- : m_outputDirectory(AZStd::move(outputDirectory))
- , m_productList(productList)
- , m_scene(scene)
- , m_platformIdentifier(platformIdentifier)
- {
- }
- const AZStd::string& ExportEventContext::GetOutputDirectory() const
- {
- return m_outputDirectory;
- }
- ExportProductList& ExportEventContext::GetProductList()
- {
- return m_productList;
- }
- const ExportProductList& ExportEventContext::GetProductList() const
- {
- return m_productList;
- }
- const Containers::Scene& ExportEventContext::GetScene() const
- {
- return m_scene;
- }
- const char* ExportEventContext::GetPlatformIdentifier() const
- {
- return m_platformIdentifier;
- }
- /////////////
- // PostExportEventContext
- /////////////
- PostExportEventContext::PostExportEventContext(ExportProductList& productList, const AZStd::string& outputDirectory, const char* platformIdentifier)
- : m_outputDirectory(outputDirectory)
- , m_productList(productList)
- , m_platformIdentifier(platformIdentifier)
- {
- }
- PostExportEventContext::PostExportEventContext(ExportProductList& productList, AZStd::string&& outputDirectory, const char* platformIdentifier)
- : m_outputDirectory(AZStd::move(outputDirectory))
- , m_platformIdentifier(platformIdentifier)
- , m_productList(productList)
- {
- }
- const AZStd::string PostExportEventContext::GetOutputDirectory() const
- {
- return m_outputDirectory;
- }
- ExportProductList& PostExportEventContext::GetProductList()
- {
- return m_productList;
- }
- const ExportProductList& PostExportEventContext::GetProductList() const
- {
- return m_productList;
- }
- const char* PostExportEventContext::GetPlatformIdentifier() const
- {
- return m_platformIdentifier;
- }
- } // Events
- } // SceneAPI
- } // AZ
|