Update cs script temple to use non-indented namespace.
This commit is contained in:
@@ -3,34 +3,34 @@ using System.Collections.Generic;
|
|||||||
using FlaxEngine;
|
using FlaxEngine;
|
||||||
|
|
||||||
namespace %namespace%
|
namespace %namespace%
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// %class% Script.
|
||||||
|
/// </summary>
|
||||||
|
public class %class% : Script
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// %class% Script.
|
public override void OnStart()
|
||||||
/// </summary>
|
|
||||||
public class %class% : Script
|
|
||||||
{
|
{
|
||||||
/// <inheritdoc/>
|
// Here you can add code that needs to be called when script is created, just before the first game update
|
||||||
public override void OnStart()
|
}
|
||||||
{
|
|
||||||
// Here you can add code that needs to be called when script is created, just before the first game update
|
/// <inheritdoc/>
|
||||||
}
|
public override void OnEnable()
|
||||||
|
{
|
||||||
/// <inheritdoc/>
|
// Here you can add code that needs to be called when script is enabled (eg. register for events)
|
||||||
public override void OnEnable()
|
}
|
||||||
{
|
|
||||||
// Here you can add code that needs to be called when script is enabled (eg. register for events)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override void OnDisable()
|
public override void OnDisable()
|
||||||
{
|
{
|
||||||
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
|
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override void OnUpdate()
|
public override void OnUpdate()
|
||||||
{
|
{
|
||||||
// Here you can add code that needs to be called every frame
|
// Here you can add code that needs to be called every frame
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace FlaxEditor.Content
|
|||||||
var copyrightComment = string.IsNullOrEmpty(gameSettings.CopyrightNotice) ? string.Empty : string.Format("// {0}{1}{1}", gameSettings.CopyrightNotice, Environment.NewLine);
|
var copyrightComment = string.IsNullOrEmpty(gameSettings.CopyrightNotice) ? string.Empty : string.Format("// {0}{1}{1}", gameSettings.CopyrightNotice, Environment.NewLine);
|
||||||
scriptTemplate = scriptTemplate.Replace("%copyright%", copyrightComment);
|
scriptTemplate = scriptTemplate.Replace("%copyright%", copyrightComment);
|
||||||
scriptTemplate = scriptTemplate.Replace("%class%", scriptName);
|
scriptTemplate = scriptTemplate.Replace("%class%", scriptName);
|
||||||
scriptTemplate = scriptTemplate.Replace("%namespace%", scriptNamespace);
|
scriptTemplate = scriptTemplate.Replace("%namespace%", $"{scriptNamespace};");
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
File.WriteAllText(outputPath, scriptTemplate, Encoding.UTF8);
|
File.WriteAllText(outputPath, scriptTemplate, Encoding.UTF8);
|
||||||
|
|||||||
Reference in New Issue
Block a user