Add more scripting templates.

This commit is contained in:
Chandler Cox
2024-11-22 17:07:10 -06:00
parent d4b663cd1a
commit 0335086df8
9 changed files with 204 additions and 3 deletions

View File

@@ -100,6 +100,24 @@ namespace FlaxEditor.Content
sourceTemplate = StringUtils.CombinePaths(Globals.EngineContentFolder, "Editor/Scripting/ScriptTemplate.cpp");
}
}
/// <summary>
/// Context proxy object for C++ Actor files.
/// </summary>
/// <seealso cref="FlaxEditor.Content.CppProxy" />
[ContentContextMenu("New/C++/C++ Actor")]
public class CppActorProxy : CppProxy
{
/// <inheritdoc />
public override string Name => "C++ Actor";
/// <inheritdoc />
protected override void GetTemplatePaths(out string headerTemplate, out string sourceTemplate)
{
headerTemplate = StringUtils.CombinePaths(Globals.EngineContentFolder, "Editor/Scripting/ActorTemplate.h");
sourceTemplate = StringUtils.CombinePaths(Globals.EngineContentFolder, "Editor/Scripting/ActorTemplate.cpp");
}
}
/// <summary>
/// Context proxy object for C++ Json Asset files.