forked from Relicta-Team/ReSDK_A3.vr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadBeforeOOPInit.sqf
37 lines (28 loc) · 973 Bytes
/
loadBeforeOOPInit.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ======================================================
// Copyright (c) 2017-2024 the ReSDK_A3 project
// sdk.relicta.ru
// ======================================================
#include <..\engine.hpp>
ie_actions_list_preInitActions = [];
//предварительная регистрация действий
// ["wrld","sniff","onActWorld"] call ie_actions_regNew;
ie_actions_regNew = {
params ["_catprefix","_name","_met"];
private _ps = format[_catprefix +"_"+ _name];
ie_actions_list_preInitActions pushBackUnique [_ps,_met];
};
verbs_parse_strToListOfNum = {
private _strData = _this;
private _listStr = _strData splitString " |,";
private _val = null;
private _outputArray = [];
{
_val = verb_list get _x;
if isNullVar(_val) exitWith {
errorformat("Error on parsing expression %1: %2.getVerbs() not compiled",_strData arg _class);
_outputArray
};
_outputArray pushBack (_val select 1);
} foreach _listStr;
str _outputArray
};