Nuke.Unreal
Build Unreal apps in Style.
Loading...
Searching...
No Matches
UnrealTargetType.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5using System.ComponentModel;
6using Nuke.Common.Tooling;
7using Newtonsoft.Json;
8
9namespace Nuke.Unreal
10{
11 /// <summary>
12 /// The regular target types UBT supports
13 /// </summary>
14 [TypeConverter(typeof(TypeConverter<UnrealTargetType>))]
15 [JsonConverter(typeof(EnumerationJsonConverter<UnrealTargetType>))]
16 public class UnrealTargetType : Enumeration
17 {
18 /// <summary>
19 /// Can act as both client and server
20 /// </summary>
21 public static readonly UnrealTargetType Game = new() { Value = nameof(Game) };
22
23 /// <summary>
24 /// Editor builds for the project
25 /// </summary>
26 public static readonly UnrealTargetType Editor = new() { Value = nameof(Editor) };
27
28 /// <summary>
29 /// Can only act like a client, cannot host a multiplayer session on its own
30 /// </summary>
31 public static readonly UnrealTargetType Client = new() { Value = nameof(Client) };
32
33 /// <summary>
34 /// Headless version of the game running in dedicated server. (can be built only with
35 /// engine source)
36 /// </summary>
37 public static readonly UnrealTargetType Server = new() { Value = nameof(Server) };
38
39 /// <summary>
40 /// Arbitrary extra programs (can be built only with engine source)
41 /// </summary>
42 public static readonly UnrealTargetType Program = new() { Value = nameof(Program) };
43
44 public static implicit operator string(UnrealTargetType configuration)
45 {
46 return configuration.Value;
47 }
48 }
49}
The regular target types UBT supports.
static readonly UnrealTargetType Server
Headless version of the game running in dedicated server. (can be built only with engine source)
static readonly UnrealTargetType Program
Arbitrary extra programs (can be built only with engine source)
static readonly UnrealTargetType Editor
Editor builds for the project.
static readonly UnrealTargetType Client
Can only act like a client, cannot host a multiplayer session on its own.
static readonly UnrealTargetType Game
Can act as both client and server.