redcode sc asset files bloodbath
Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include <GraphCanvas/Editor/EditorTypes.h>
|
||||
#include <GraphCanvas/Types/EntitySaveData.h>
|
||||
|
||||
#include <Editor/Include/ScriptCanvas/Assets/ScriptCanvasAsset.h>
|
||||
#include <Editor/Include/ScriptCanvas/Bus/NodeIdPair.h>
|
||||
#include <ScriptCanvas/Core/ExecutionNotificationsBus.h>
|
||||
#include <ScriptCanvas/Variable/VariableCore.h>
|
||||
|
||||
+6
-39
@@ -11,67 +11,34 @@
|
||||
#include <AzCore/Component/EntityId.h>
|
||||
#include <AzCore/Asset/AssetCommon.h>
|
||||
#include <ScriptCanvas/Core/Core.h>
|
||||
|
||||
class ScriptCanvasAsset;
|
||||
|
||||
#include <AzCore/Asset/AssetCommon.h>
|
||||
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
namespace Deprecated
|
||||
{
|
||||
/* source file description
|
||||
ScriptCanvasAssetDescription()
|
||||
: ScriptCanvas::AssetDescription(
|
||||
"{FA10C3DA-0717-4B72-8944-CD67D13DFA2B}", // type
|
||||
"Script Canvas", // name
|
||||
"Script Canvas Graph Asset", // description
|
||||
"@projectroot@/scriptcanvas", // suggested save path
|
||||
".scriptcanvas", // fileExtention
|
||||
"Script Canvas", // group
|
||||
"Untitled-%i", // asset name pattern
|
||||
"Script Canvas Files (*.scriptcanvas)", // file filter
|
||||
"Script Canvas", // asset type display name
|
||||
"Script Canvas", // entity name
|
||||
"Icons/ScriptCanvas/Viewport/ScriptCanvas.png", // icon path
|
||||
AZ::Color(0.321f, 0.302f, 0.164f, 1.0f), // display color
|
||||
true // is editable type
|
||||
)
|
||||
{}
|
||||
|
||||
AssetDescription( AZ::Data::AssetType assetType,
|
||||
const char* name,
|
||||
const char* description,
|
||||
const char* suggestedSavePath,
|
||||
const char* fileExtension,
|
||||
const char* group,
|
||||
const char* assetNamePattern,
|
||||
const char* fileFilter,
|
||||
const char* assetTypeDisplayName,
|
||||
const char* entityName,
|
||||
const char* iconPath,
|
||||
AZ::Color displayColor,
|
||||
bool isEditableType)
|
||||
*/
|
||||
class ScriptCanvasAssetHolder
|
||||
{
|
||||
public:
|
||||
AZ_TYPE_INFO(ScriptCanvasAssetHolder, "{3E80CEE3-2932-4DC1-AADF-398FDDC6DEFE}");
|
||||
AZ_CLASS_ALLOCATOR(ScriptCanvasAssetHolder, AZ::SystemAllocator, 0);
|
||||
|
||||
ScriptCanvasAssetHolder() = default;
|
||||
static void Reflect(AZ::ReflectContext* context);
|
||||
|
||||
AZ::Data::Asset<ScriptCanvasAsset> m_scriptCanvasAsset;
|
||||
|
||||
ScriptCanvasAssetHolder() = default;
|
||||
};
|
||||
|
||||
// only is used as a pass-through to loading a guid / hint during versioning
|
||||
class ScriptCanvasAsset
|
||||
: public AZ::Data::AssetData
|
||||
{
|
||||
public:
|
||||
AZ_TYPE_INFO(ScriptCanvasAsset, "{3E80CEE3-2932-4DC1-AADF-398FDDC6DEFE}");
|
||||
AZ_TYPE_INFO(ScriptCanvasAsset, "{FA10C3DA-0717-4B72-8944-CD67D13DFA2B}");
|
||||
AZ_CLASS_ALLOCATOR(ScriptCanvasAsset, AZ::SystemAllocator, 0);
|
||||
|
||||
ScriptCanvasAsset() = default;
|
||||
static void Reflect(AZ::ReflectContext * context);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
+2
-15
@@ -21,14 +21,8 @@
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
/*! EditorScriptCanvasComponent
|
||||
The user facing Editor Component for interfacing with ScriptCanvas
|
||||
It connects to the AssetCatalogEventBus in order to remove the ScriptCanvasAssetHolder asset reference
|
||||
when the asset is removed from the file system. The reason the ScriptCanvasAssetHolder holder does not
|
||||
remove the asset reference itself is because the ScriptCanvasEditor MainWindow has a ScriptCanvasAssetHolder
|
||||
which it uses to maintain the asset data in memory. Therefore removing an open ScriptCanvasAsset from the file system
|
||||
will remove the reference from the EditorScriptCanvasComponent, but not the reference from the MainWindow allowing the
|
||||
ScriptCanvas graph to still be modified while open
|
||||
Finally per graph instance variables values are stored on the EditorScriptCanvasComponent and injected into the runtime ScriptCanvas component in BuildGameEntity
|
||||
The user facing Editor Component for interfacing with ScriptCanvas.
|
||||
Per graph instance variables values are stored here and injected into the runtime ScriptCanvas component in BuildGameEntity.
|
||||
*/
|
||||
class EditorScriptCanvasComponent
|
||||
: public AzToolsFramework::Components::EditorComponentBase
|
||||
@@ -88,13 +82,6 @@ namespace ScriptCanvasEditor
|
||||
AZ::Data::AssetId GetAssetId() const override;
|
||||
//=====================================================================
|
||||
|
||||
|
||||
|
||||
|
||||
//=====================================================================
|
||||
// EditorEntityContextNotificationBus
|
||||
|
||||
|
||||
protected:
|
||||
enum class SourceChangeDescription : AZ::u8
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user