![]() |
Paradox Game Engine
v1.0.0 beta06
|
Defines a project template that allows automated creation of a project structure with files. More...
Public Member Functions | |
ProjectTemplate () | |
Initializes a new instance of the ProjectTemplate class. More... | |
LoggerResult | Generate (string outputDirectory, string projectName, Guid projectGuid, Dictionary< string, object > options=null) |
Generates this project template to the specified output directory. More... | |
void | Generate (string outputDirectory, string projectName, Guid projectGuid, ILogger log, Dictionary< string, object > options=null, List< string > generatedOutputFiles=null) |
Generates this project template to the specified output directory. More... | |
string | GeneratePart (string templatePathPart, ILogger log, Dictionary< string, object > options) |
Static Public Member Functions | |
static ProjectTemplate | Load (string filePath) |
Loads the a ProjectTemplate from the specified file path. More... | |
Properties | |
string | FilePath [get, set] |
Gets or sets the template file path. More... | |
bool | IsDynamicTemplate [get, set] |
Gets a value indicating whether this template description is dynamic (itself requiring T4 parsing before generating content files) More... | |
List< ProjectTemplateItem > | Files [get, set] |
Gets or sets the files part of the template. More... | |
List< UFile > | Assemblies [get, set] |
Gets or sets the assemblies. More... | |
Defines a project template that allows automated creation of a project structure with files.
Definition at line 22 of file ProjectTemplate.cs.
SiliconStudio.ProjectTemplating.ProjectTemplate.ProjectTemplate | ( | ) |
Initializes a new instance of the ProjectTemplate class.
Definition at line 27 of file ProjectTemplate.cs.
LoggerResult SiliconStudio.ProjectTemplating.ProjectTemplate.Generate | ( | string | outputDirectory, |
string | projectName, | ||
Guid | projectGuid, | ||
Dictionary< string, object > | options = null |
||
) |
Generates this project template to the specified output directory.
outputDirectory | The output directory. |
projectName | Name of the project. |
projectGuid | The project unique identifier. |
options | The options arguments that will be made available through the Session property in each template. |
System.ArgumentNullException | outputDirectory or projectName |
System.InvalidOperationException | FilePath cannot be null on this instance |
Definition at line 70 of file ProjectTemplate.cs.
void SiliconStudio.ProjectTemplating.ProjectTemplate.Generate | ( | string | outputDirectory, |
string | projectName, | ||
Guid | projectGuid, | ||
ILogger | log, | ||
Dictionary< string, object > | options = null , |
||
List< string > | generatedOutputFiles = null |
||
) |
Generates this project template to the specified output directory.
outputDirectory | The output directory. |
projectName | Name of the project. |
projectGuid | The project unique identifier. |
log | The log to output errors to. |
options | The options arguments that will be made available through the Session property in each template. |
generatedOutputFiles | The generated files. |
System.ArgumentNullException | outputDirectory or projectName |
System.InvalidOperationException | FilePath cannot be null on this instance |
Definition at line 94 of file ProjectTemplate.cs.
References SiliconStudio.Core.Yaml.YamlSerializer.Deserialize().
string SiliconStudio.ProjectTemplating.ProjectTemplate.GeneratePart | ( | string | templatePathPart, |
ILogger | log, | ||
Dictionary< string, object > | options | ||
) |
Definition at line 219 of file ProjectTemplate.cs.
|
static |
Loads the a ProjectTemplate from the specified file path.
filePath | The project template file. |
System.ArgumentNullException | filePath |
Definition at line 271 of file ProjectTemplate.cs.
References SiliconStudio.Core.Yaml.YamlSerializer.Deserialize().
|
getset |
|
getset |
Gets or sets the template file path.
The template path.
Definition at line 37 of file ProjectTemplate.cs.
|
getset |
Gets or sets the files part of the template.
The files.
Definition at line 50 of file ProjectTemplate.cs.
|
getset |
Gets a value indicating whether this template description is dynamic (itself requiring T4 parsing before generating content files)
true
if this instance is a dynamic template; otherwise, false
.
Definition at line 44 of file ProjectTemplate.cs.