xpdb/addons/db/functions/fnc_init.sqf
Jacob Schmidt 1b6b825653
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 21:18:03 -06:00

43 lines
1.1 KiB
Plaintext

#include "script_component.hpp"
/*
* Function: xpdb_db_fnc_init
* Author: NikolaiF90, J.Schmidt
* Edit: 07.27.2024
* Copyright © 2024 NikolaiF90, J.Schmidt, All rights reserved
*
* Do not edit without permission!
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivative 4.0 International License.
* To view a copy of this license, vist https://creativecommons.org/licenses/by-nc-nd/4.0/ or send a letter to Creative Commons,
* PO Box 1866, Mountain View, CA 94042
*
* [Description]
* Initialize the framework.
*
* Arguments:
* N/A
*
* Return Value:
* N/A
*
* Examples:
* [] call xpdb_db_fnc_init
*
* Public: Yes
*/
[true, "xpdb_db_fnc_init", format ["Starting '%1'...", Scenario_Name], false] call EFUNC(utils,debug);
EGVAR(db,configDone) = false;
[] call DFUNC(config);
waitUntil { EGVAR(db,configDone) };
EGVAR(db,defaultSlots) = ["Empty Slot"];
// Keys
EGVAR(db,pListKey) = Scenario_Name + "_pList";
EGVAR(db,contIDKey) = "Save_CQueueID";
EGVAR(db,vehIDKey) = "Save_VQueueID";
EGVAR(db,host) addAction ["<t color='#0089f2'>Persistent</t>", { [] call DFUNC(openPersistentTab); }];