mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Clean up namespaces used by (de-)serializing functions (#8514)
This commit is contained in:
parent
0c85f5f339
commit
0fe54b895a
@ -96,3 +96,5 @@ private _targetState = _state getVariable [QGVAR(statemachineState), "Default"];
|
||||
if (_currentState in ["Unconscious", "CardiacArrest"] && {_targetState in ["Default", "Injured"]}) then {
|
||||
[_unit, false] call EFUNC(medical_status,setUnconsciousState);
|
||||
};
|
||||
|
||||
_state call CBA_fnc_deleteNamespace;
|
||||
|
@ -61,4 +61,6 @@ private _currentState = [_unit, GVAR(STATE_MACHINE)] call CBA_statemachine_fnc_g
|
||||
_state setVariable [QGVAR(statemachineState), _currentState];
|
||||
|
||||
// Serialize & return
|
||||
[_state] call CBA_fnc_encodeJSON
|
||||
private _json = [_state] call CBA_fnc_encodeJSON;
|
||||
_state call CBA_fnc_deleteNamespace;
|
||||
_json
|
||||
|
Loading…
Reference in New Issue
Block a user