4 using SiliconStudio.Core.Diagnostics;
5 using SiliconStudio.Core.IO;
7 namespace SiliconStudio.Assets.Templates
18 public string Name {
get; set; }
26 public string Namespace {
get; set; }
43 public IntPtr WindowHandle {
get; set; }
70 throw new InvalidOperationException(
"[Name] cannot be null in TemplateGeneratorParameters");
72 if (OutputDirectory == null && Description.Scope !=
TemplateScope.Package)
74 throw new InvalidOperationException(
"[OutputDirectory] cannot be null in TemplateGeneratorParameters for a template that is not generated within a Package");
76 if (Description == null)
78 throw new InvalidOperationException(
"[Description] cannot be null in TemplateGeneratorParameters");
82 throw new InvalidOperationException(
"[Logger] cannot be null in TemplateGeneratorParameters");
87 throw new InvalidOperationException(
"[Session] cannot be null in for a template expecting a PackageSession");
91 throw new InvalidOperationException(
"[Package] cannot be null in for a template expecting a Package");
void Validate()
Validates this instance (all fields must be setup)
TemplateScope
Describes if a template is supporting a particular context
Parameters used by ITemplateGenerator.PrepareForRun
A session for editing a package.
Base implementation for ILogger.
Description of a template generator that can be displayed in the GameStudio.
Defines a normalized directory path. See UPath for details. This class cannot be inherited.
The template can be applied to an existing PackageSession.
A package managing assets.