Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
UProjectInfo.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
7#include "Containers/UnrealString.h"
8#include "Containers/Map.h"
9
10/**
11 * Dictionary of all the non-foreign projects for an engine installation, found by parsing .uprojectdirs files for source directories.
12 */
14{
15public:
16 /** Scans the engine root directory for all the known projects. */
17 FUProjectDictionary(const FString& InRootDir);
18
19 /** Refreshes the list of known projects */
20 void Refresh();
21
22 /** Determines whether a project is a foreign project or not. */
23 bool IsForeignProject(const FString& ProjectFileName) const;
24
25 /** Gets the project filename for the given game. Empty if not found. */
26 FString GetRelativeProjectPathForGame(const TCHAR* GameName, const FString& BaseDir) const;
27
28 /** Gets a list of all the known projects. */
30
31 /** Gets the project dictionary for the active engine installation. */
33
34private:
35 /** The root directory for this engine installation */
37
38 /** List of project root directories */
40
41 /** Map of short game names to full project paths. */
43};
FUProjectDictionary(const FString &InRootDir)
TArray< FString > ProjectRootDirs
bool IsForeignProject(const FString &ProjectFileName) const
TArray< FString > GetProjectPaths() const
FString GetRelativeProjectPathForGame(const TCHAR *GameName, const FString &BaseDir) const
TMap< FString, FString > ShortProjectNameDictionary
static FUProjectDictionary & GetDefault()