You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
namespace FlaxEditor.Content.Create
{
/// <summary>
/// File create entry.
/// </summary>
public abstract class CreateFileEntry : IFileEntryAction
{
/// <inheritdoc />
public string SourceUrl { get; }
/// <inheritdoc />
public string ResultUrl { get; }
/// <summary>
/// Gets a value indicating whether this entry has settings to modify.
/// </summary>
public virtual bool HasSettings => Settings != null;
/// <summary>
/// Gets or sets the settings object to modify.
/// </summary>
public virtual object Settings => null;
/// <summary>
/// Initializes a new instance of the <see cref="CreateFileEntry"/> class.
/// </summary>
/// <param name="outputType">The output file type.</param>
/// <param name="resultUrl">The result file url.</param>
protected CreateFileEntry(string outputType, string resultUrl)
{
SourceUrl = outputType;
ResultUrl = resultUrl;
}
/// <summary>
/// Creates the result file.
/// </summary>
/// <returns>True if failed, otherwise false.</returns>
public abstract bool Create();
/// <inheritdoc />
public bool Execute()
{
return Create();
}
}
}