Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
Screenshot_Autotest Class Reference
Inheritance diagram for Screenshot_Autotest:
GenericEntity

Protected Member Functions

bool GetTimeAndDate (out float normTime, out int year, out int month, out int day)
bool SetTimeAndDate (float timeOfTheDay24h, int year, int month, int day)
bool SetWeatherState (string state)

Protected Attributes

float m_timer
float m_timeFromStart
float m_timerAfterPreload

Detailed Description

Autotest entity for taking screenshots. It sets specific camera transformation to values of waypoints which needs to be set as a child. The child needs to be Screenshot_Waypoint entity. First it sets camera transform to the waypoint defined as a child, then it waits a step time on order to have everything loaded and stable FPS, then it takes a screenshots and since the screenshot is taken across several frames, it waits for this as well. When the camera is transformed to the position and rotation of the waypoint entity, the EOnEnter method is called on the waypoint entity. Some custom code can be executed here. Screenshots are save into $logs:ENTITY_NAME directory by default. This can be overriden by executable parameter autotest-output-dir (DO NOT PLACE ENDING '/' AFTER THE DIR PATH) Besides the screenshot itself, also a metafile is saved with addition information (position, orientation, fps). The name of the metafile is the same as the screenshot with .txt as a suffix and it is saved into the same location Autotest can also store summary information, the it is stored in the summary.txt file.

Definition at line 26 of file Screenshot_Autotest.c.

Member Function Documentation

◆ GetTimeAndDate()

bool Screenshot_Autotest::GetTimeAndDate ( out float normTime,
out int year,
out int month,
out int day )
inlineprotected

Definition at line 360 of file Screenshot_Autotest.c.

◆ SetTimeAndDate()

bool Screenshot_Autotest::SetTimeAndDate ( float timeOfTheDay24h,
int year,
int month,
int day )
inlineprotected

Definition at line 381 of file Screenshot_Autotest.c.

◆ SetWeatherState()

bool Screenshot_Autotest::SetWeatherState ( string state)
inlineprotected

Definition at line 401 of file Screenshot_Autotest.c.

Member Data Documentation

◆ m_timeFromStart

float Screenshot_Autotest::m_timeFromStart
protected

Definition at line 61 of file Screenshot_Autotest.c.

◆ m_timer

float Screenshot_Autotest::m_timer
protected

Definition at line 60 of file Screenshot_Autotest.c.

◆ m_timerAfterPreload

float Screenshot_Autotest::m_timerAfterPreload
protected

Definition at line 62 of file Screenshot_Autotest.c.


The documentation for this class was generated from the following file: