Files
FlaxEngine/Source/Editor/Content/Items/CppScriptItem.cs
2024-02-26 19:00:48 +01:00

29 lines
866 B
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using FlaxEngine;
namespace FlaxEditor.Content
{
/// <summary>
/// Content item that contains C++ script file with source code.
/// </summary>
/// <seealso cref="FlaxEditor.Content.ScriptItem" />
public class CppScriptItem : ScriptItem
{
/// <summary>
/// Initializes a new instance of the <see cref="CppScriptItem"/> class.
/// </summary>
/// <param name="path">The path to the item.</param>
public CppScriptItem(string path)
: base(path)
{
}
/// <inheritdoc />
public override string TypeDescription => Path.EndsWith(".h") ? "C++ Header File" : "C++ Source Code";
/// <inheritdoc />
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.CPPScript128;
}
}