You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #lockdown Nick.Penwarden #ROBOMERGE-OWNER: ryan.gerleve #ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/... #ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) [CL 4662413 by ben marsh in Dev-Networking branch]
42 lines
993 B
C++
42 lines
993 B
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "IScriptGeneratorPluginInterface.h"
|
|
#include "UnrealHeaderTool.h"
|
|
#include "UObject/ErrorException.h"
|
|
#include "Algo/FindSortedStringCaseInsensitive.h"
|
|
|
|
EBuildModuleType::Type EBuildModuleType::Parse(const TCHAR* Value)
|
|
{
|
|
static const TCHAR* AlphabetizedTypes[] = {
|
|
TEXT("EngineDeveloper"),
|
|
TEXT("EngineEditor"),
|
|
TEXT("EngineRuntime"),
|
|
TEXT("EngineThirdParty"),
|
|
TEXT("GameDeveloper"),
|
|
TEXT("GameEditor"),
|
|
TEXT("GameRuntime"),
|
|
TEXT("GameThirdParty"),
|
|
TEXT("Program")
|
|
};
|
|
|
|
int32 TypeIndex = Algo::FindSortedStringCaseInsensitive(Value, AlphabetizedTypes);
|
|
if (TypeIndex < 0)
|
|
{
|
|
FError::Throwf(TEXT("Unrecognized EBuildModuleType name: %s"), Value);
|
|
}
|
|
|
|
static EBuildModuleType::Type AlphabetizedValues[] = {
|
|
EngineDeveloper,
|
|
EngineEditor,
|
|
EngineRuntime,
|
|
EngineThirdParty,
|
|
GameDeveloper,
|
|
GameEditor,
|
|
GameRuntime,
|
|
GameThirdParty,
|
|
Program
|
|
};
|
|
|
|
return AlphabetizedValues[TypeIndex];
|
|
}
|