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

Topics

 Keyboard input API
 
 Mouse API
 returns index of defined key in InputDevice by its name
 
 API
 
 FileIO API
 

Функции

proto void GetHourMinuteSecond (out int hour, out int minute, out int second)
 Returns world time.
 
proto void GetYearMonthDay (out int year, out int month, out int day)
 Returns world date.
 
proto void GetHourMinuteSecondUTC (out int hour, out int minute, out int second)
 Returns UTC world time.
 
proto void GetYearMonthDayUTC (out int year, out int month, out int day)
 Returns UTC world date.
 
proto string GetProfileName ()
 
proto string GetMachineName ()
 
proto native int TickCount (int prev)
 performance counter. Returns number of CPU ticks between 'prev' and 'now'
 
proto native void MemoryValidation (bool enable)
 Switches memory validation (huge slowdown! Use with care only for certain section of code!)
 
proto bool GetCLIParam (string param, out string val)
 Returns command line argument.
 
proto native bool IsCLIParam (string param)
 Returns if command line argument is present.
 

Переменные

 DIRECTORIES
 Looks for files in fs directories only.
 
 ARCHIVES
 Looks for files in archive only. (.pak)
 
 ALL
 <Looks in archives and fs directories.
 

Подробное описание

Функции

◆ GetCLIParam()

proto bool GetCLIParam ( string param,
out string val )

Returns command line argument.

Аргументы
nameof a command line argument
valstring value of the param or empty string if the param hasn't been found
Возвращает
True if param is present, False if hasn't been found
string param;
GetCLIParam("world", param); // return a value when program executed with param -world something
Definition EntityAI.c:95
proto bool GetCLIParam(string param, out string val)
Returns command line argument.

Используется в CGame::ConnectFromCLI(), JsonMissionLoaderData::GetData(), CGame::JoinLaunch(), CGame::MissionLaunch(), CGame::OnInitialize(), CGame::PartyLaunch(), CGame::SelectGamepad() и PlayerBase::UpdatePersonalLight().

◆ GetHourMinuteSecond()

proto void GetHourMinuteSecond ( out int hour,
out int minute,
out int second )

Returns world time.

Аргументы
[out]hourint Hour
[out]minuteint Minute
[out]secondint Second
Возвращает
void
int hour = 0;
int minute = 0;
int second = 0;
>> hour = 16
>> minute = 38
>> second = 7
proto void Print(void var)
Prints content of variable to console/log.
proto void GetHourMinuteSecondUTC(out int hour, out int minute, out int second)
Returns UTC world time.

Используется в Debug::GetDate() и ManBase::UpdatePlayerMeasures().

◆ GetHourMinuteSecondUTC()

proto void GetHourMinuteSecondUTC ( out int hour,
out int minute,
out int second )

Returns UTC world time.

Аргументы
[out]hourint Hour
[out]minuteint Minute
[out]secondint Second
Возвращает
void
int hour = 0;
int minute = 0;
int second = 0;
>> hour = 15
>> minute = 38
>> second = 7

◆ GetMachineName()

proto string GetMachineName ( )

◆ GetProfileName()

proto string GetProfileName ( )

◆ GetYearMonthDay()

proto void GetYearMonthDay ( out int year,
out int month,
out int day )

Returns world date.

Аргументы
[out]yearint Year
[out]monthint Month
[out]dayint Day
Возвращает
void
int year = 0;
int month = 0;
int day = 0;
>> year = 2015
>> month = 3
>> day = 24
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns world date.

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

◆ GetYearMonthDayUTC()

proto void GetYearMonthDayUTC ( out int year,
out int month,
out int day )

Returns UTC world date.

Аргументы
[out]yearint Year
[out]monthint Month
[out]dayint Day
Возвращает
void
int year = 0;
int month = 0;
int day = 0;
>> year = 2015
>> month = 3
>> day = 24
proto void GetYearMonthDayUTC(out int year, out int month, out int day)
Returns UTC world date.

◆ IsCLIParam()

proto native bool IsCLIParam ( string param)

Returns if command line argument is present.

Аргументы
nameof a command line argument
Возвращает
True if param is present, False if hasn't been found
if (IsCLIParam("verbose")) // Prints "something" when program executed with param -verbose
{
Print("something");
}
proto native bool IsCLIParam(string param)
Returns if command line argument is present.

Используется в ItemBase::AdjustDetectionRange(), CheckBaitCompatibility(), ItemBase::EvaluateCatch(), ItemBase::IncreaseElapsedTime(), LogManager::Init(), MissionBase::OnUpdate(), CatchingContextTrapsBase::SetupInitialTypes(), CatchingContextTrapsBase::UpdateBaseProbability() и CatchingContextTrapsBase::UpdateUsedBait().

◆ MemoryValidation()

proto native void MemoryValidation ( bool enable)

Switches memory validation (huge slowdown! Use with care only for certain section of code!)

Аргументы
enablebool Enable
Возвращает
void
???

◆ TickCount()

proto native int TickCount ( int prev)

performance counter. Returns number of CPU ticks between 'prev' and 'now'

Переменные

◆ ALL

ALL

<Looks in archives and fs directories.

Looks in archives and fs directories.

◆ ARCHIVES

ARCHIVES

Looks for files in archive only. (.pak)

◆ DIRECTORIES

DIRECTORIES

Looks for files in fs directories only.