Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
System

Topics

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

Functions

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

Variables

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

Detailed Description

Function Documentation

◆ GetCLIParam()

proto bool GetCLIParam ( string param,
out string val )

Returns command line argument.

Parameters
nameof a command line argument
valstring value of the param or empty string if the param hasn't been found
Returns
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
proto bool GetCLIParam(string param, out string val)
Returns command line argument.

Referenced by CGame::AutoTestLaunch(), CGame::ConnectFromCLI(), ItemBase::EvaluateCatch(), JsonMissionLoaderData::GetData(), CGame::JoinLaunch(), CGame::MissionLaunch(), CGame::OnInitialize(), CGame::PartyLaunch(), CGame::SelectGamepad(), and PlayerBase::UpdatePersonalLight().

◆ GetHourMinuteSecond()

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

Returns system time.

Parameters
[out]hourint Hour
[out]minuteint Minute
[out]secondint Second
Returns
void
int hour = 0;
int minute = 0;
int second = 0;
GetHourMinuteSecondUTC(hour, minute, second);
Print(hour);
Print(minute);
Print(second);
>> 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 system time.

Referenced by Debug::GetDate(), and ManBase::UpdatePlayerMeasures().

◆ GetHourMinuteSecondUTC()

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

Returns UTC system time.

Parameters
[out]hourint Hour
[out]minuteint Minute
[out]secondint Second
Returns
void
int hour = 0;
int minute = 0;
int second = 0;
GetHourMinuteSecondUTC(hour, minute, second);
Print(hour);
Print(minute);
Print(second);
>> hour = 15
>> minute = 38
>> second = 7

Referenced by MissionBenchmark::FPSLog(), and AutoTestFixture::SaveXMLReport().

◆ GetMachineName()

proto string GetMachineName ( )

◆ GetProfileName()

proto string GetProfileName ( )

◆ GetYearMonthDay()

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

Returns system date.

Parameters
[out]yearint Year
[out]monthint Month
[out]dayint Day
Returns
void
int year = 0;
int month = 0;
int day = 0;
GetYearMonthDay(year, month, day);
Print(year);
Print(month);
Print(day);
>> year = 2015
>> month = 3
>> day = 24
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns system date.

Referenced by MissionBenchmark::FPSLog(), and Debug::GetDate().

◆ GetYearMonthDayUTC()

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

Returns UTC system date.

Parameters
[out]yearint Year
[out]monthint Month
[out]dayint Day
Returns
void
int year = 0;
int month = 0;
int day = 0;
GetYearMonthDayUTC(year, month, day);
Print(year);
Print(month);
Print(day);
>> year = 2015
>> month = 3
>> day = 24
proto void GetYearMonthDayUTC(out int year, out int month, out int day)
Returns UTC system date.

Referenced by AutoTestFixture::SaveXMLReport().

◆ IsCLIParam()

◆ MemoryValidation()

proto native void MemoryValidation ( bool enable)

Switches memory validation (huge slowdown!

Use with care only for certain section of code!)

Parameters
enablebool Enable
Returns
void
???

◆ TickCount()

proto native int TickCount ( int prev)

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

Variable Documentation

◆ ALL

ALL

<Looks in archives and fs directories.

Looks in archives and fs directories.

Definition at line 2 of file ensystem.c.

◆ ARCHIVES

ARCHIVES

Looks for files in archive only. (.pak).

Definition at line 1 of file ensystem.c.

◆ DIRECTORIES

DIRECTORIES

Looks for files in fs directories only.

Definition at line 0 of file ensystem.c.