### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___prices_config-members.html This snippet instantiates a new `SearchBox` object, likely part of a documentation system. It configures the search box with its ID ('searchBox'), the search path ('search/'), and the file extension ('.html') for search results. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Game Start Status Flag (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___overthrow_game_mode.html A boolean flag indicating if the game has officially transitioned into its active started state, typically after any preliminary setup phases. It defaults to false. ```Enforce Script bool m_bGameStarted = false ``` -------------------------------- ### Initializing Doxygen Navigation and Resizable Panels - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___parking_component.html This JavaScript snippet initializes the navigation tree to the `OVT_ParkingComponent` class page and enables resizable panels, enhancing the user experience for navigating the Doxygen documentation. ```JavaScript $(function(){initNavTree('class_o_v_t___parking_component.html',''); initResizable(true); }); ``` -------------------------------- ### Initiating Game Start in OVT_StartGameContext (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___start_game_context.html This method is responsible for initiating the game start process. It encapsulates the logic required to transition from the game context setup to the actual game session, likely using the selected faction and difficulty settings. ```Enforce Script void StartGame () ``` -------------------------------- ### Initializing Town Populations (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html This function calculates the initial population for each town by querying nearby house entities. It is called once during the server's initialization phase. This setup ensures that towns start with a realistic population count based on their environment. ```C++ void OVT_TownManagerComponent::SetupTowns( ) ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___manage_base_action.html This JavaScript snippet initializes the navigation tree for the Doxygen documentation, linking it to the `OVT_ManageBaseAction` class page. It also enables resizable panels, allowing users to adjust the layout of the documentation interface. ```JavaScript $(function(){initNavTree('class_o_v_t___manage_base_action.html',''); initResizable(true); }); ``` -------------------------------- ### Handling Post Game Start Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Called after the game has fully started. Triggers shop inventory initialization. ```Enforce Script void PostGameStart() ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___main_menu_widgets.html This snippet initializes the navigation tree and resizable panels for the documentation page. It sets up the interactive navigation structure, linking to the `OVT_MainMenuWidgets` class page, and enables resizing of UI elements for better user experience. ```JavaScript $(function(){initNavTree('class_o_v_t___main_menu_widgets.html',''); initResizable(true); }); ``` -------------------------------- ### Post-Initialization Hook (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___place_context-members.html This method is called after the initial setup of the placement context, providing a hook for additional initialization logic or dependencies that rely on the base setup being complete. ```C++ PostInit() ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_48e30f05662475cf0ca9ebe764d129db.html This snippet initializes the navigation tree, linking it to a specific HTML file (`dir_48e30f05662475cf0ca9ebe764d129db.html`) and enables resizable panels. It ensures these UI components are set up once the document's DOM is fully loaded, providing a dynamic browsing experience. ```JavaScript $(function(){initNavTree('dir_48e30f05662475cf0ca9ebe764d129db.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizing - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___real_estate_config.html This JavaScript snippet initializes the navigation tree and resizable panels in the Doxygen documentation. It sets up the interactive navigation pane on the left and allows users to resize it, enhancing the browsing experience. ```JavaScript $(function(){initNavTree('class_o_v_t___real_estate_config.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Town ID in OVT_TownManagerComponent (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Gets the ID (index in the m_Towns array) of a given town. Requires an OVT_TownData instance as input. Returns the integer ID of the town. ```Enforce Script int OVT_TownManagerComponent::GetTownID( OVT_TownData _town_ ) inlineprotected ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___placeable_save_data.html This snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the navigation tree to point to the `OVT_PlaceableSaveData` class page and enables the resizing of documentation panels, enhancing user navigation and layout customization. ```JavaScript $(function(){initNavTree('class_o_v_t___placeable_save_data.html',''); initResizable(true); }); ``` -------------------------------- ### Get Town ID (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the unique identifier for a given town data object. This function provides a way to get the numerical ID associated with a specific town. ```Enforce Script int GetTownID (OVT_TownData town) ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___build_context.html This JavaScript snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the interactive navigation structure and allows users to resize elements on the page. ```JavaScript $(function(){initNavTree('class_o_v_t___build_context.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Town Range in OVT_TownManagerComponent (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Gets the effective radius of a town based on its size (village, town, city). Requires an OVT_TownData instance. Returns the radius in meters as a float. ```Enforce Script float OVT_TownManagerComponent::GetTownRange( OVT_TownData _town_ ) inlineprotected ``` -------------------------------- ### Getting Town Name by Location in OVT_TownManagerComponent (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Gets the display name of the town nearest to a given location. Requires a position vector. Returns the string name of the nearest town. ```Enforce Script string OVT_TownManagerComponent::GetTownName( vector _location_ ) inlineprotected ``` -------------------------------- ### Initializing Search Functionality (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_info_widgets.html This JavaScript snippet uses jQuery's document ready function to call `init_search()`, which sets up the search capabilities for the documentation page. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Initializing Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___prices_config-members.html This snippet, executed on document ready, initializes the navigation tree to a specific HTML page ('class_o_v_t___prices_config.html') and enables resizable elements on the page. This is typical for dynamic documentation interfaces like those generated by Doxygen. ```JavaScript $(function(){initNavTree('class_o_v_t___prices_config.html',''); initResizable(true); }); ``` -------------------------------- ### Handle Post-Game Start (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Called automatically after the game has fully started. This method is responsible for scheduling recurring updates for town management and spawning any necessary controllers related to town operations. ```Enforce Script void PostGameStart () ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___resistance_player_data-members.html This snippet initializes the navigation tree and resizable elements for a specific Doxygen documentation page. It sets up the navigation tree for `class_o_v_t___resistance_player_data.html` and enables resizable panels, improving user interaction with the documentation layout. ```JavaScript $(function(){initNavTree('class_o_v_t___resistance_player_data.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Town Name by ID in OVT_TownManagerComponent (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Gets the display name of a town from its map marker, caching the result. Requires the integer ID of the town. Returns the string name of the town. ```Enforce Script string OVT_TownManagerComponent::GetTownName( int _townId_ ) inlineprotected ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___real_estate_context.html This JavaScript snippet initializes the navigation tree and resizable panels in the Doxygen documentation. It sets up the interactive elements that allow users to navigate through the documentation structure and adjust panel sizes for a customized viewing experience. ```JavaScript $(function(){initNavTree('class_o_v_t___real_estate_context.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_201ebdc04a28a67c1fc1a41581e7bbca.html This JavaScript snippet, executed on document ready, initializes the navigation tree and enables resizable panels. `initNavTree()` sets up the navigation structure, linking to the specified directory HTML, while `initResizable(true)` enables the user to resize elements on the page, typically sidebars or content areas. ```JavaScript $(function(){initNavTree('dir_201ebdc04a28a67c1fc1a41581e7bbca.html',''); initResizable(true); }); ``` -------------------------------- ### Request Game Start on Post-Process Flag (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___overthrow_game_mode.html A boolean flag used to signal that the game should initiate its start sequence during the OnWorldPostProcess phase. This is commonly used to resume game flow after loading a saved state. ```Enforce Script bool m_bRequestStartOnPostProcess = false ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/functions_s.html This snippet uses jQuery to initialize two key Doxygen UI components: the navigation tree and resizable panels. The `initNavTree()` function sets up the navigation panel, linking it to the 'functions_s.html' page, while `initResizable(true)` enables the resizing of documentation panels, enhancing user layout customization. ```JavaScript $(function(){initNavTree('functions_s.html',''); initResizable(true); }); ``` -------------------------------- ### Entity Initialization Event (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___overthrow_game_mode.html The EntityEvent.INIT callback, triggered when the entity is initialized. It sets up managers, UI contexts, persistence, and diagnostic menus, then determines whether to start a new game, load a save, or show the start menu. ```Enforce Script override void OVT_OverthrowGameMode::EOnInit( IEntity owner ) ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_info_widgets.html This JavaScript snippet initializes a `SearchBox` object, likely used for managing search input and results within the documentation. It takes the ID of the search input element, the search path, and the file extension for search results. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Performing Post-Initialization Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Executes tasks that need to be performed after the component has completed its initial setup. ```Enforce Script void AfterInit() ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_8f327c0080ad5192990e29bd31d06243.html This JavaScript line instantiates a new SearchBox object, configuring it with the ID 'searchBox', the search path 'search/', and the file extension '.html'. This object manages the search interface and logic within the documentation, facilitating content discovery. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Resistance Money Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves the current total money held by the resistance faction. ```Enforce Script int GetResistanceMoney() ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___set_home_action.html This snippet initializes the Doxygen navigation tree, linking it to the specific class documentation page. It also enables resizable panels within the documentation interface, improving user experience for layout adjustments. ```JavaScript $(function(){initNavTree('class_o_v_t___set_home_action.html',''); initResizable(true); }); ``` -------------------------------- ### Getting All Registered Shops (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves a list of RplIds for all shops that have been registered within the system. The function returns an array containing these RplIds. ```C++ array< RplId > OVT_EconomyManagerComponent::GetAllShops() ``` -------------------------------- ### Getting All Registered Ports (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves a list of RplIds for all ports that have been registered within the system. The function returns an array containing these RplIds. ```C++ array< RplId > OVT_EconomyManagerComponent::GetAllPorts() ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___f_o_b_menu_context.html This JavaScript snippet initializes the navigation tree and resizable panels for Doxygen, linking the navigation to the `OVT_FOBMenuContext` class page and enabling UI resizing. ```JavaScript $(function(){initNavTree('class_o_v_t___f_o_b_menu_context.html',''); initResizable(true); }); ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___main_menu_context.html This JavaScript snippet initializes the Doxygen navigation tree, linking it to the 'class_o_v_t___main_menu_context.html' page, and also enables resizable panels. This enhances user navigation by providing a structured view of the documentation and allows for flexible adjustment of panel sizes. ```JavaScript $(function(){initNavTree('class_o_v_t___main_menu_context.html',''); initResizable(true); }); ``` -------------------------------- ### Getting All Non-Occupying Faction Items Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves all items that do not belong to the occupying faction, populating them into the provided resources array. ```Enforce Script bool GetAllNonOccupyingFactionItems(out array< ResourceName > resources) ``` -------------------------------- ### Getting Item Price (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current price of an item. The item is identified by its unique integer ID. ```C++ int GetPrice (int id) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Layout (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_7df1c2d6573a81c33a11da22dd17d72b.html This snippet initializes the Doxygen navigation tree and enables resizable elements. It calls `initNavTree()` to set up the directory navigation and `initResizable(true)` to allow users to adjust the size of UI components, enhancing the browsing experience. ```JavaScript $(function(){initNavTree('dir_7df1c2d6573a81c33a11da22dd17d72b.html',''); initResizable(true); }); ``` -------------------------------- ### Getting All Non-Occupying Faction Vehicles Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves all vehicles that do not belong to the occupying faction, with an optional parameter to include illegal vehicles. ```Enforce Script bool GetAllNonOccupyingFactionVehicles(out array< ResourceName > resources, bool includeIllegal=false) ``` -------------------------------- ### Initializing Search Functionality (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___respawn_system_component-members.html This snippet initializes the search functionality for the Doxygen-generated documentation page. It ensures that the search system is ready as soon as the DOM is loaded, allowing users to search for content within the documentation. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Getting Player Money (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current money balance for a specific player. The player is identified by their string ID. ```C++ int GetPlayerMoney (string playerId) ``` -------------------------------- ### Instantiate SearchBox Object (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___shop_context-members.html This code creates a new SearchBox instance, configuring it with the ID 'searchBox', a search path 'search/', and a file extension '.html' for search results. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Donation Income (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current income generated from donations. It provides a specific metric for financial contributions. ```C++ int GetDonationIncome () ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_75d66dbfc96d18b7d7565668c2a66462.html This snippet initializes the navigation tree and resizable panel functionalities. It sets up the interactive directory structure and allows users to resize the documentation panels for better viewing experience. ```JavaScript $(function(){initNavTree('dir_75d66dbfc96d18b7d7565668c2a66462.html',''); initResizable(true); }); ``` -------------------------------- ### Getting All Managed Towns in OVT_TownManagerComponent (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Returns the array containing all managed towns. Returns a reference to the array m_Towns. ```Enforce Script array< ref OVT_TownData > OVT_TownManagerComponent::GetTowns( ) inlineprotected ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___base_upgrade.html This JavaScript snippet initializes the Doxygen navigation tree and enables resizable panels. It sets up the navigation tree to point to the `OVT_BaseUpgrade` class page and activates the resizing functionality for documentation panels. ```JavaScript $(function(){initNavTree('class_o_v_t___base_upgrade.html',''); initResizable(true); }); ``` -------------------------------- ### Creating Doxygen SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___resistance_player_data-members.html This snippet creates a new instance of the `SearchBox` object, which manages the search interface. It specifies the ID of the search input element ('searchBox'), the path to the search data ('search/'), and the file extension for documentation pages ('.html'). ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Non-Clothing Occupying Faction Items Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves all non-clothing items that are associated with the occupying faction, populating them into the provided resources array. ```Enforce Script bool GetAllNonClothingOccupyingFactionItems(out array< ResourceName > resources) ``` -------------------------------- ### Getting Price by Resource (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the price of a resource identified by its ResourceName. It can optionally consider a specific position for location-based pricing. ```C++ int GetPriceByResource (ResourceName res, vector pos="0 0 0") ``` -------------------------------- ### Initializing Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_info_widgets.html This JavaScript snippet uses jQuery's document ready function to initialize the navigation tree (`initNavTree`) and enable resizable elements (`initResizable`) for the documentation page, enhancing user interaction. ```JavaScript $(function(){initNavTree('class_o_v_t___economy_info_widgets.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Item Demand (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function returns the current demand level for a specific item. The item is identified by its unique integer ID. ```C++ int GetDemand (int id) ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___placeable_f_o_b_handler-members.html This JavaScript line instantiates a new 'SearchBox' object, configuring it with the ID 'searchBox', the search path 'search/', and the file extension '.html'. This object manages the search input and results display. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_fdcab9c29a7f423d8b13ae1be5a67b24.html This JavaScript code creates a new instance of the `SearchBox` object. It configures the search box with its ID ('searchBox'), the path to search resources ('search/'), and the file extension for search results ('.html'), preparing it for user queries. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Singleton Instance of Town Manager (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Returns the singleton instance of the OVT_TownManagerComponent. This static method provides access to the component and returns null if the instance is not found. ```C++ static OVT_TownManagerComponent OVT_TownManagerComponent::GetInstance ( ) ``` -------------------------------- ### Get Random House (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves a random house entity from the game world. This is useful for spawning units or objects at a random civilian location. ```Enforce Script IEntity GetRandomHouse () ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___respawn_system_component_class.html This JavaScript snippet initializes the navigation tree for the `OVT_RespawnSystemComponentClass` page and enables resizable panels. It ensures that the left navigation pane correctly highlights the current page and allows users to adjust panel sizes for better viewing. ```JavaScript $(function(){initNavTree('class_o_v_t___respawn_system_component_class.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable UI (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___buildables_config.html This snippet initializes two key UI components: the navigation tree and resizable elements. `initNavTree()` sets up the interactive navigation panel, linking to the specified HTML file, while `initResizable(true)` enables resizing functionality for UI elements, likely sidebars or panels, enhancing user interaction. ```JavaScript $(function(){initNavTree('class_o_v_t___buildables_config.html',''); initResizable(true); }); ``` -------------------------------- ### Getting ResourceName by ID - OVT_EconomyManagerComponent (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves the ResourceName corresponding to a given integer resource ID. This function takes an integer 'id' and returns the associated ResourceName. ```C++ ResourceName OVT_EconomyManagerComponent::GetResource( int _id_ ) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Elements - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___resistance_save_data_class.html This snippet initializes the navigation tree (`initNavTree`) with the current page's HTML and enables resizable elements (`initResizable`), enhancing the user experience for navigating and adjusting the documentation layout. ```JavaScript $(function(){initNavTree('class_o_v_t___resistance_save_data_class.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Nearest Port (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function finds and returns the RplId of the nearest port to a specified geographical position. This is useful for logistics and trade calculations. ```C++ RplId GetNearestPort (vector pos) ``` -------------------------------- ### Getting Tax Income (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current income generated from taxes. It provides a specific metric for tax revenue within the economy. ```C++ int GetTaxIncome () ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___warehouse_inventory_item_component-members.html This snippet declares a new `SearchBox` object, likely part of a documentation generation tool like Doxygen. It initializes the search box with its ID, path to search files, and file extension. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Initializing Town Modifier System - C Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_modifier_system.html Initializes the OVT_TownModifierSystem. This method is typically called during the system's setup phase to prepare it for operation. It takes no parameters and returns nothing. ```C void Init () ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_66823f5d34a9d99ba04bf8968995eea6.html This JavaScript snippet initializes the Doxygen navigation tree and enables resizable panels when the document is ready. It sets up the directory navigation to the specific 'Logic' directory and allows users to resize the navigation and content panes for a customized viewing experience. ```JavaScript $(function(){initNavTree('dir_66823f5d34a9d99ba04bf8968995eea6.html',''); initResizable(true); }); ``` -------------------------------- ### Initialize Component (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Initializes the component with its owner entity. This method is typically called after the component has been constructed to perform any necessary setup that depends on the owner entity. ```Enforce Script void Init (IEntity owner) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable UI (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___manage_base_action-members.html This snippet initializes the navigation tree and enables resizable UI elements for the Doxygen documentation. It sets up the interactive sidebar navigation and allows users to adjust the size of UI panels, enhancing the browsing experience. ```JavaScript $(function(){initNavTree('class_o_v_t___manage_base_action.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Doxygen Search - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___parking_component.html This JavaScript snippet initializes the search functionality for the Doxygen documentation page, allowing users to search for content within the generated documentation. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### PostInit Method - OVT_BuildContext - C-like Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___build_context.html This 'override' method is called after the object has been fully initialized. It provides a hook for custom setup logic that needs to run once all components and dependencies are ready. ```C-like override void PostInit () ``` -------------------------------- ### Initializing Doxygen Search Functionality (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___buildables_config.html This snippet uses jQuery's `$(function(){...})` shorthand to ensure the `init_search()` function is called once the DOM is ready. This function is responsible for setting up the search box and its associated behaviors in the Doxygen documentation. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Get Nearest House (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the house entity nearest to a given world position. This is useful for finding the closest civilian structure to a specific point. ```Enforce Script IEntity GetNearestHouse (vector pos) ``` -------------------------------- ### Getting Resistance Faction Money - OVT_EconomyManagerComponent (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves the current amount of money held by the resistance faction. The function returns an integer representing the resistance money amount. ```C++ int OVT_EconomyManagerComponent::GetResistanceMoney( ) ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels in Doxygen UI - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___player_data.html This JavaScript snippet initializes the navigation tree and resizable panels in the Doxygen documentation. It sets up the interactive navigation sidebar and allows users to resize documentation panels, enhancing user experience. ```JavaScript $(function(){initNavTree('class_o_v_t___player_data.html',''); initResizable(true); }); ``` -------------------------------- ### Getting All Shops in Town (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves an array of RplIds for all shops located within a specified town. It helps in managing town-specific economic activities. ```C++ array< RplId > GetAllShopsInTown (OVT_TownData town) ``` -------------------------------- ### Creating SearchBox Instance in JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_c3ab21274d6cb1ef67cd1380a5ba2198.html This JavaScript snippet initializes a new SearchBox object. It configures the search box with its ID, search path, and file extension for search results, likely part of a documentation search system. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_0dee052cc937e7fc48c4a0ef320bfb40.html This JavaScript line instantiates a new `SearchBox` object, configuring it with an ID, a search path, and a file extension. It's a dependency for the search functionality, managing search input and results. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting All Ports (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves an array containing the RplIds of all ports managed by the economy system. This provides a comprehensive list of all available port entities. ```C++ array< RplId > GetAllPorts () ``` -------------------------------- ### Initialize Navigation Tree and Resizable UI (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/classes.html This snippet, executed on document ready, initializes the navigation tree with 'classes.html' as the base and enables resizable UI elements. This setup provides interactive navigation and allows users to adjust panel sizes for better viewing. ```JavaScript $(function(){initNavTree('classes.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Search Functionality (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___build_menu_card_component.html This JavaScript snippet uses jQuery's document ready function to initialize the search functionality for the documentation page. It ensures that the `init_search()` function is called once the DOM is fully loaded, enabling interactive search features. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Getting All Shops (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves an array containing the RplIds of all shops managed by the economy system. This provides a comprehensive list of all available shop entities. ```C++ array< RplId > GetAllShops () ``` -------------------------------- ### Initialize Navigation Tree and Resizable Elements - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_save_data.html This JavaScript snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the navigation structure for the OVT_EconomySaveData class page and enables resizing of documentation elements. ```JavaScript $(function(){initNavTree('class_o_v_t___economy_save_data.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Shop by RplId (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves a specific OVT_ShopComponent instance using its RplId. This allows direct access to a shop's properties and functionalities. ```C++ OVT_ShopComponent GetShopByRplId (RplId shopId) ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_has_dealer_job_condition-members.html This code initializes the navigation tree and enables resizable UI elements. It uses jQuery to execute the setup functions once the DOM is loaded. `initNavTree()` configures the navigation panel, while `initResizable(true)` enables resizing for relevant UI components. ```JavaScript $(function(){initNavTree('class_o_v_t___town_has_dealer_job_condition.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Navigation Tree and Resizable Layout (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___capture_base_action.html This JavaScript snippet initializes the navigation tree and enables resizable panels for the documentation. It sets up the navigation to `class_o_v_t___capture_base_action.html` and makes the layout elements resizable, improving user experience. ```JavaScript $(function(){initNavTree('class_o_v_t___capture_base_action.html',''); initResizable(true); }); ``` -------------------------------- ### On Show Event Handler (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___place_context-members.html This method is called when the placement context becomes visible or active, allowing for initialization or setup of UI elements and state when the placement mode is entered. ```C++ OnShow() ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___open_storage_action.html This snippet sets up the navigation tree to highlight the current page (`class_o_v_t___open_storage_action.html`) and enables resizable panels. This enhances the user experience by providing dynamic navigation and layout adjustments within the Doxygen-generated documentation. ```JavaScript $(function(){initNavTree('class_o_v_t___open_storage_action.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Modifier Index by ID (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Finds and returns the index of a specific modifier within an array of OVT_TownModifierData based on its unique ID. It takes the array of modifiers and the ID to search for. ```C++ int OVT_TownManagerComponent::GetModifierIndex ( array< ref OVT_TownModifierData > _modifiers_, int _id_ ) ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___trade_discount_skill_effect-members.html This snippet instantiates a new `SearchBox` object. It takes parameters for the search box ID ('searchBox'), the search path ('search/'), and the file extension ('.html'), configuring the search functionality for the Doxygen documentation. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Get Town Range (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the effective range or radius of a specified town. This value defines the area considered part of the town for various game mechanics. ```Enforce Script float GetTownRange (OVT_TownData town) ``` -------------------------------- ### Initialize Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___shop_context.html This snippet initializes the navigation tree, specifically pointing it to the `OVT_ShopContext` class page, and enables resizable elements within the documentation interface. It uses jQuery's document ready function to ensure these UI components are set up after the page content is loaded. ```JavaScript $(function(){initNavTree('class_o_v_t___shop_context.html',''); initResizable(true); }); ``` -------------------------------- ### Get Nearest Town (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the town data object for the town nearest to a given world position. This is useful for determining which town a player or object is closest to. ```Enforce Script OVT_TownData GetNearestTown (vector pos) ``` -------------------------------- ### Initializing Doxygen Navigation Tree (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___placeable_f_o_b_handler.html This JavaScript snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It links the current page to the navigation structure and enables resizing of the navigation pane, enhancing user navigation through the class hierarchy. ```JavaScript $(function(){initNavTree('class_o_v_t___placeable_f_o_b_handler.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Local Player Money (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current money balance for the local player. It provides a convenient way to access the client's own funds. ```C++ int GetLocalPlayerMoney () ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___place_menu_widgets.html This snippet initializes the navigation tree (`initNavTree`) to correctly point to the current class documentation page and enables resizable panels (`initResizable`) within the Doxygen interface. This improves user navigation and allows for flexible adjustment of the layout. ```JavaScript $(function(){initNavTree('class_o_v_t___place_menu_widgets.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Shop Inventory Configuration (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the inventory configuration for a specific type of shop. It provides details on what items a shop type typically stocks. ```C++ OVT_ShopInventoryConfig GetShopConfig (OVT_ShopType shopType) ``` -------------------------------- ### Initialize Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_8bf9ece93549a9b62aafe668bc5da078.html Initializes the navigation tree for directory browsing and enables resizable panels within the documentation interface. This ensures a dynamic and user-friendly layout for navigating content. ```JavaScript $(function(){initNavTree('dir_8bf9ece93549a9b62aafe668bc5da078.html',''); initResizable(true); }); ``` -------------------------------- ### Getting Gun Dealers (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves an array containing the RplIds of all gun dealer shops. This allows specific targeting of weapon vendors within the economy. ```C++ array< RplId > GetGunDealers () ``` -------------------------------- ### Getting Item Sell Price (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the selling price of an item, optionally considering a specific position for location-based pricing. The item is identified by its ID. ```C++ int GetSellPrice (int id, vector pos="0 0 0") ``` -------------------------------- ### Initializing Doxygen Search Functionality - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___placeable_handler-members.html This snippet initializes the search functionality for Doxygen-generated documentation. It ensures that the `init_search()` function is called once the DOM is ready, setting up the search box and related features. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Instantiating SearchBox Object (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___placeable_support_mod_handler.html This JavaScript line creates a new instance of the SearchBox object, configuring it with the ID 'searchBox', the search path 'search/', and the file extension '.html'. This object manages the search input and results display. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Random Managed Town (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves a random town from the list of towns currently managed by the component. Returns a random OVT_TownData instance or null if no towns exist in the managed list. ```C++ OVT_TownData OVT_TownManagerComponent::GetRandomTown( ) ``` -------------------------------- ### Get Town by ID (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the town data object corresponding to a specific town ID. This allows direct access to town data using its unique identifier. ```text ``` -------------------------------- ### Initializing Doxygen Search (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_16f998d74341fd0c4d45016a298d80cb.html This snippet uses jQuery's document ready function to call `init_search()`, which sets up the search functionality for the Doxygen documentation, enabling users to search content. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___shop_config.html This JavaScript snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the interactive navigation pane to `class_o_v_t___shop_config.html` and enables resizing of UI elements, enhancing user navigation and layout flexibility. ```JavaScript $(function(){initNavTree('class_o_v_t___shop_config.html',''); initResizable(true); }); ``` -------------------------------- ### Get Nearest Town Marker (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the map descriptor component for the town marker nearest to a given world position. This is useful for UI elements or map interactions. ```Enforce Script SCR_MapDescriptorComponent GetNearestTownMarker (vector pos) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___prices_config.html This snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the navigation tree to point to `class_o_v_t___prices_config.html` and enables resizable elements on the page. ```JavaScript $(function(){initNavTree('class_o_v_t___prices_config.html',''); initResizable(true); }); ``` -------------------------------- ### Get Nearest Town in Range (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the town data object for the nearest town that is within a predefined range of a given world position. This is useful for proximity checks. ```Enforce Script OVT_TownData GetNearestTownInRange (vector pos) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizing - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___spawn_point_component_class.html This snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the navigation tree to point to the current class page and enables resizing of the documentation layout. ```JavaScript $(function(){initNavTree('class_o_v_t___spawn_point_component_class.html',''); initResizable(true); }); ``` -------------------------------- ### Get Modifier Index (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves the index of a specific modifier within a list of town modifiers, identified by its ID. This is useful for managing and referencing individual modifiers in an array. ```Enforce Script int GetModifierIndex (array< ref OVT_TownModifierData > modifiers, int id) ``` -------------------------------- ### Get Random Town (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_manager_component.html Retrieves a random town data object from the managed towns. This can be used for various game logic purposes, such as selecting a random target or location. ```Enforce Script OVT_TownData GetRandomTown () ``` -------------------------------- ### Initialize Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___f_o_b_menu_context-members.html This snippet initializes the Doxygen navigation tree and resizable panels. It sets up the navigation tree to point to the `OVT_FOBMenuContext` class page and enables the resizing of documentation panels for better user experience. ```JavaScript $(function(){initNavTree('class_o_v_t___f_o_b_menu_context.html',''); initResizable(true); }); ``` -------------------------------- ### Get Random Hardcoded Bus Stop Location (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___overthrow_game_mode.html Selects and returns a random vector position from the m_HardcodedBusStopLocations array. If the array is empty, it returns vector.Zero. ```Enforce Script vector OVT_OverthrowGameMode::GetRandomHardcodedBusStop() ``` -------------------------------- ### Getting Local Player Money - OVT_EconomyManagerComponent (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves the current amount of money held by the local player. The function returns an integer representing the local player's money amount. ```C++ int OVT_EconomyManagerComponent::GetLocalPlayerMoney( ) ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/md__c_1_2_users_2austi_2_documents_2_git_hub_2_overthrow_8_arma4_2_l_i_c_e_n_s_e.html This snippet creates a new instance of the `SearchBox` object. It is configured with the ID 'searchBox', a path to the search directory 'search/', and a file extension '.html', which are used to manage and display search results within the application. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Singleton Instance - OVT_EconomyManagerComponent (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves the singleton instance of the OVT_EconomyManagerComponent. This static method ensures only one instance of the component exists, returning the static instance or null if it's not found. ```C++ static OVT_EconomyManagerComponent OVT_EconomyManagerComponent::GetInstance( ) ``` -------------------------------- ### Initializing Doxygen Navigation Tree and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___unload_storage_action.html This snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the interactive sidebar navigation to `class_o_v_t___unload_storage_action.html` and enables resizing of page elements for a flexible user interface. ```JavaScript $(function(){initNavTree('class_o_v_t___unload_storage_action.html',''); initResizable(true); }); ``` -------------------------------- ### Creating Search Box Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_66f57271e564b178efa60c5377e12f9e.html This snippet creates a new instance of a `SearchBox` object, configuring it with an ID, a search path, and a file extension. It's a common pattern for setting up interactive search interfaces. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting All Shops in a Specific Town (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves a list of RplIds for all shops located within the radius of a specified town. The function takes an OVT_TownData object as input and returns an array of RplIds. ```C++ array< RplId > OVT_EconomyManagerComponent::GetAllShopsInTown( OVT_TownData _town_ ) ``` -------------------------------- ### Getting Non-Occupying Faction Vehicles by Parking Type Enforce Script Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html Retrieves all non-occupying faction vehicles filtered by specific parking types, with an optional parameter to include illegal vehicles. ```Enforce Script bool GetAllNonOccupyingFactionVehiclesByParking(out array< ResourceName > resources, array< OVT_ParkingType > parkingTypes, bool includeIllegal=false) ``` -------------------------------- ### Initializing Doxygen Navigation and Resizable Panels (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_16f998d74341fd0c4d45016a298d80cb.html This snippet initializes the navigation tree to highlight the current directory (`dir_16f998d74341fd0c4d45016a298d80cb.html`) and enables resizable panels, enhancing the interactive layout of the Doxygen documentation. ```JavaScript $(function(){initNavTree('dir_16f998d74341fd0c4d45016a298d80cb.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Search Functionality - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___player_manager_component.html This JavaScript snippet initializes the search functionality for the documentation page. It executes the `init_search()` function once the DOM is ready, enabling users to search the documentation content. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Getting Town Stock (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the current stock quantity of a specific item within a designated town. Both the town and the item are identified by their respective integer IDs. ```C++ int GetTownStock (int townId, int id) ``` -------------------------------- ### Instantiating SearchBox Object (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___wanted_info_widgets.html This JavaScript line creates a new instance of the `SearchBox` object, configuring it with the ID 'searchBox', a search path 'search/', and a file extension '.html' for search results. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ``` -------------------------------- ### Getting Parking Type (C++) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_manager_component.html This protected member function retrieves the OVT_ParkingType associated with a given integer ID. This might be used to determine parking rules or properties for specific locations or entities. ```C++ OVT_ParkingType GetParkingType (int id) ``` -------------------------------- ### Initializing Navigation Tree and Resizable Panels in JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_aece4260d6d756870b5924d2f066a720.html This JavaScript snippet, executed on document ready, initializes two Doxygen-related functionalities: `initNavTree()` for setting up the navigation tree with a specific directory reference and an empty string, and `initResizable(true)` for enabling resizable panels, enhancing the user interface of the documentation. ```JavaScript $(function(){initNavTree('dir_aece4260d6d756870b5924d2f066a720.html',''); initResizable(true); }); ``` -------------------------------- ### Initializing Code Folding (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___economy_info.html This snippet utilizes jQuery to execute codefold.init(0) upon document readiness, enabling the interactive code folding feature for code examples in the documentation. ```JavaScript $(function() { codefold.init(0); }); ``` -------------------------------- ### Initializing Doxygen Navigation Tree (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___base_upgrade_parked_vehicles.html This JavaScript snippet initializes the navigation tree and resizable panels for the Doxygen documentation. It sets up the interactive navigation structure, linking to the current class page and enabling resizing of UI elements. ```JavaScript $(function(){initNavTree('class_o_v_t___base_upgrade_parked_vehicles.html',''); initResizable(true); }); ``` -------------------------------- ### Initial Camera Position Flag (Enforce Script) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___overthrow_game_mode.html A boolean flag that tracks whether the initial start camera has been successfully positioned. It is initialized to false and updated once the camera is set. ```Enforce Script bool m_bCameraSet = false ``` -------------------------------- ### Initialize Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/dir_098095f0d8ab35b17f84d0f5450f2aed.html Initializes the navigation tree for the documentation, linking it to a specific directory HTML file, and enables resizable elements within the interface. This ensures proper navigation and layout adjustments. ```JavaScript $(function(){initNavTree('dir_098095f0d8ab35b17f84d0f5450f2aed.html',''); initResizable(true); }); ``` -------------------------------- ### Post-Initialization - Town Modifier System - C Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___town_modifier_system.html Performs post-initialization tasks for the OVT_TownModifierSystem. This method is called after the primary initialization is complete, allowing for final setup or dependency resolution. It takes no parameters and returns nothing. ```C void PostInit () ``` -------------------------------- ### Declaring PostInit Method (Enforce) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___port_context.html Declares the PostInit method, an override of a base class method. This method is typically called after the initial object creation and setup, allowing for further initialization logic specific to the OVT_PortContext. ```Enforce override void PostInit () ``` -------------------------------- ### Initializing Doxygen Search Functionality - JavaScript Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___prices_config.html This snippet initializes the search functionality provided by Doxygen. It executes `init_search()` once the DOM is ready, enabling users to search the documentation. ```JavaScript $(function() { init_search(); }); ``` -------------------------------- ### Initialize Navigation Tree and Resizable Elements (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___place_context.html Initializes the navigation tree for the current page (`class_o_v_t___place_context.html`) and enables resizable elements. This setup provides dynamic navigation and UI resizing capabilities. ```JavaScript $(function(){initNavTree('class_o_v_t___place_context.html',''); initResizable(true); }); ``` -------------------------------- ### Creating SearchBox Instance (JavaScript) Source: https://github.com/armaoverthrow/overthrow.arma4/blob/main/docs/html/class_o_v_t___u_i_context-members.html This JavaScript line instantiates a new `SearchBox` object. It takes parameters for the search input element ID ('searchBox'), the search path ('search/'), and the file extension ('.html'), configuring the search behavior for the page. ```JavaScript var searchBox = new SearchBox("searchBox", "search/",'.html'); ```