client/addons/org/functions/fnc_verifyOrgStore.sqf
Jacob Schmidt d474b3676a
All checks were successful
Build / Build (push) Successful in 28s
Refactor: Standardize function descriptions and variable handling
This commit refactors several client-side functions to improve code consistency and readability.

- Standardizes function descriptions by removing redundant "Function: forge_client..." prefixes and "[Description]" sections, focusing on concise descriptions of the function's purpose.
- Updates variable handling in arsenal functions to use GVAR and EGVARS for default values, improving consistency and reducing code duplication.
- Removes the bank init function as it is no longer needed.
- Adds a done variable to the preinit file.
2025-05-25 11:30:26 -05:00

32 lines
821 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: IDSolutions
* Ensures the organization store is initialized and returns the store object
*
* Arguments:
* None
*
* Return Value:
* Organization Store <OBJECT> - The organization store interface object
*
* Example:
* private _orgStore = call forge_client_org_fnc_verifyOrgStore
*
* Public: No
*/
// Attempt to retrieve the existing organization store from the global variable
private _store = GETMVAR(FORGE_ORG_STORE_REG,nil);
// If the store doesn't exist yet, initialize it
if (isNil "_store") then {
// Create a new organization store
_store = call FUNC(initOrgStore);
// Log the initialization for debugging
diag_log text "[FORGE Organization] Organization store initialized";
};
// Return the organization store interface
_store