You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixed 'Cannot revert umaps with Skein' by reloading all assets when attempting to revert a map Implemented 'Revert All' button #rb patrick.enfedaque, wouter.burgers, stuart.hill, manuel.lang [FYI] francis.hurteau, brooke.hubert #preflight 6388f51d4c3ce8ae5dbfb18f #preflight 639340545c5308d18c28b967 [CL 23475314 by marco anastasi in ue5-main branch]
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "ISourceControlOperation.h"
|
|
|
|
/** Adds some common functionality to source control operations. */
|
|
class FSourceControlOperationBase : public ISourceControlOperation
|
|
{
|
|
public:
|
|
/** Retrieve any info or error messages that may have accumulated during the operation. */
|
|
virtual const FSourceControlResultInfo& GetResultInfo() const override
|
|
{
|
|
return ResultInfo;
|
|
}
|
|
|
|
/** Add info/warning message. */
|
|
virtual void AddInfoMessge(const FText& InInfo)
|
|
{
|
|
ResultInfo.InfoMessages.Add(InInfo);
|
|
}
|
|
|
|
/** Add error message. */
|
|
virtual void AddErrorMessge(const FText& InError)
|
|
{
|
|
ResultInfo.ErrorMessages.Add(InError);
|
|
}
|
|
|
|
/** Add tag. */
|
|
virtual void AddTag(const FString& InTag)
|
|
{
|
|
ResultInfo.Tags.Add(InTag);
|
|
}
|
|
|
|
/**
|
|
* Append any info or error messages that may have accumulated during the operation prior
|
|
* to returning a result, ensuring to keep any already accumulated info.
|
|
*/
|
|
virtual void AppendResultInfo(const FSourceControlResultInfo& InResultInfo) override
|
|
{
|
|
ResultInfo.Append(InResultInfo);
|
|
}
|
|
|
|
FSourceControlResultInfo ResultInfo;
|
|
};
|