DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ NameToModule()

static proto bool EnProfiler::NameToModule ( string moduleName,
out EnProfilerModule module )
staticprivate

Convert string to EnProfilerModule.

Аргументы
moduleNamestring The name of the module
moduleEnProfilerModule The enum value of the module or EnProfilerModule.ERROR if not found
Возвращает
bool Whether the module was found
// Get the name of the module of the current class
string nameOfCurrentModule = Type().GetModule();
// Convert it to the enum value
if (EnProfiler.NameToModule(nameOfCurrentModule, module))
{
}
else
{
ErrorEx(string.Format("Could not find EnProfilerModule: %1", nameOfCurrentModule));
}
string Type
Определения JsonDataContaminatedArea.c:11
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
enum ShapeType ErrorEx
static proto void SetModule(EnProfilerModule module, bool sessionReset=true)
Set the module to be profiled.
EnProfilerModule
Current base scripted modules.
Определения EnProfiler.c:22
static proto bool NameToModule(string moduleName, out EnProfilerModule module)
Convert string to EnProfilerModule.

Используется в EnProfilerTests::TestModule().