Compare commits

..

No commits in common. "1828673c6b767cee9a09034de70c64e2ce73ed5f" and "3c3ee3f94f3a9bcb7f7adce2b8efea1100baccd4" have entirely different histories.

7 changed files with 4 additions and 53 deletions

View File

@ -1,48 +1 @@
#include "script_component.hpp"
[QGVAR(handleEvents), {
params ["_control", "_isConfirmDialog", "_message"];
diag_log format ["[FORGE: Garage] Received event: %1", _message];
_message = fromJSON _message;
private _event = _message get "event";
private _data = _message get "data";
private _vehicles = GETVAR(player,FORGE_Garage,[]);
switch (_event) do {
case "REQUEST_GARAGE_DATA": {
private _garageData = createHashMap;
private _vehicleList = [];
{
private _vehicle = _x;
if (isNull _vehicle || { !alive _vehicle }) exitWith {};
private _vehicleInfo = createHashMapFromArray [
["classname", typeOf _vehicle],
["damage", damage _vehicle],
["fuel", fuel _vehicle],
["hitpoints", getAllHitPointsDamage _vehicle]
];
_vehicleList pushBack _vehicleInfo;
} forEach _vehicles;
_garageData set ["vehicles", _vehicleList];
_control ctrlWebBrowserAction ["ExecJS", format ["handleGarageDataRequest(%1)", (toJSON _vehicleList)]];
};
case "STORE_VEHICLE": {
// Logic to store vehicle in garage
// This would typically involve saving the vehicle's state to a database or similar
};
case "RETRIEVE_VEHICLE": {
// Logic to retrieve vehicle from garage
// This would typically involve loading the vehicle's state from a database or similar
};
default {
diag_log format ["[FORGE: Garage] Unknown event: %1", _event];
};
};
}] call CFUNC(addEventHandler);
#include "script_component.hpp"

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,12 @@
dir = "@forge_client";
name = "FORGE Client";
author = "IDSolutions";
picture = "title_ca.paa";
picture = "title_co.paa";
logoSmall = "icon_64_ca.paa";
logo = "icon_128_ca.paa";
logoOver = "icon_128_highlight_ca.paa";
tooltip = "IDS";
tooltipOwned = "IDS Owned";
overview = "FORGE Client - Official Modification";
description = "FORGE Client - Version 1.0.0";
description = "IDS Client - Version 1.0.0";
action = "https://innovativedevsolutions.org";
actionName = "Website";
dlcColor[] = {0.45, 0.47, 0.41, 1};
actionName = "Website";

Binary file not shown.

BIN
title_co.paa Normal file

Binary file not shown.