MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
PlainTextComponent.h
Go to the documentation of this file.
1/** @noop License Comment
2 * @file
3 * @copyright
4 * This Source Code is subject to the terms of the Mozilla Public License, v2.0.
5 * If a copy of the MPL was not distributed with this file You can obtain one at
6 * https://mozilla.org/MPL/2.0/
7 *
8 * @author David Mórász
9 * @date 2025
10 */
11
12#pragma once
13
14#include "CoreMinimal.h"
15#include "Mcro/Error.h"
16
17namespace Mcro::Error
18{
19 /**
20 * An error component which displays only its Message, used as simple modular plain text storage
21 */
22 class MCRO_API IPlainTextComponent : public IError
23 {
24 protected:
25 virtual void AddError(const FString& name, const TSharedRef<IError>& error, const FString& typeOverride = {}) override {}
26 virtual void SerializeInnerErrors(YAML::Emitter&) const override {}
27
28 virtual void SerializeYaml(YAML::Emitter& emitter, bool isRoot) const override;
29 virtual TSharedRef<SErrorDisplay> CreateErrorWidget() override;
30 };
31
32}
virtual TSharedRef< SErrorDisplay > CreateErrorWidget() override
virtual void AddError(const FString &name, const TSharedRef< IError > &error, const FString &typeOverride={}) override
virtual void SerializeYaml(YAML::Emitter &emitter, bool isRoot) const override
virtual void SerializeInnerErrors(YAML::Emitter &) const override