You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
/*
|
|
* 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
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <AzCore/Memory/Memory.h>
|
|
#include <AzCore/std/string/string.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Rules/IScriptProcessorRule.h>
|
|
|
|
namespace AZ
|
|
{
|
|
class ReflectContext;
|
|
|
|
namespace SceneAPI
|
|
{
|
|
namespace SceneData
|
|
{
|
|
class ScriptProcessorRule
|
|
: public DataTypes::IScriptProcessorRule
|
|
{
|
|
public:
|
|
AZ_RTTI(ScriptProcessorRule, "{E61EDCBC-867A-4A6A-B49D-C87E60D3EC33}", DataTypes::IScriptProcessorRule);
|
|
AZ_CLASS_ALLOCATOR(ScriptProcessorRule, AZ::SystemAllocator, 0)
|
|
|
|
~ScriptProcessorRule() override = default;
|
|
|
|
inline const AZStd::string& GetScriptFilename() const override
|
|
{
|
|
return m_scriptFilename;
|
|
}
|
|
|
|
inline void SetScriptFilename(AZStd::string scriptFilename)
|
|
{
|
|
m_scriptFilename = AZStd::move(scriptFilename);
|
|
}
|
|
|
|
inline DataTypes::ScriptProcessorFallbackLogic GetScriptProcessorFallbackLogic() const override
|
|
{
|
|
return m_fallbackLogic;
|
|
}
|
|
|
|
static void Reflect(ReflectContext* context);
|
|
|
|
protected:
|
|
AZStd::string m_scriptFilename;
|
|
DataTypes::ScriptProcessorFallbackLogic m_fallbackLogic = DataTypes::ScriptProcessorFallbackLogic::FailBuild;
|
|
};
|
|
} // SceneData
|
|
} // SceneAPI
|
|
} // AZ
|