Gothic API is a collection of ZenGine headers with memory addresses for use in Union API plugins. It contains separate headers for:
- Gothic I (
Gothic_I_Classic) - Gothic Sequel (
Gothic_I_Addon) - Gothic II (Classic) (
Gothic_II_Classic) - Gothic II Night of the Raven (
Gothic_II_Addon)
Documentation is available on Union Framework Docs.
Gothic API is built using CMake and requires C++17 or later to compile. The recommended way to build is to use Visual Studio 2022 with CMake support enabled.
To include Gothic API in your project, you need to get its source using git submodule or CMake's FetchContent module.
If you are using git submodule, run the following command in your project root:
git submodule add https://gitlab.com/union-framework/gothic-api.gitThis will add Gothic API as a submodule in your project. You can then include it in your CMake project by adding the following lines to your CMakeLists.txt:
add_subdirectory(union-api)If you are using CMake's FetchContent, add the following lines to your CMakeLists.txt:
include(FetchContent)
FetchContent_Declare(
gothic-api
GIT_REPOSITORY https://gitlab.com/union-framework/gothic-api.git
GIT_TAG main
)
FetchContent_MakeAvailable(gothic-api)After including Gothic API, you can link it to your target. For example, if your target is your_target, you can add the following line to your CMakeLists.txt:
target_link_libraries(your_target PRIVATE gothic_api)Community-driven support is provided on Gothic Modding Community Discord.
If you have found a bug, please create an issue with a detailed description and your environment.
Gothic API is licensed under BSD 3-Clause.