- Shift store catalog initialization from client addon to server addon - Rebuild/minify bank, garage, org, and store WebUI site assets - Update webui build tooling and npm metadata; ignore node_modules
17 lines
541 B
Plaintext
17 lines
541 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isNil QGVAR(StoreClass)) then { call FUNC(initClass); };
|
|
if (isNil QGVAR(StoreUIBridge)) then { call FUNC(initUIBridge); };
|
|
|
|
[QGVAR(responseCategory), {
|
|
params [["_payload", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(StoreUIBridge) call ["handleCategoryResponse", [_payload]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseCheckout), {
|
|
params [["_payload", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(StoreUIBridge) call ["handleCheckoutResponse", [_payload]];
|
|
}] call CFUNC(addEventHandler);
|