Gems/ScriptCanvas*
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -109,11 +109,11 @@ namespace ScriptCanvas
|
||||
//! NOTE: There can be multiple Graph components on the same entity so calling FindComponent may not not return this GraphComponent
|
||||
AZ::Entity* GetGraphEntity() const override { return GetEntity(); }
|
||||
|
||||
Graph* GetGraph() { return this; }
|
||||
Graph* GetGraph() override { return this; }
|
||||
|
||||
GraphData* GetGraphData() override { return &m_graphData; }
|
||||
const GraphData* GetGraphDataConst() const override { return &m_graphData; }
|
||||
const VariableData* GetVariableDataConst() const { return const_cast<Graph*>(this)->GetVariableData(); }
|
||||
const VariableData* GetVariableDataConst() const override { return const_cast<Graph*>(this)->GetVariableData(); }
|
||||
|
||||
bool AddGraphData(const GraphData&) override;
|
||||
void RemoveGraphData(const GraphData&) override;
|
||||
@@ -131,7 +131,7 @@ namespace ScriptCanvas
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
// StatusRequestBus
|
||||
void ValidateGraph(ValidationResults& validationEvents);
|
||||
void ValidateGraph(ValidationResults& validationEvents) override;
|
||||
void ReportValidationResults(ValidationResults&) override { }
|
||||
////
|
||||
|
||||
|
||||
+4
-4
@@ -31,12 +31,12 @@ namespace ScriptCanvas
|
||||
SetDescription(AZStd::string::format("Variable with id %s has an invalid type.", variableId.ToString().c_str()));
|
||||
}
|
||||
|
||||
bool CanAutoFix() const
|
||||
bool CanAutoFix() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
AZStd::string GetIdentifier() const
|
||||
AZStd::string GetIdentifier() const override
|
||||
{
|
||||
return DataValidationIds::InvalidVariableTypeId;
|
||||
}
|
||||
@@ -46,12 +46,12 @@ namespace ScriptCanvas
|
||||
return m_variableId;
|
||||
}
|
||||
|
||||
AZ::Crc32 GetIdCrc() const
|
||||
AZ::Crc32 GetIdCrc() const override
|
||||
{
|
||||
return DataValidationIds::InvalidVariableTypeCrc;
|
||||
}
|
||||
|
||||
AZStd::string_view GetTooltip() const
|
||||
AZStd::string_view GetTooltip() const override
|
||||
{
|
||||
return "Invalid type for variable, auto fixing will remove all invalid variable nodes.";
|
||||
}
|
||||
|
||||
+4
-4
@@ -59,17 +59,17 @@ namespace ScriptCanvas
|
||||
, targetNode.GetNodeName().data()));
|
||||
}
|
||||
|
||||
bool CanAutoFix() const
|
||||
bool CanAutoFix() const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
AZStd::string GetIdentifier() const
|
||||
AZStd::string GetIdentifier() const override
|
||||
{
|
||||
return DataValidationIds::ScopedDataConnectionId;
|
||||
}
|
||||
|
||||
AZ::Crc32 GetIdCrc() const
|
||||
AZ::Crc32 GetIdCrc() const override
|
||||
{
|
||||
return DataValidationIds::ScopedDataConnectionCrc;
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace ScriptCanvas
|
||||
return m_connectionId;
|
||||
}
|
||||
|
||||
AZStd::string_view GetTooltip() const
|
||||
AZStd::string_view GetTooltip() const override
|
||||
{
|
||||
return "Out of Scope Data Connection";
|
||||
}
|
||||
|
||||
+4
-4
@@ -37,17 +37,17 @@ namespace ScriptCanvas
|
||||
SetDescription("The Script Event asset this node uses has changed. This node is no longer valid. You can fix this by deleting this node, re-adding it and reconnecting it.");
|
||||
}
|
||||
|
||||
bool CanAutoFix() const
|
||||
bool CanAutoFix() const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
AZStd::string GetIdentifier() const
|
||||
AZStd::string GetIdentifier() const override
|
||||
{
|
||||
return DataValidationIds::ScriptEventVersionMismatchId;
|
||||
}
|
||||
|
||||
AZ::Crc32 GetIdCrc() const
|
||||
AZ::Crc32 GetIdCrc() const override
|
||||
{
|
||||
return DataValidationIds::ScriptEventVersionMismatchCrc;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ namespace ScriptCanvas
|
||||
return m_definition;
|
||||
}
|
||||
|
||||
AZStd::string_view GetTooltip() const
|
||||
AZStd::string_view GetTooltip() const override
|
||||
{
|
||||
return "The Script Event asset has changed, you can fix this problem by deleting the out of date node and re-adding it to your graph.";
|
||||
}
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ namespace ScriptCanvas
|
||||
return DataValidationIds::UnknownSourceEndpointCrc;
|
||||
}
|
||||
|
||||
AZStd::string_view GetTooltip() const
|
||||
AZStd::string_view GetTooltip() const override
|
||||
{
|
||||
return "Unknown Source Endpoint";
|
||||
}
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ namespace ScriptCanvas
|
||||
}
|
||||
|
||||
// HighlightEntityEffect
|
||||
AZ::EntityId GetHighlightTarget() const
|
||||
AZ::EntityId GetHighlightTarget() const override
|
||||
{
|
||||
return m_nodeId;
|
||||
}
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ namespace ScriptCanvas
|
||||
}
|
||||
|
||||
// HighlightEntityEffect
|
||||
AZ::EntityId GetHighlightTarget() const
|
||||
AZ::EntityId GetHighlightTarget() const override
|
||||
{
|
||||
return m_nodeId;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace ScriptCanvas
|
||||
return true;
|
||||
}
|
||||
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const override
|
||||
{
|
||||
return AZ::Success(DependencyReport{});
|
||||
}
|
||||
@@ -49,8 +49,6 @@ namespace ScriptCanvas
|
||||
AZ_INLINE const NamedSlotIdMap& GetNamedSlotIdMap() const { return m_formatSlotMap; }
|
||||
AZ_INLINE const int GetPostDecimalPrecision() const { return m_numericPrecision; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// This is a map that binds the index into m_unresolvedString to the SlotId that needs to be checked for a valid datum.
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace ScriptCanvas
|
||||
|
||||
AZ::Outcome<AZStd::string, void> GetFunctionCallName(const Slot* /*slot*/) const override;
|
||||
bool IsEBusAddressed() const override;
|
||||
AZStd::optional<size_t> GetEventIndex(AZStd::string eventName) const;
|
||||
AZStd::optional<size_t> GetEventIndex(AZStd::string eventName) const override;
|
||||
const EBusEventEntry* FindEvent(const AZStd::string& name) const;
|
||||
AZStd::string GetEBusName() const override;
|
||||
bool IsAutoConnected() const override;
|
||||
@@ -138,7 +138,7 @@ namespace ScriptCanvas
|
||||
|
||||
void SetAutoConnectToGraphOwner(bool enabled);
|
||||
|
||||
void OnDeserialize();
|
||||
void OnDeserialize() override;
|
||||
|
||||
#if defined(OBJECT_STREAM_EDITOR_ASSET_LOADING_SUPPORT_ENABLED)////
|
||||
void OnWriteEnd();
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace ScriptCanvas
|
||||
|
||||
SlotId GetBusSlotId() const;
|
||||
|
||||
void OnDeserialize();
|
||||
void OnDeserialize() override;
|
||||
|
||||
#if defined(OBJECT_STREAM_EDITOR_ASSET_LOADING_SUPPORT_ENABLED)////
|
||||
void OnWriteEnd();
|
||||
|
||||
@@ -36,9 +36,9 @@ namespace ScriptCanvas
|
||||
void OnConfigured() override;
|
||||
void ConfigureVisualExtensions() override;
|
||||
|
||||
bool CanDeleteSlot(const SlotId& slotId) const;
|
||||
bool CanDeleteSlot(const SlotId& slotId) const override;
|
||||
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId);
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId) override;
|
||||
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const override;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace ScriptCanvas
|
||||
|
||||
IsNull();
|
||||
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const;
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const override;
|
||||
|
||||
bool IsIfBranch() const override;
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ namespace ScriptCanvas
|
||||
|
||||
OrderedSequencer();
|
||||
|
||||
bool CanDeleteSlot(const SlotId& slotId) const;
|
||||
bool CanDeleteSlot(const SlotId& slotId) const override;
|
||||
|
||||
AZ::Outcome<DependencyReport, void> GetDependencies() const override;
|
||||
|
||||
ConstSlotsOutcome GetSlotsInExecutionThreadByTypeImpl(const Slot& executionSlot, CombinedSlotType targetSlotType, const Slot* /*executionChildSlot*/) const override;
|
||||
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId);
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId) override;
|
||||
|
||||
void OnInit() override;
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@ namespace ScriptCanvas
|
||||
void OnConfigured() override;
|
||||
void ConfigureVisualExtensions() override;
|
||||
|
||||
bool CanDeleteSlot(const SlotId& slotId) const;
|
||||
bool CanDeleteSlot(const SlotId& slotId) const override;
|
||||
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId);
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId) override;
|
||||
|
||||
// Script Canvas Translation...
|
||||
bool IsSwitchStatement() const override { return true; }
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ namespace ScriptCanvas
|
||||
void OnInit() override;
|
||||
void ConfigureVisualExtensions() override;
|
||||
|
||||
bool OnValidateNode(ValidationResults& validationResults);
|
||||
bool OnValidateNode(ValidationResults& validationResults) override;
|
||||
|
||||
SlotId HandleExtension(AZ::Crc32 extensionId) override;
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace ScriptCanvas
|
||||
ScriptCanvasId FindScriptCanvasId(AZ::Entity* graphEntity) override;
|
||||
ScriptCanvas::Node* GetNode(const AZ::EntityId&, const AZ::Uuid&) override;
|
||||
ScriptCanvas::Node* CreateNodeOnEntity(const AZ::EntityId& entityId, ScriptCanvasId scriptCanvasId, const AZ::Uuid& nodeType) override;
|
||||
SystemComponentConfiguration GetSystemComponentConfiguration()
|
||||
SystemComponentConfiguration GetSystemComponentConfiguration() override
|
||||
{
|
||||
SystemComponentConfiguration configuration;
|
||||
configuration.m_maxIterationsForInfiniteLoopDetection = m_infiniteLoopDetectionMaxIterations;
|
||||
|
||||
Reference in New Issue
Block a user