Merge branch 'gameplugin-template' of https://github.com/Tryibion/FlaxEngine into Tryibion-gameplugin-template
This commit is contained in:
25
Content/Editor/Scripting/GamePluginTemplate.cs
Normal file
25
Content/Editor/Scripting/GamePluginTemplate.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
%copyright%using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using FlaxEngine;
|
||||||
|
|
||||||
|
namespace %namespace%;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// %class% GamePlugin.
|
||||||
|
/// </summary>
|
||||||
|
public class %class% : GamePlugin
|
||||||
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public override void Initialize()
|
||||||
|
{
|
||||||
|
base.Initialize();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public override void Deinitialize()
|
||||||
|
{
|
||||||
|
base.Deinitialize();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -106,6 +106,23 @@ namespace FlaxEditor.Content
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Context proxy object for C# GamePlugin files.
|
||||||
|
/// </summary>
|
||||||
|
/// <seealso cref="FlaxEditor.Content.CSharpProxy" />
|
||||||
|
[ContentContextMenu("New/C#/C# GamePlugin")]
|
||||||
|
public class CSharpGamePluginProxy : CSharpProxy
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override string Name => "C# GamePlugin";
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void GetTemplatePath(out string path)
|
||||||
|
{
|
||||||
|
path = StringUtils.CombinePaths(Globals.EngineContentFolder, "Editor/Scripting/GamePluginTemplate.cs");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Context proxy object for empty C# files.
|
/// Context proxy object for empty C# files.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1140,6 +1140,7 @@ namespace FlaxEditor.Modules
|
|||||||
Proxy.Add(new CSharpEmptyStructProxy());
|
Proxy.Add(new CSharpEmptyStructProxy());
|
||||||
Proxy.Add(new CSharpEmptyInterfaceProxy());
|
Proxy.Add(new CSharpEmptyInterfaceProxy());
|
||||||
Proxy.Add(new CSharpActorProxy());
|
Proxy.Add(new CSharpActorProxy());
|
||||||
|
Proxy.Add(new CSharpGamePluginProxy());
|
||||||
Proxy.Add(new CppAssetProxy());
|
Proxy.Add(new CppAssetProxy());
|
||||||
Proxy.Add(new CppStaticClassProxy());
|
Proxy.Add(new CppStaticClassProxy());
|
||||||
Proxy.Add(new CppScriptProxy());
|
Proxy.Add(new CppScriptProxy());
|
||||||
|
|||||||
Reference in New Issue
Block a user