DayZ 1.24
Loading...
Searching...
No Matches
System
Collaboration diagram for System:

Topics

 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.
 
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.
 

Variables

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

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::ConnectFromCLI(), 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 world time.

Parameters
[out]hourint Hour
[out]minuteint Minute
[out]secondint Second
Returns
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.

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

◆ 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;
>> 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;
>> year = 2015
>> month = 3
>> day = 24
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns world date.

Referenced by Debug::GetDate().

◆ 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;
>> 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.

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");
}
proto native bool IsCLIParam(string param)
Returns if command line argument is present.

Referenced by LogManager::Init(), and MissionBase::OnUpdate().

◆ 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.