Nuke.Unreal
Build Unreal apps in Style.
Loading...
Searching...
No Matches
UatConfig.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5
6namespace Nuke.Unreal.Tools;
7
8/// <summary>
9/// Unreal Automation Tool is a vast collection of scripts solving all aspects of deploying
10/// a program made in Unreal Engine
11/// </summary>
13{
14 /// <summary>
15 /// Path to the current project. May not be specified, in which case we compile scripts for all projects.
16 /// </summary>
17 public virtual UatConfig ScriptsForProject(params object[] values)
18 {
19 AppendArgument(
20 new UnrealToolArgument("-ScriptsForProject", string.Join("+", values))
21 );
22 return this;
23 }
24
25 public override UatConfig NoCompile(params object[] values)
26 {
27 // Overriding NoCompile, despite being flagged as deprecated in UE4, it's no longer
28 // deprecated in UE5. However to not confuse usage for UE4, here we override
29 // the argument compatibility.
30 if (true)
31 {
32 AppendArgument(new UnrealToolArgument(
33 "-NoCompile",
34 Value: values != null && values.Length > 0 ? string.Join("+", values) : null,
35 Setter: '=',
36 Meta: new(
37 Compatibility: UnrealCompatibility.All
38 )
39 ));
40 }
41 return this;
42 }
43}
Unreal Automation Tool is a vast collection of scripts solving all aspects of deploying a program mad...
Unreal Automation Tool is a vast collection of scripts solving all aspects of deploying a program mad...
Definition UatConfig.cs:13
override UatConfig NoCompile(params object[] values)
Do not attempt to compile any script modules - attempts to run with whatever is up to date.
Definition UatConfig.cs:25
virtual UatConfig ScriptsForProject(params object[] values)
Path to the current project. May not be specified, in which case we compile scripts for all projects.
Definition UatConfig.cs:17
partial record class UnrealToolArgument(string Name, string? Value=null, char Setter='=', UnrealToolArgumentMeta? Meta=null)
Argument for an Unreal tool.
UnrealCompatibility
A flag enum representation for checking the Unreal version compatibility of various features....