Files
o3de/Code/Tools/SceneAPI/SceneData/Rules/ScriptProcessorRule.h
T
Allen Jackson de97ad6ade {lyn8578} adding UX for assinging a Python scene builder (#7551)
* {lyn8578} adding UX for assinging a Python scene builder

Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>

* improved the Reset and Assign script logic

Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>

* GUI updates to highlight the scene script


Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>

* save off the script file name instead of holding onto the rule
update the header display name separate from setting the scene

Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>
2022-02-15 15:01:43 -06:00

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