CMF3 Engine: XEH PREP

From cluster wiki
Revision as of 22:58, 17 December 2022 by Eric (talk | contribs) (Created page with "The XEH_PREP.sqf scriptfile is absolutly vital in the function of a CMF3 framework component. It is used to declare and define the functions within t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The XEH_PREP.sqf scriptfile is absolutly vital in the function of a CMF3 framework component. It is used to declare and define the functions within the component using PREP and IPREP MACROs. It is also responsible for including the script_component.hpp file.

A XEH_PREP file will always have an include for the script_component.hpp file at the top followed by the PREP and IPREP statements. it can look like the following (taken from the CMF3 common component):

#include "script_component.hpp"

PREP(getConfigParam);
PREP(setRole);
PREP(isRole);
PREP(setCallsign);