feat: Add reset functionality to TaskStore initialization for mission state management
This commit is contained in:
parent
516c6e725e
commit
e49b4e4dd9
@ -27,3 +27,4 @@ private _category = [QUOTE(MOD_NAME), LLSTRING(displayName)];
|
||||
[] call FUNC(DefendTaskBaseClass);
|
||||
|
||||
call FUNC(initTaskStore);
|
||||
if !(isNil QGVAR(TaskStore)) then { GVAR(TaskStore) call ["resetMissionState", []]; };
|
||||
|
||||
@ -52,8 +52,6 @@ GVAR(TaskStore) = createHashMapObject [[
|
||||
["targets", createHashMap]
|
||||
]];
|
||||
|
||||
// Task extension state is mission-scoped and intentionally reset on
|
||||
// startup rather than being treated as durable account data.
|
||||
["task:reset", []] call EFUNC(extension,extCall) params ["_result", "_isSuccess"];
|
||||
if (
|
||||
!_isSuccess
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user