|
UnrealModFramework
Mod framework API
|
Source markers for Mod API, event, and hook declarations. More...
Go to the source code of this file.
Macros | |
| #define | MOD_EXPORT_API(...) |
| Marks a function as a Mod API declaration. | |
| #define | MOD_EXPORT_EVENT(...) |
| Marks an event source or signature as a Mod event declaration. | |
| #define | MOD_SOURCE_FAILURE(Name, Code, Value) |
| Marks a business failure with its native return value. | |
| #define | MOD_EXPORT_HOOK(...) |
| Marks a method for generated Pre, On and Post dispatch. | |
Functions | |
| template<typename T> | |
| constexpr T | Mod::ExportMetadata::SourceFailure (const char *, unsigned int Code, T Value) noexcept |
| Returns the native value and records the explicit business error. | |
Source markers for Mod API, event, and hook declarations.
The export tools read API and Event metadata and generate Hook dispatch from the marked method. A source failure also reports its error to the active generated native call. Use explicit Unreal reflection macros when reflection is required.
| #define MOD_EXPORT_API | ( | ... | ) |
Marks a function as a Mod API declaration.
| ... | Metadata tokens reserved for the export generator. |
| #define MOD_EXPORT_EVENT | ( | ... | ) |
Marks an event source or signature as a Mod event declaration.
| ... | Metadata tokens reserved for the export generator. |
| #define MOD_EXPORT_HOOK | ( | ... | ) |
Marks a method for generated Pre, On and Post dispatch.
| ... | NoPre, NoOn, NoPost, or a CompatibleNames list. |
| #define MOD_SOURCE_FAILURE | ( | Name, | |
| Code, | |||
| Value ) |
Marks a business failure with its native return value.
| Name | Stable, uppercase MOD_ERROR_* name published in the SDK. |
| Code | Fixed numeric code in the Business domain. |
| Value | Native failure value returned from the API. |