Simplify
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using FlaxEngine;
|
||||
|
||||
namespace %namespace%
|
||||
namespace %namespace%;
|
||||
|
||||
/// <summary>
|
||||
/// %class% Script.
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace FlaxEditor.Content
|
||||
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("%class%", scriptName);
|
||||
scriptTemplate = scriptTemplate.Replace("%namespace%", $"{scriptNamespace};");
|
||||
scriptTemplate = scriptTemplate.Replace("%namespace%", scriptNamespace);
|
||||
|
||||
// Save
|
||||
File.WriteAllText(outputPath, scriptTemplate, Encoding.UTF8);
|
||||
|
||||
Reference in New Issue
Block a user