update reporting and logging and make bug fixes

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-09-15 17:03:16 -07:00
parent 296fca722e
commit 9196e98ee6
13 changed files with 122 additions and 106 deletions
@@ -215,20 +215,6 @@ namespace ScriptCanvasEditor
using EditorLoggingComponentNotificationBus = AZ::EBus<EditorLoggingComponentNotifications>;
class IUpgradeRequests
{
public:
AZ_TYPE_INFO(IUpgradeRequests, "{D25318F2-4DDA-4E76-98CB-6D561BB6234D}");
using AssetList = AZStd::list<AZ::Data::AssetInfo>;
virtual void ClearGraphsThatNeedUpgrade() = 0;
virtual void GraphNeedsManualUpgrade(const AZ::Data::AssetId&) = 0;
virtual const AZStd::vector<AZ::Data::AssetId>& GetGraphsThatNeedManualUpgrade() const = 0;
virtual bool IsUpgrading() = 0;
virtual void SetIsUpgrading(bool isUpgrading) = 0;
};
class UpgradeNotifications
: public AZ::EBusTraits
{
@@ -133,18 +133,23 @@ namespace ScriptCanvasEditor
bool GetVerbose() const;
const AZStd::string GetError() const { return m_error; }
void SetVerbose(bool isVerbose);
const AZStd::string& GetDebugPrefix() const;
void SetDebugPrefix(AZStd::string_view);
void MarkError(AZStd::string_view error) { m_error = error; }
AZStd::shared_ptr<IState> m_currentState = nullptr;
AZStd::vector<AZStd::shared_ptr<IState>> m_states;
private:
bool m_isVerbose = true;
AZStd::string m_debugPrefix;
AZStd::string m_error;
};
//! This state machine will collect and share a variety of data from the EditorGraph