DIFF

System

Topics

Functions

proto bool GetCLIParam(string param, out string val)Returns command line argumentmore…
proto void GetHourMinuteSecond(out int hour, out int minute, out int second)Returns system timemore…
proto void GetHourMinuteSecondUTC(out int hour, out int minute, out int second)Returns UTC system timemore…
proto string GetMachineName()
proto string GetProfileName()
proto void GetYearMonthDay(out int year, out int month, out int day)Returns system datemore…
proto void GetYearMonthDayUTC(out int year, out int month, out int day)Returns UTC system datemore…
proto native bool IsCLIParam(string param)Returns if command line argument is presentmore…
proto native void MemoryValidation(bool enable)Switches memory validation (huge slowdown! Use with care only for certain section of code!)more…
proto native void StartVideo(string name)ENF_DONEdeveloper tool - start video grabber
proto native void StopVideo()ENF_DONEdeveloper tool - stop video grabber
proto native int TickCount(int prev)performance counter. Returns number of CPU ticks between 'prev' and 'now'

Function Documentation

GetCLIParam

proto bool GetCLIParam(string param, out string val)

Returns command line argument

name
of a command line argument
val
string 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 system time

out hour
int Hour
out minute
int Minute
out second
int 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 system time

out hour
int Hour
out minute
int Minute
out second
int 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

GetYearMonthDay

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

Returns system date

out year
int Year
out month
int Month
out day
int 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 system date

out year
int Year
out month
int Month
out day
int 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


MemoryValidation

proto native void MemoryValidation(bool enable)

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

enable
bool Enable

Returns: void

???