2using System.Collections.Generic;
21 IEnumerable<UnrealInstance> Instances {
get; }
42 => enginePath /
"Engine" /
"Build" /
"Build.version";
48 => enginePath?.GetUnrealBuildVersionPath()?.FileExists() ??
false
56 => Path.IsPathRooted(name)
57 ? AbsolutePath.Create(name).ExistingUnrealEngine()
66 => enginePath.ExistingUnrealEngine() !=
null;
75 public IEnumerable<UnrealInstance> Instances => [];
An empty Unreal Locator implementation which doesn't know about installed instances,...
AbsolutePath? GetEngine(string name)
Get the path to an installed engine by its name or its absolute path.
Static functions and common utilities for locating Unreal Engine.
static ? AbsolutePath GetExistingUnrealEngine(string name)
Validate input path (as string) if it's a proper Unreal Engine installation, return null if it isn't.
static bool IsUnrealEnginePath(this AbsolutePath? enginePath)
Is input path points to a valid Unreal Engine installation.
static AbsolutePath GetUnrealBuildVersionPath(this AbsolutePath enginePath)
Extend input path (presumably to an Unreal Engine installation) to its location of Build....
static ? AbsolutePath ExistingUnrealEngine(this AbsolutePath? enginePath)
Validate input path if it's a proper Unreal Engine installation, return null if it isn't.
Common interface for locating Unreal Engine instances in different environments.
AbsolutePath? GetEngine(string name)
Get the path to an installed engine by its name or its absolute path.
record class UnrealInstance(string Name, AbsolutePath Path)
Group an Unreal association with its actual path.