
All checks were successful
Build / Build (push) Successful in 28s
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.
32 lines
821 B
Plaintext
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 |