This commit is contained in:
commit
48e3e15f71
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
32
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Report a bug related to the framework.
|
||||
title: "[addon name] - [short description]"
|
||||
labels: bug
|
||||
assignees: JSchmidt92
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Mission file**
|
||||
The mission where the issue occured.
|
||||
|
||||
**Log file**
|
||||
The log file generated by the game.
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: Request - [short description]
|
||||
labels: ''
|
||||
assignees: JSchmidt92
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
**When merged this pull request will:**
|
||||
- Describe what this pull request will do
|
||||
- Each change in a separate line
|
||||
- Follow title standard `Module - Add|Fix|Improve|Change|Remove things`
|
33
.github/release_drafter.yml
vendored
Normal file
33
.github/release_drafter.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
branches:
|
||||
- master
|
||||
|
||||
name-template: "forge_server_v$NEXT_PATCH_VERSION"
|
||||
tag-template: "$NEXT_PATCH_VERSION"
|
||||
|
||||
categories:
|
||||
- title: "**ADDED:**"
|
||||
labels:
|
||||
- "feature"
|
||||
- title: "**FIXED:**"
|
||||
labels:
|
||||
- "bug fix"
|
||||
- title: "**IMPROVED:**"
|
||||
labels:
|
||||
- "enhancement"
|
||||
- title: "**CHANGED:**"
|
||||
labels:
|
||||
- "cleanup"
|
||||
|
||||
exclude-labels:
|
||||
- "ignore changelog"
|
||||
|
||||
change-template: "- $TITLE (#$NUMBER)"
|
||||
template: |
|
||||
## Change Log Summary
|
||||
|
||||
$CHANGES
|
||||
|
||||
replacers:
|
||||
# Category titles
|
||||
- search: '/\#\# (\*\*(ADDED|FIXED|IMPROVED|CHANGED):\*\*)/g'
|
||||
replace: "$1"
|
50
.github/workflows/build.yml
vendored
Normal file
50
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths-ignore:
|
||||
- ".github/**"
|
||||
- "addons/main/script_version.hpp"
|
||||
- "docs/**"
|
||||
- "tools/**"
|
||||
- "LICENSE"
|
||||
- "README.md"
|
||||
- "*.json"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Source Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Bump Version
|
||||
id: bump-version
|
||||
run: python3 tools/version_bumper.py increment_build push_commit
|
||||
|
||||
- name: Setup HEMTT
|
||||
uses: arma-actions/hemtt@v1
|
||||
|
||||
- name: Run HEMTT build
|
||||
run: hemtt release
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 'stable'
|
||||
|
||||
- name: Initialize or Update Go module
|
||||
run: |
|
||||
if [ ! -f go.mod ]; then
|
||||
go mod init gitea.innovativedevsolutions.org/IDSolutions/server
|
||||
fi
|
||||
go get code.gitea.io/sdk/gitea
|
||||
|
||||
- name: Run Release Action
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.bump-version.outputs.VERSION }}
|
||||
run: go run main.go
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
*.pbo
|
||||
.hemttout
|
||||
hemtt
|
||||
hemtt.exe
|
||||
*.biprivatekey
|
4
.hemtt/project.toml
Normal file
4
.hemtt/project.toml
Normal file
@ -0,0 +1,4 @@
|
||||
name = "FORGE Server"
|
||||
author = "IDSolutions"
|
||||
prefix = "forge_server"
|
||||
mainprefix = "z"
|
119
LICENSE
Normal file
119
LICENSE
Normal file
@ -0,0 +1,119 @@
|
||||
Copyright (c) 2024 IDSolutions
|
||||
|
||||
Brief summary of this Licence
|
||||
|
||||
PLEASE, NOTE THAT THIS SUMMARY HAS NO LEGAL EFFECT AND IS ONLY OF AN INFORMATORY NATURE DESIGNED FOR YOU TO GET THE BASIC INFORMATION ABOUT THE CONTENT OF THIS LICENCE. THE ONLY LEGALLY BINDING PROVISIONS ARE THOSE IN THE ORIGINAL AND FULL TEXT OF THIS LICENCE.
|
||||
|
||||
With this licence you are free to adapt (i.e. modify, rework or update) and share (i.e. copy, distribute or transmit) the material under the following conditions:
|
||||
|
||||
Attribution - You must attribute the material in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the material).
|
||||
Noncommercial - You may not use this material for any commercial purposes.
|
||||
Arma Only - You may not convert or adapt this material to be used in other games than Arma.
|
||||
Share Alike - If you adapt, or build upon this material, you may distribute the resulting material only under the same license.
|
||||
|
||||
Full version of licence
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Arma Public License - Share Alike ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||
Section 1 – Definitions
|
||||
|
||||
Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||
Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||
ArmaOnly means primarily intended for or directed towards the use in any of existing and future Arma games, including but not limited to Arma: Cold War Assault, Arma, Arma 2 and Arma 3 and its official sequels and expansion packs.
|
||||
Arma Public Share Alike Compatible License means a license listed at https://www.bohemia.net/community/licenses as essentially the equivalent of this Public License.
|
||||
Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||
Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||
Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||
Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||
Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||
Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||
NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
|
||||
Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||
Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||
You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||
|
||||
Section 2 – Scope
|
||||
|
||||
License grant
|
||||
Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||
reproduce and Share the Licensed Material, in whole or in part, for NonCommercial and ArmaOnly purposes only; and
|
||||
produce, reproduce, and Share Adapted Material for NonCommercial and ArmaOnly purposes only.
|
||||
Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||
Term. The term of this Public License is specified in Section 6(a).
|
||||
Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||
Downstream recipients.
|
||||
Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||
Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||
No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||
No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(a)(i).
|
||||
Other rights
|
||||
Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||
Patent and trademark rights are not licensed under this Public License.
|
||||
To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial and ArmaOnly purposes.
|
||||
|
||||
Section 3 – License Conditions
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||
|
||||
Attribution
|
||||
|
||||
If You Share the Licensed Material (including in modified form), You must:
|
||||
retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||
identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||
a copyright notice;
|
||||
a notice that refers to this Public License;
|
||||
a notice that refers to the disclaimer of warranties;
|
||||
a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||
indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||
indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||
You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||
If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(a) to the extent reasonably practicable.
|
||||
ShareAlike
|
||||
|
||||
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||
The Adapter’s License You apply must be this Public License, or an Arma Public Share Alike Compatible License.
|
||||
You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||
You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||
|
||||
Section 4 – Sui Generis Database Rights
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||
|
||||
for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial and ArmaOnly purposes only;
|
||||
if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||
You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||
Section 5 – Disclaimer of Warranties and Limitation of Liability
|
||||
|
||||
Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||
To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||
The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||
|
||||
Section 6 – Term and Termination
|
||||
|
||||
This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||
|
||||
Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||
automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||
upon express reinstatement by the Licensor.
|
||||
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||
For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||
Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||
|
||||
Section 7 – Other Terms and Conditions
|
||||
|
||||
The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||
Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||
|
||||
Section 8 – Interpretation
|
||||
|
||||
For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||
To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||
No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||
|
||||
Bohemia Interactive Notices
|
||||
|
||||
Bohemia Interactive a.s. is not a party to this License, and makes no warranty whatsoever in connection with the Licensed Material. Bohemia Interactive a.s. will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, Bohemia Interactive a.s. may elect to apply the Public License to material it publishes and in those instances it becomes the "Licensor".
|
||||
Except for the limited purpose of indicating to the public that the Licensed Material is shared under this Public License, Bohemia Interactive a.s. does not authorize the use by either party of the trademarks "Arma", "Bohemia Interactive" or any related trademark or logo of Arma or Bohemia Interactive without the prior written consent of Bohemia Interactive a.s.
|
67
README.md
Normal file
67
README.md
Normal file
@ -0,0 +1,67 @@
|
||||
<p align="center">
|
||||
<a href="https://gitea.innovativedevsolutions.org/IDSolutions/server/releases/latest" target="blank">
|
||||
<img src="https://img.shields.io/gitea/v/release/IDSolutions/server?gitea_url=https%3A%2F%2Fgitea.innovativedevsolutions.org" alt="latest-release" /></a>
|
||||
<a href="https://gitea.innovativedevsolutions.org/IDSolutions/server/issues" target="blank">
|
||||
<img src="https://img.shields.io/gitea/issues/open/IDSolutions/server?gitea_url=https%3A%2F%2Fgitea.innovativedevsolutions.org" alt="open-issues" /></a>
|
||||
<a href="https://gitea.innovativedevsolutions.org/IDSolutions/server/actions?workflow=build.yml" target="blank">
|
||||
<img src="https://gitea.innovativedevsolutions.org/IDSolutions/server/actions/workflows/build.yml/badge.svg?branch=master" alt="build-status" /></a>
|
||||
</p>
|
||||
|
||||
Arma 3 FORGE Server: Power Your Persistent World\
|
||||
Version: Alpha 0.1.0
|
||||
|
||||
[Development Status: Active]
|
||||
|
||||
---
|
||||
|
||||
Drive the backbone of your military operations with Arma 3 FORGE Server, the robust server framework that enables persistent worlds and complex organizational management. Built for performance, scalability, and reliability.
|
||||
|
||||
Key Features:
|
||||
---
|
||||
* Persistent Framework: Track and maintain player progression, organizational developments, and world states across sessions
|
||||
* Performance Optimized: Built from the ground up for military-scale operations with minimal performance impact
|
||||
* Advanced Data Management: High-performance DragonflyDB caching layer with MongoDB for robust data persistence
|
||||
* Security Focused: Comprehensive anti-cheat measures and data validation systems protect your persistent world
|
||||
* Scalable Architecture: Handles everything from small unit operations to full-scale warfare with multiple organizations
|
||||
* Real-time Analytics: Monitor server performance, track player activities, and analyze operational data
|
||||
* Automated Management: Scheduled maintenance, backup systems, and administrative tools streamline operations
|
||||
* API Integration: Connect external services and expand functionality through documented API endpoints
|
||||
|
||||
Perfect for:
|
||||
* Community server operators
|
||||
* Persistent campaign hosts
|
||||
* Competition organizers
|
||||
* Large-scale operation managers
|
||||
|
||||
Coming Features:
|
||||
* Enhanced Analytics Dashboard
|
||||
* Extended API Capabilities
|
||||
* Advanced Mission Framework
|
||||
* Cross-Server Communications
|
||||
|
||||
Technical Specifications:
|
||||
---
|
||||
* Database Stack:
|
||||
* DragonflyDB - High-performance caching layer
|
||||
* MongoDB - Persistent data storage
|
||||
* Minimum Requirements:
|
||||
* CPU: 4 cores
|
||||
* RAM: 8GB
|
||||
* Storage: 10GB SSD
|
||||
* Recommended Requirements:
|
||||
* CPU: 8 cores
|
||||
* RAM: 16GB
|
||||
* Storage: 20GB SSD
|
||||
|
||||
Support & Development
|
||||
---
|
||||
* 24/7 Technical Support
|
||||
* Regular Performance Updates
|
||||
* Community Feature Requests
|
||||
* Detailed Documentation
|
||||
|
||||
License:
|
||||
---
|
||||
This mod is licensed under the [Arma Public License (APL-SA)](https://www.bohemia.net/community/licenses/arma-public-license-share-alike).
|
||||
|
||||
Power your persistent world with FORGE Server.
|
3
a3f_server_version.json
Normal file
3
a3f_server_version.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"version": "1.0.0"
|
||||
}
|
1
addons/admin/$PBOPREFIX$
Normal file
1
addons/admin/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\admin
|
19
addons/admin/CfgEventHandlers.hpp
Normal file
19
addons/admin/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
1
addons/admin/XEH_PREP.hpp
Normal file
1
addons/admin/XEH_PREP.hpp
Normal file
@ -0,0 +1 @@
|
||||
PREP(initAdmin);
|
1
addons/admin/XEH_postInit.sqf
Normal file
1
addons/admin/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/admin/XEH_postInit_client.sqf
Normal file
1
addons/admin/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/admin/XEH_preInit.sqf
Normal file
8
addons/admin/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
3
addons/admin/XEH_preInit_server.sqf
Normal file
3
addons/admin/XEH_preInit_server.sqf
Normal file
@ -0,0 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
call FUNC(initAdmin);
|
2
addons/admin/XEH_preStart.sqf
Normal file
2
addons/admin/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
16
addons/admin/config.cpp
Normal file
16
addons/admin/config.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
18
addons/admin/functions/fnc_initAdmin.sqf
Normal file
18
addons/admin/functions/fnc_initAdmin.sqf
Normal file
@ -0,0 +1,18 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
{
|
||||
private _configName = configName(_x);
|
||||
private _className = (missionConfigFile >> "CfgCpofs" >> "cpofs" >> _configName >> "className") call BFUNC(getCfgData);
|
||||
private _pos = (missionConfigFile >> "CfgCpofs" >> "cpofs" >> _configName >> "pos") call BFUNC(getCfgData);
|
||||
private _dir = (missionConfigFile >> "CfgCpofs" >> "cpofs" >> _configName >> "dir") call BFUNC(getCfgData);
|
||||
|
||||
private _cpof = createSimpleObject [_className, [0, 0, 0]];
|
||||
|
||||
_cpof setPosATL _pos;
|
||||
_cpof setDir _dir;
|
||||
_cpof allowDamage false;
|
||||
_cpof setVariable ["isCPOF", true, true];
|
||||
|
||||
diag_log text format ["[FORGE Admin] ClassName: '%1' Pos: '%2' Dir: '%3'", _className, _pos, _dir];
|
||||
|
||||
} forEach ("true" configClasses (missionConfigFile >> "CfgCpofs" >> "cpofs"));
|
15
addons/admin/script_component.hpp
Normal file
15
addons/admin/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT admin
|
||||
#define COMPONENT_BEAUTIFIED Admin
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_ADMIN
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_ADMIN
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_ADMIN
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
1
addons/audio/$PBOPREFIX$
Normal file
1
addons/audio/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\audio
|
19
addons/audio/CfgEventHandlers.hpp
Normal file
19
addons/audio/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
23
addons/audio/CfgSounds.hpp
Normal file
23
addons/audio/CfgSounds.hpp
Normal file
@ -0,0 +1,23 @@
|
||||
class CfgSounds {
|
||||
sounds[] = {};
|
||||
class FORGE_timerBeep {
|
||||
name = "FORGE_timerBeep";
|
||||
sound[] = {QUOTE(PATHTOF(sounds\timerClick.wav)), 1, 3};
|
||||
titles[] = {};
|
||||
};
|
||||
class FORGE_timerBeepShort {
|
||||
name = "FORGE_timerBeepShort";
|
||||
sound[] = {QUOTE(PATHTOF(sounds\timerClickShort.wav)), 1, 3};
|
||||
titles[] = {};
|
||||
};
|
||||
class FORGE_timerEnd {
|
||||
name = "FORGE_timerEnd";
|
||||
sound[] = {QUOTE(PATHTOF(sounds\timerEnd.wav)), 1, 3};
|
||||
titles[] = {};
|
||||
};
|
||||
class FORGE_defused {
|
||||
name = "FORGE_defused";
|
||||
sound[] = {QUOTE(PATHTOF(sounds\defused.wav)), 1, 3};
|
||||
titles[] = {};
|
||||
};
|
||||
};
|
0
addons/audio/XEH_PREP.hpp
Normal file
0
addons/audio/XEH_PREP.hpp
Normal file
1
addons/audio/XEH_postInit.sqf
Normal file
1
addons/audio/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/audio/XEH_postInit_client.sqf
Normal file
1
addons/audio/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/audio/XEH_preInit.sqf
Normal file
8
addons/audio/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
1
addons/audio/XEH_preInit_server.sqf
Normal file
1
addons/audio/XEH_preInit_server.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
2
addons/audio/XEH_preStart.sqf
Normal file
2
addons/audio/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
17
addons/audio/config.cpp
Normal file
17
addons/audio/config.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgSounds.hpp"
|
15
addons/audio/script_component.hpp
Normal file
15
addons/audio/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT audio
|
||||
#define COMPONENT_BEAUTIFIED Audio
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_AUDIO
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_AUDIO
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_AUDIO
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
BIN
addons/audio/sounds/defused.wav
Normal file
BIN
addons/audio/sounds/defused.wav
Normal file
Binary file not shown.
BIN
addons/audio/sounds/timerClick.wav
Normal file
BIN
addons/audio/sounds/timerClick.wav
Normal file
Binary file not shown.
BIN
addons/audio/sounds/timerClickShort.wav
Normal file
BIN
addons/audio/sounds/timerClickShort.wav
Normal file
Binary file not shown.
BIN
addons/audio/sounds/timerEnd.wav
Normal file
BIN
addons/audio/sounds/timerEnd.wav
Normal file
Binary file not shown.
1
addons/bank/$PBOPREFIX$
Normal file
1
addons/bank/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\bank
|
19
addons/bank/CfgEventHandlers.hpp
Normal file
19
addons/bank/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
1
addons/bank/XEH_PREP.hpp
Normal file
1
addons/bank/XEH_PREP.hpp
Normal file
@ -0,0 +1 @@
|
||||
PREP(initBank);
|
1
addons/bank/XEH_postInit.sqf
Normal file
1
addons/bank/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/bank/XEH_postInit_client.sqf
Normal file
1
addons/bank/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/bank/XEH_preInit.sqf
Normal file
8
addons/bank/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
3
addons/bank/XEH_preInit_server.sqf
Normal file
3
addons/bank/XEH_preInit_server.sqf
Normal file
@ -0,0 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
call FUNC(initBank);
|
2
addons/bank/XEH_preStart.sqf
Normal file
2
addons/bank/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
16
addons/bank/config.cpp
Normal file
16
addons/bank/config.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
30
addons/bank/functions/fnc_initBank.sqf
Normal file
30
addons/bank/functions/fnc_initBank.sqf
Normal file
@ -0,0 +1,30 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
{
|
||||
private _configName = configName(_x);
|
||||
private _className = (missionConfigFile >> "CfgBanks" >> "banks" >> _configName >> "className") call BFUNC(getCfgData);
|
||||
private _pos = (missionConfigFile >> "CfgBanks" >> "banks" >> _configName >> "pos") call BFUNC(getCfgData);
|
||||
private _dir = (missionConfigFile >> "CfgBanks" >> "banks" >> _configName >> "dir") call BFUNC(getCfgData);
|
||||
private _type = (missionConfigFile >> "CfgBanks" >> "banks" >> _configName >> "type") call BFUNC(getCfgData);
|
||||
|
||||
if (_type == "object") then {
|
||||
private _bank = createSimpleObject [_className, [0, 0, 0]];
|
||||
|
||||
_bank setPosATL _pos;
|
||||
_bank setDir _dir;
|
||||
_bank allowDamage false;
|
||||
_bank setVariable ["isBank", true, true];
|
||||
} else {
|
||||
private _group = createGroup civilian;
|
||||
private _bank = _group createUnit [_className, [0, 0, 0], [], 0, "NONE"];
|
||||
|
||||
_bank disableAI "MOVE";
|
||||
_bank setPosATL _pos;
|
||||
_bank setDir _dir;
|
||||
_bank allowDamage false;
|
||||
_bank setVariable ["isBank", true, true];
|
||||
_bank setVariable ["BIS_enableRandomization", false];
|
||||
};
|
||||
|
||||
diag_log text format ["[FORGE Bank] ClassName: '%1' Pos: '%2' Dir: '%3'", _className, _pos, _dir];
|
||||
} forEach ("true" configClasses (missionConfigFile >> "CfgBanks" >> "banks"));
|
15
addons/bank/script_component.hpp
Normal file
15
addons/bank/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT bank
|
||||
#define COMPONENT_BEAUTIFIED Bank
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_BANK
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_BANK
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_BANK
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
1
addons/garage/$PBOPREFIX$
Normal file
1
addons/garage/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\garage
|
19
addons/garage/CfgEventHandlers.hpp
Normal file
19
addons/garage/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
1
addons/garage/XEH_PREP.hpp
Normal file
1
addons/garage/XEH_PREP.hpp
Normal file
@ -0,0 +1 @@
|
||||
PREP(initGarage);
|
1
addons/garage/XEH_postInit.sqf
Normal file
1
addons/garage/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/garage/XEH_postInit_client.sqf
Normal file
1
addons/garage/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/garage/XEH_preInit.sqf
Normal file
8
addons/garage/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
3
addons/garage/XEH_preInit_server.sqf
Normal file
3
addons/garage/XEH_preInit_server.sqf
Normal file
@ -0,0 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
call FUNC(initGarage);
|
2
addons/garage/XEH_preStart.sqf
Normal file
2
addons/garage/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
16
addons/garage/config.cpp
Normal file
16
addons/garage/config.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
31
addons/garage/functions/fnc_initGarage.sqf
Normal file
31
addons/garage/functions/fnc_initGarage.sqf
Normal file
@ -0,0 +1,31 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
{
|
||||
private _configName = configName(_x);
|
||||
private _className = (missionConfigFile >> "CfgGarages" >> "garages" >> _configName >> "className") call BFUNC(getCfgData);
|
||||
private _pos = (missionConfigFile >> "CfgGarages" >> "garages" >> _configName >> "pos") call BFUNC(getCfgData);
|
||||
private _dir = (missionConfigFile >> "CfgGarages" >> "garages" >> _configName >> "dir") call BFUNC(getCfgData);
|
||||
private _type = (missionConfigFile >> "CfgGarages" >> "garages" >> _configName >> "type") call BFUNC(getCfgData);
|
||||
|
||||
if (_type == "object") then {
|
||||
private _garage = createSimpleObject [_className, [0, 0, 0]];
|
||||
|
||||
_garage setPosATL _pos;
|
||||
_garage setDir _dir;
|
||||
_garage allowDamage false;
|
||||
_garage setVariable ["isGarage", true, true];
|
||||
} else {
|
||||
private _group = createGroup civilian;
|
||||
private _garage = _group createUnit [_className, [0, 0, 0], [], 0, "NONE"];
|
||||
|
||||
_garage disableAI "MOVE";
|
||||
_garage setPosATL _pos;
|
||||
_garage setDir _dir;
|
||||
_garage allowDamage false;
|
||||
_garage setVariable ["isGarage", true, true];
|
||||
_garage setVariable ["BIS_enableRandomization", false];
|
||||
};
|
||||
|
||||
diag_log text format ["[FORGE Garage] ClassName: '%1' Pos: '%2' Dir: '%3' Type: '%4'", _className, _pos, _dir, _type];
|
||||
|
||||
} forEach ("true" configClasses (missionConfigFile >> "CfgGarages" >> "garages"));
|
15
addons/garage/script_component.hpp
Normal file
15
addons/garage/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT garage
|
||||
#define COMPONENT_BEAUTIFIED Garage
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_GARAGE
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_GARAGE
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_GARAGE
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
1
addons/init/$PBOPREFIX$
Normal file
1
addons/init/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\init
|
19
addons/init/CfgEventHandlers.hpp
Normal file
19
addons/init/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
3
addons/init/XEH_PREP.hpp
Normal file
3
addons/init/XEH_PREP.hpp
Normal file
@ -0,0 +1,3 @@
|
||||
PREP(handleServerState);
|
||||
PREP(handleServerStateLoad);
|
||||
PREP(serverSetup);
|
1
addons/init/XEH_postInit.sqf
Normal file
1
addons/init/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/init/XEH_postInit_client.sqf
Normal file
1
addons/init/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/init/XEH_preInit.sqf
Normal file
8
addons/init/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
1
addons/init/XEH_preInit_server.sqf
Normal file
1
addons/init/XEH_preInit_server.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
2
addons/init/XEH_preStart.sqf
Normal file
2
addons/init/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
16
addons/init/config.cpp
Normal file
16
addons/init/config.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
20
addons/init/functions/fnc_handleServerState.sqf
Normal file
20
addons/init/functions/fnc_handleServerState.sqf
Normal file
@ -0,0 +1,20 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
params ["_condition"];
|
||||
|
||||
switch (_condition) do {
|
||||
case "save": {
|
||||
private _data = [
|
||||
"CompanyState",
|
||||
"funds", [companyFunds],
|
||||
"rating", [companyRating],
|
||||
"operations", [companyGenerals],
|
||||
"garage_unlocks", [companyGarageUnlocks]
|
||||
];
|
||||
|
||||
["hsetidbulk", "", "", -1, _data, "", false] call dragonfly_db_fnc_addTask;
|
||||
};
|
||||
case "load": {
|
||||
["hgetallid", "CompanyState", "", -1, [], "forge_server_init_fnc_handleServerStateLoad", false] call dragonfly_db_fnc_addTask;
|
||||
};
|
||||
};
|
42
addons/init/functions/fnc_handleServerStateLoad.sqf
Normal file
42
addons/init/functions/fnc_handleServerStateLoad.sqf
Normal file
@ -0,0 +1,42 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
_data = _this;
|
||||
|
||||
if (_data isEqualTo [""]) then {
|
||||
companyGenerals = (configFile >> "CfgPatches" >> "forge_server_main" >> "companyGenerals") call BFUNC(getCfgData);
|
||||
publicVariable "companyGenerals";
|
||||
|
||||
companyFunds = "OP_BUDGET" call BFUNC(getParamValue);
|
||||
publicVariable "companyFunds";
|
||||
|
||||
companyRating = "OP_RATING" call BFUNC(getParamValue);
|
||||
publicVariable "companyRating";
|
||||
|
||||
companyGarageUnlocks = [[],[],[],[],[],[]];
|
||||
publicVariable "companyGarageUnlocks";
|
||||
|
||||
diag_log "No Server Entry Found!";
|
||||
["save"] call FUNC(handleServerState);
|
||||
|
||||
value_serverDone = true;
|
||||
publicVariable "value_serverDone";
|
||||
} else {
|
||||
for "_i" from 0 to (count _data - 1) step 2 do {
|
||||
_key = _data select _i;
|
||||
_value = _data select (_i + 1);
|
||||
|
||||
if (_value isEqualType []) then {
|
||||
_value = _value select 0;
|
||||
};
|
||||
|
||||
switch (_key) do {
|
||||
case "funds": { companyFunds = _value; publicVariable "companyFunds" };
|
||||
case "rating": { companyRating = _value; publicVariable "companyRating" };
|
||||
case "operations": { companyGenerals = _value; publicVariable "companyGenerals" };
|
||||
case "garage_unlocks": { companyGarageUnlocks = _value; publicVariable "companyGarageUnlocks" };
|
||||
};
|
||||
};
|
||||
|
||||
value_serverDone = true;
|
||||
publicVariable "value_serverDone";
|
||||
};
|
20
addons/init/functions/fnc_serverSetup.sqf
Normal file
20
addons/init/functions/fnc_serverSetup.sqf
Normal file
@ -0,0 +1,20 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
value_serverDone = false;
|
||||
publicVariable "value_serverDone";
|
||||
|
||||
diag_log "Executing SOF Server Side Functions...";
|
||||
|
||||
[] call EFUNC(save,handleDisconnect);
|
||||
diag_log "Server Handle Disconnect Initialized.";
|
||||
|
||||
["load"] call FUNC(handleServerState);
|
||||
diag_log "Server Handle Server State Initialized.";
|
||||
|
||||
true spawn {
|
||||
if (((configFile >> "CfgPatches" >> "forge_server_main" >> "serverSaveLoop") call BFUNC(getCfgData)) == 0) exitWith { diag_log "Server Save Disabled"; };
|
||||
while { true } do {
|
||||
sleep ((configFile >> "CfgPatches" >> "forge_server_main" >> "serverSaveLoopTime") call BFUNC(getCfgData));
|
||||
["save"] call FUNC(handleServerState);
|
||||
};
|
||||
};
|
15
addons/init/script_component.hpp
Normal file
15
addons/init/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT init
|
||||
#define COMPONENT_BEAUTIFIED Init
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_INIT
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_INIT
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_INIT
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
1
addons/locker/$PBOPREFIX$
Normal file
1
addons/locker/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\locker
|
19
addons/locker/CfgEventHandlers.hpp
Normal file
19
addons/locker/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
1
addons/locker/XEH_PREP.hpp
Normal file
1
addons/locker/XEH_PREP.hpp
Normal file
@ -0,0 +1 @@
|
||||
PREP(initLocker);
|
1
addons/locker/XEH_postInit.sqf
Normal file
1
addons/locker/XEH_postInit.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
1
addons/locker/XEH_postInit_client.sqf
Normal file
1
addons/locker/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
8
addons/locker/XEH_preInit.sqf
Normal file
8
addons/locker/XEH_preInit.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
3
addons/locker/XEH_preInit_server.sqf
Normal file
3
addons/locker/XEH_preInit_server.sqf
Normal file
@ -0,0 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
call FUNC(initLocker);
|
2
addons/locker/XEH_preStart.sqf
Normal file
2
addons/locker/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
16
addons/locker/config.cpp
Normal file
16
addons/locker/config.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"forge_server_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
31
addons/locker/functions/fnc_initLocker.sqf
Normal file
31
addons/locker/functions/fnc_initLocker.sqf
Normal file
@ -0,0 +1,31 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
{
|
||||
private _configName = configName(_x);
|
||||
private _className = (missionConfigFile >> "CfgLockers" >> "lockers" >> _configName >> "className") call BFUNC(getCfgData);
|
||||
private _pos = (missionConfigFile >> "CfgLockers" >> "lockers" >> _configName >> "pos") call BFUNC(getCfgData);
|
||||
private _dir = (missionConfigFile >> "CfgLockers" >> "lockers" >> _configName >> "dir") call BFUNC(getCfgData);
|
||||
private _type = (missionConfigFile >> "CfgLockers" >> "lockers" >> _configName >> "type") call BFUNC(getCfgData);
|
||||
|
||||
if (_type == "object") then {
|
||||
private _locker = createSimpleObject [_className, [0, 0, 0]];
|
||||
|
||||
_locker setPosATL _pos;
|
||||
_locker setDir _dir;
|
||||
_locker allowDamage false;
|
||||
_locker setVariable ["isLocker", true, true];
|
||||
} else {
|
||||
private _group = createGroup civilian;
|
||||
private _locker = _group createUnit [_className, [0, 0, 0], [], 0, "NONE"];
|
||||
|
||||
_locker disableAI "MOVE";
|
||||
_locker setPosATL _pos;
|
||||
_locker setDir _dir;
|
||||
_locker allowDamage false;
|
||||
_locker setVariable ["isLocker", true, true];
|
||||
_locker setVariable ["BIS_enableRandomization", false];
|
||||
};
|
||||
|
||||
diag_log text format ["[FORGE Locker] ClassName: '%1' Pos: '%2' Dir: '%3' Type: '%4'", _className, _pos, _dir, _type];
|
||||
|
||||
} forEach ("true" configClasses (missionConfigFile >> "CfgLockers" >> "lockers"));
|
15
addons/locker/script_component.hpp
Normal file
15
addons/locker/script_component.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
#define COMPONENT locker
|
||||
#define COMPONENT_BEAUTIFIED Locker
|
||||
#include "..\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_LOCKER
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
#ifdef DEBUG_SETTINGS_LOCKER
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_LOCKER
|
||||
#endif
|
||||
|
||||
#include "..\main\script_macros.hpp"
|
1
addons/main/$PBOPREFIX$
Normal file
1
addons/main/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\forge_server\addons\main
|
1
addons/main/CfgEditorCategories.hpp
Normal file
1
addons/main/CfgEditorCategories.hpp
Normal file
@ -0,0 +1 @@
|
||||
class CfgEditorCategories {};
|
1
addons/main/CfgEditorSubcategories.hpp
Normal file
1
addons/main/CfgEditorSubcategories.hpp
Normal file
@ -0,0 +1 @@
|
||||
class CfgEditorSubcategories {};
|
19
addons/main/CfgEventHandlers.hpp
Normal file
19
addons/main/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
class Extended_PreStart_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client));
|
||||
};
|
||||
};
|
24
addons/main/CfgMPGameTypes.hpp
Normal file
24
addons/main/CfgMPGameTypes.hpp
Normal file
@ -0,0 +1,24 @@
|
||||
class CfgMPGameTypes {
|
||||
class COOP;
|
||||
class FORGE_CNT: COOP {
|
||||
id = 433;
|
||||
name = "Contract";
|
||||
picture = "";
|
||||
shortcut = "CNT";
|
||||
description = "FORGE Contract";
|
||||
};
|
||||
class FORGE_DA: COOP {
|
||||
id = 433;
|
||||
name = "Direct Action";
|
||||
picture = "";
|
||||
shortcut = "DA";
|
||||
description = "FORGE Direct Action";
|
||||
};
|
||||
class FORGE_OP: COOP {
|
||||
id = 433;
|
||||
name = "Operation";
|
||||
picture = "";
|
||||
shortcut = "OP";
|
||||
description = "FORGE Operation";
|
||||
};
|
||||
};
|
14
addons/main/CfgMods.hpp
Normal file
14
addons/main/CfgMods.hpp
Normal file
@ -0,0 +1,14 @@
|
||||
class CfgMods {
|
||||
class PREFIX {
|
||||
dir = "@forge_server";
|
||||
name = "FORGE Server";
|
||||
author = "IDSolutions";
|
||||
picture = "A3\Ui_f\data\Logos\arma3_expansion_alpha_ca";
|
||||
hideName = "false";
|
||||
hidePicture = "false";
|
||||
action = "https://innovativedevsolutions.org";
|
||||
actionName = "Website";
|
||||
description = "Innovative Development Solutions";
|
||||
dlcColor[] = {0.45, 0.47, 0.41, 1};
|
||||
};
|
||||
};
|
1
addons/main/CfgNotifications.hpp
Normal file
1
addons/main/CfgNotifications.hpp
Normal file
@ -0,0 +1 @@
|
||||
class CfgNotifications {};
|
4
addons/main/README.md
Normal file
4
addons/main/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
forge_server_main
|
||||
========
|
||||
|
||||
Backbone of other components, defining most of the commonly used macros.
|
2
addons/main/XEH_PREP.hpp
Normal file
2
addons/main/XEH_PREP.hpp
Normal file
@ -0,0 +1,2 @@
|
||||
PREP(log);
|
||||
PREP(writeRPT);
|
11
addons/main/XEH_postInit.sqf
Normal file
11
addons/main/XEH_postInit.sqf
Normal file
@ -0,0 +1,11 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
// addMissionEventHandler ["ExtensionCallback", {
|
||||
// params ["_name", "_function", "_data"];
|
||||
// diag_log _this;
|
||||
// if (_name isEqualTo "ArmaDragonflyClient") then {
|
||||
// parseSimpleArray _data call (missionNamespace getVariable [_function, {
|
||||
// hint "Function does not exist!"
|
||||
// }]);
|
||||
// };
|
||||
// }];
|
1
addons/main/XEH_postInit_client.sqf
Normal file
1
addons/main/XEH_postInit_client.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
18
addons/main/XEH_preInit.sqf
Normal file
18
addons/main/XEH_preInit.sqf
Normal file
@ -0,0 +1,18 @@
|
||||
#include "script_component.hpp"
|
||||
ADDON = false;
|
||||
|
||||
PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
ADDON = true;
|
||||
|
||||
GVARMAIN(debugMode) = false;
|
||||
|
||||
[QGVAR(log), {
|
||||
params ["_msg", "_syschatEnabled"];
|
||||
|
||||
[_msg, _syschatEnabled] call FUNC(writeRPT);
|
||||
}] call CFUNC(addEventHandler);
|
||||
|
||||
[COMPONENT_NAME, "DEBUG", "*** DEBUG MODE IS ACTIVE ***", true] call FUNC(log);
|
1
addons/main/XEH_preInit_server.sqf
Normal file
1
addons/main/XEH_preInit_server.sqf
Normal file
@ -0,0 +1 @@
|
||||
#include "script_component.hpp"
|
2
addons/main/XEH_preStart.sqf
Normal file
2
addons/main/XEH_preStart.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
#include "XEH_PREP.hpp"
|
20
addons/main/config.cpp
Normal file
20
addons/main/config.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"cba_main", "ace_main"};
|
||||
authors[] = {"J. Schmidt", "Creedcoder"};
|
||||
author = "IDSolutions";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEditorCategories.hpp"
|
||||
#include "CfgEditorSubcategories.hpp"
|
||||
#include "CfgMods.hpp"
|
||||
#include "CfgMPGameTypes.hpp"
|
||||
#include "CfgNotifications.hpp"
|
67
addons/main/functions/fnc_log.sqf
Normal file
67
addons/main/functions/fnc_log.sqf
Normal file
@ -0,0 +1,67 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
/*
|
||||
Author:
|
||||
Malbryn
|
||||
|
||||
Description:
|
||||
Handles the logging of the framework.
|
||||
|
||||
Arguments:
|
||||
0: STRING - Name of the module (use COMPONENT_STR macro)
|
||||
1: STRING - Log level (ERROR, WARNING, INFO, DEBUG)
|
||||
2: STRING - Message
|
||||
3: BOOLEAN - If the message is displayed in-game via systemChat (Optional, default: false)
|
||||
4: SCALAR - Location of the message (Optional, default: 1)
|
||||
0: Global - log the message on every machine
|
||||
1: Local - log the message on the machine where it was called
|
||||
2: Local & Server - log the message on the client where it was called and on the server
|
||||
3: Target machine - log the message on target machine, target machine has to be passed
|
||||
5: OBJECT - Target machine when location [3] is used (Optional, default: local machine)
|
||||
|
||||
Example:
|
||||
[COMPONENT_STR, "INFO", format ["Descriptive message: %1", _value], true, 2] call MF_main_fnc_log
|
||||
[COMPONENT_STR, "WARNING", "", true] call forge_server_main_fnc_log;
|
||||
|
||||
Output: 19:00:00 [MF] (Main) INFO: Descriptive message: test
|
||||
|
||||
Returns:
|
||||
VOID
|
||||
*/
|
||||
|
||||
params ["_component", "_level", "_msg", ["_syschatEnabled", false], ["_location", 1], ["_target", objNull]];
|
||||
|
||||
// Ignore debug messages if debug mode is not on
|
||||
if (!GVARMAIN(debugMode) && _level == "DEBUG") exitWith {};
|
||||
|
||||
// Build message
|
||||
private _text = format ["(%1) %2: %3", _component, _level, _msg];
|
||||
|
||||
// Send message
|
||||
switch (_location) do {
|
||||
case 0: {
|
||||
[QGVAR(log), [_text, _syschatEnabled]] call CFUNC(globalEvent);
|
||||
};
|
||||
|
||||
case 2: {
|
||||
[QGVAR(log), [_text, _syschatEnabled]] call CFUNC(serverEvent);
|
||||
|
||||
// Prevent double messages in local multiplayer
|
||||
if !(isServer) then {
|
||||
[QGVAR(log), [_text, _syschatEnabled]] call CFUNC(localEvent);
|
||||
};
|
||||
};
|
||||
|
||||
case 3: {
|
||||
if (isNull _target) then {
|
||||
[COMPONENT_NAME, "INFO", "Logging: No target was passed, using local machine instead", false] call forge_server_main_fnc_log;
|
||||
[QGVAR(log), [_text, _syschatEnabled]] call CFUNC(localEvent);
|
||||
} else {
|
||||
[QGVAR(log), [_text, _syschatEnabled], _target] call CFUNC(targetEvent);
|
||||
};
|
||||
};
|
||||
|
||||
default {
|
||||
[QGVAR(log), [_text, _syschatEnabled]] call CFUNC(localEvent);
|
||||
};
|
||||
};
|
30
addons/main/functions/fnc_writeRPT.sqf
Normal file
30
addons/main/functions/fnc_writeRPT.sqf
Normal file
@ -0,0 +1,30 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
/*
|
||||
Author:
|
||||
Malbryn
|
||||
|
||||
Description:
|
||||
Logs a message in the RPT log and displays it in-game (if the option is enabled).
|
||||
|
||||
Arguments:
|
||||
0: STRING - The message
|
||||
1: BOOLEAN - If the message should be displayed in-game via systemChat
|
||||
|
||||
Example:
|
||||
["Descriptive message", true] call MF_main_fnc_writeRPT
|
||||
|
||||
Returns:
|
||||
void
|
||||
*/
|
||||
|
||||
params ["_msg", "_syschatEnabled"];
|
||||
|
||||
private _text = format ["[SOF] %1", _msg];
|
||||
|
||||
[_text] call CFUNC(log);
|
||||
|
||||
// System chat
|
||||
if (hasInterface && _syschatEnabled) then {
|
||||
systemChat _text;
|
||||
};
|
16
addons/main/script_component.hpp
Normal file
16
addons/main/script_component.hpp
Normal file
@ -0,0 +1,16 @@
|
||||
#define COMPONENT main
|
||||
#define COMPONENT_BEAUTIFIED Main
|
||||
#include "script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
|
||||
#ifdef DEBUG_ENABLED_MAIN
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_SETTINGS_MAIN
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
|
||||
#endif
|
||||
|
||||
#include "script_macros.hpp"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user