forge/arma/server/addons/economy/XEH_preInit.sqf
Jacob Schmidt ebfe77a340 feat: implement complete Forge framework with Rust/Redis backend and Arma 3 integration
Implemented features:
- High-performance Rust extension with Redis persistence
- Actor/player management with loadout, position, and state tracking
- Banking system with deposit, withdraw, and transfer operations
- Physical and virtual garage/locker systems for vehicle and equipment storage
- Organization management with member tracking and permissions
- Client-side UI with React-like state management
- Server-side event-driven architecture with CBA Events
- Security: Self-transfer prevention at multiple layers
- Logging system with per-module log files
- ICOM module for inter-server communication

Co-Authored-By: Warp <agent@warp.dev>
2026-01-04 12:52:15 -06:00

30 lines
937 B
Plaintext

#include "script_component.hpp"
PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
// private _category = [QUOTE(MOD_NAME), LLSTRING(displayName)];
if (isNil QGVAR(MEconomyStore)) then { [] call FUNC(initMEconomyStore); };
if (isNil QGVAR(FEconomyStore)) then { [] call FUNC(initFEconomyStore); };
// if (isNil QGVAR(SEconomyStore)) then { [] call FUNC(initSEconomyStore); };
[QGVAR(FuelStart), {
params ["_source", "_target", "_unit"];
GVAR(FEconomyStore) call ["start", [_source, _target, _unit]];
}] call CFUNC(addEventHandler);
[QGVAR(FuelTick), {
params ["_source", "_target", "_amount"];
private _liters = GETVAR(_target,liters,0);
private _newLiters = _liters + _amount;
SETVAR(_target,liters,_newLiters);
}] call CFUNC(addEventHandler);
[QGVAR(FuelStop), {
params ["_source", "_target"];
GVAR(FEconomyStore) call ["stop", [_source, _target]];
}] call CFUNC(addEventHandler);