Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
System

Modules

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

Functions

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

Variables

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

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

◆ GetHourMinuteSecond()

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

Returns world 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

◆ GetHourMinuteSecondUTC()

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

Returns UTC world 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

◆ GetMachineName()

proto string GetMachineName ( )

◆ GetProfileName()

proto string GetProfileName ( )

◆ GetYearMonthDay()

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

Returns world 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

◆ GetYearMonthDayUTC()

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

Returns UTC world 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

◆ IsCLIParam()

proto native bool IsCLIParam ( string  param)

Returns if command line argument is present.

Parameters
nameof a command line argument
Returns
True if param is present, False if hasn't been found
if (IsCLIParam("verbose")) // Prints "something" when program executed with param -verbose
{
Print("something");
}

◆ 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 507 of file ensystem.c.

◆ ARCHIVES

ARCHIVES

Looks for files in archive only. (.pak)

Definition at line 505 of file ensystem.c.

◆ DIRECTORIES

DIRECTORIES

Looks for files in fs directories only.

Definition at line 504 of file ensystem.c.

IsCLIParam
proto native bool IsCLIParam(string param)
Returns if command line argument is present.
GetCLIParam
proto bool GetCLIParam(string param, out string val)
Returns command line argument.
Print
proto void Print(void var)
Prints content of variable to console/log.
GetHourMinuteSecondUTC
proto void GetHourMinuteSecondUTC(out int hour, out int minute, out int second)
Returns UTC world time.
GetYearMonthDay
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns world date.
GetYearMonthDayUTC
proto void GetYearMonthDayUTC(out int year, out int month, out int day)
Returns UTC world date.