UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
ModExtensionABI.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  UMF_ExtensionCallV1
 A callback-local value and its authorized object context. More...
struct  UMF_ExtensionReplyV1
 Host-owned output storage, zeroed before callback entry. More...
struct  UMF_ExtensionRegistrationV1
 An SDK contract and subscription owned by this session. More...
struct  UMF_ExtensionHostV1
 Host functions for a native extension session. More...
struct  UMF_ExtensionSessionV1
 Optional per-World teardown returned by the registration export. More...
struct  UMF_ExtensionCallV2
 A native SDK callback, with a separately authorized source view. More...
struct  UMF_ExtensionRegistrationV2
 A native SDK subscription with optional explicit ordering constraints. More...
struct  UMF_ExtensionSourceRegistrationV2
 A V2 subscription scoped to a Blueprint receiver. More...
struct  UMF_NativeString
 A borrowed UTF-8 string with an explicit byte count. More...
struct  UMF_NativeObjectHandle
 A revocable game view owned by an authorized caller context. More...
struct  UMF_NativeReflectionRequestV2
 Borrowed inputs to a Mod-owned reflection or archive operation. More...
struct  UMF_NativeReflectionReplyV2
 A host-owned buffer for reflection output. More...
struct  UMF_ExtensionHostV2
 The native SDK host interface for one World session. More...
struct  UMF_ExtensionSessionV2
 Notifications and teardown owned by the native library. More...

Typedefs

typedef enum UMF_ExtensionStatus UMF_ExtensionStatus
 Native extension status values.
typedef enum UMF_ExtensionStage UMF_ExtensionStage
 Stage numbers and bit flags used by registration.
typedef enum UMF_ExtensionOperation UMF_ExtensionOperation
 Capabilities requested by a registered handler.
typedef enum UMF_ExtensionAction UMF_ExtensionAction
 Decisions a callback may write into its reply.
typedef struct UMF_ExtensionCallV1 UMF_ExtensionCallV1
 A callback-local value and its authorized object context.
typedef struct UMF_ExtensionReplyV1 UMF_ExtensionReplyV1
 Host-owned output storage, zeroed before callback entry.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_ExtensionCallbackV1(uint64_t User, const UMF_ExtensionCallV1 *Call, UMF_ExtensionReplyV1 *Reply)
 Executes one Game Thread callback.
typedef struct UMF_ExtensionRegistrationV1 UMF_ExtensionRegistrationV1
 An SDK contract and subscription owned by this session.
typedef struct UMF_ExtensionHostV1 UMF_ExtensionHostV1
 Host functions for a native extension session.
typedef void(UMF_EXTENSION_CALL *) UMF_ExtensionCloseV1(uint64_t User)
 Called after all callback frames for this session have drained.
typedef struct UMF_ExtensionSessionV1 UMF_ExtensionSessionV1
 Optional per-World teardown returned by the registration export.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_ExtensionEntryV1(const UMF_ExtensionHostV1 *Host, uint64_t Session, UMF_ExtensionSessionV1 *Out)
 Registers the extension's World callbacks and returns its session teardown.
typedef struct UMF_ExtensionCallV2 UMF_ExtensionCallV2
 A native SDK callback, with a separately authorized source view.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_ExtensionCallbackV2(uint64_t User, const UMF_ExtensionCallV2 *Call, UMF_ExtensionReplyV1 *Reply)
 Executes one Game Thread callback using a borrowed call frame.
typedef struct UMF_ExtensionRegistrationV2 UMF_ExtensionRegistrationV2
 A native SDK subscription with optional explicit ordering constraints.
typedef struct UMF_ExtensionSourceRegistrationV2 UMF_ExtensionSourceRegistrationV2
 A V2 subscription scoped to a Blueprint receiver.
typedef struct UMF_NativeString UMF_NativeString
 A borrowed UTF-8 string with an explicit byte count.
typedef enum UMF_NativeLifecycle UMF_NativeLifecycle
 Lifecycle phases after successful registration and World preparation.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_NativeNotifyV2(uint64_t User, uint32_t Phase)
 Receives a lifecycle notification on the Game Thread.
typedef struct UMF_NativeObjectHandle UMF_NativeObjectHandle
 A revocable game view owned by an authorized caller context.
typedef enum UMF_NativeObjectOperation UMF_NativeObjectOperation
 Operations on game-defined object aliases.
typedef enum UMF_NativeReferenceOperation UMF_NativeReferenceOperation
 Validation and strong leases for game object handles.
typedef enum UMF_NativeReflectionOperation UMF_NativeReflectionOperation
 Operations on the native Mod's own objects and descriptors.
typedef struct UMF_NativeReflectionRequestV2 UMF_NativeReflectionRequestV2
 Borrowed inputs to a Mod-owned reflection or archive operation.
typedef struct UMF_NativeReflectionReplyV2 UMF_NativeReflectionReplyV2
 A host-owned buffer for reflection output.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_NativeReflectV2(uint64_t User, const UMF_NativeReflectionRequestV2 *Request, UMF_NativeReflectionReplyV2 *Reply)
 Inspects or changes objects owned by the supplied native session.
typedef struct UMF_ExtensionHostV2 UMF_ExtensionHostV2
 The native SDK host interface for one World session.
typedef struct UMF_ExtensionSessionV2 UMF_ExtensionSessionV2
 Notifications and teardown owned by the native library.
typedef uint32_t(UMF_EXTENSION_CALL *) UMF_ExtensionEntryV2(const UMF_ExtensionHostV2 *Host, uint64_t Session, UMF_ExtensionSessionV2 *Out)
 Registers a native SDK World session against a compatible host table.

Enumerations

enum  UMF_ExtensionStatus {
  UMF_ExtensionOk = 0 , UMF_ExtensionWrongThread = 1 , UMF_ExtensionExpired = 2 , UMF_ExtensionUnknown = 3 ,
  UMF_ExtensionSignature = 4 , UMF_ExtensionUnavailable = 5 , UMF_ExtensionScope = 6 , UMF_ExtensionDenied = 7 ,
  UMF_ExtensionReadOnly = 8 , UMF_ExtensionInvalid = 9 , UMF_ExtensionReentrant = 10 , UMF_ExtensionNotReady = 11 ,
  UMF_ExtensionConflict = 12 , UMF_ExtensionQueueFull = 13 , UMF_ExtensionCallbackFailed = 14
}
 Native extension status values. More...
enum  UMF_ExtensionStage { UMF_ExtensionPre = 0 , UMF_ExtensionPost = 1 , UMF_ExtensionEvent = 2 , UMF_ExtensionOn = 3 }
 Stage numbers and bit flags used by registration. More...
enum  UMF_ExtensionOperation {
  UMF_ExtensionObserve = 0 , UMF_ExtensionModifyInput = 1 , UMF_ExtensionCancel = 2 , UMF_ExtensionModifyResult = 4 ,
  UMF_ExtensionWrap = 8 , UMF_ExtensionReplace = 16
}
 Capabilities requested by a registered handler. More...
enum  UMF_ExtensionAction { UMF_ExtensionContinue = 0 , UMF_ExtensionWrite = 1 , UMF_ExtensionStop = 2 }
 Decisions a callback may write into its reply. More...
enum  UMF_NativeLifecycle { UMF_NativeLoadCompleted = 0 , UMF_NativeWorldReady = 1 }
 Lifecycle phases after successful registration and World preparation. More...
enum  UMF_NativeObjectOperation { UMF_NativeFindObject = 0 , UMF_NativeLoadClass = 1 , UMF_NativeCreateObject = 2 , UMF_NativeFindPlayerProvider = 3 }
 Operations on game-defined object aliases. More...
enum  UMF_NativeReferenceOperation { UMF_NativeValidateReference = 0 , UMF_NativeRetainReference = 1 , UMF_NativeReleaseReference = 2 }
 Validation and strong leases for game object handles. More...
enum  UMF_NativeReflectionOperation {
  UMF_NativeListObjects = 0 , UMF_NativeDescribeType = 1 , UMF_NativeReadProperty = 2 , UMF_NativeWriteProperty = 3 ,
  UMF_NativeInvokeFunction = 4 , UMF_NativeSaveObject = 5 , UMF_NativeRestoreObject = 6
}
 Operations on the native Mod's own objects and descriptors. More...

Enumeration Type Documentation

◆ UMF_ExtensionAction

Decisions a callback may write into its reply.

Enumerator
UMF_ExtensionContinue 

Keeps the current value.

UMF_ExtensionWrite 

Commits the supplied output value.

UMF_ExtensionStop 

Cancels the operation and returns the supplied result.

◆ UMF_ExtensionOperation

Capabilities requested by a registered handler.

Enumerator
UMF_ExtensionObserve 

Observes the current value.

UMF_ExtensionModifyInput 

Offers a complete replacement input.

UMF_ExtensionCancel 

Ends execution and supplies a cancellation result.

UMF_ExtensionModifyResult 

Offers a complete replacement result.

UMF_ExtensionWrap 

Runs the continuation once.

UMF_ExtensionReplace 

Provides the operation result.

◆ UMF_ExtensionStage

Stage numbers and bit flags used by registration.

Enumerator
UMF_ExtensionPre 

Runs before the original operation.

UMF_ExtensionPost 

Runs after successful execution.

UMF_ExtensionEvent 

Observes an event payload.

UMF_ExtensionOn 

Executes or wraps the original operation.

◆ UMF_ExtensionStatus

Native extension status values.

Enumerator
UMF_ExtensionOk 

Call succeeded.

UMF_ExtensionWrongThread 

The entry point requires the Game Thread.

UMF_ExtensionExpired 

The session, binding, or continuation has expired.

UMF_ExtensionUnknown 

The extension or object type is unavailable.

UMF_ExtensionSignature 

The descriptor does not match the generated contract.

UMF_ExtensionUnavailable 

The requested object cannot be used.

UMF_ExtensionScope 

The object or invocation belongs to another scope.

UMF_ExtensionDenied 

The host has not granted the requested capability.

UMF_ExtensionReadOnly 

The projected object grants read access.

UMF_ExtensionInvalid 

The input or callback reply is invalid.

UMF_ExtensionReentrant 

The operation or continuation was already entered.

UMF_ExtensionNotReady 

The World has not opened extension dispatch.

UMF_ExtensionConflict 

The requested subscription conflicts with the plan.

UMF_ExtensionQueueFull 

The World event queue reached its bound.

UMF_ExtensionCallbackFailed 

The callback returned a failure.

◆ UMF_NativeLifecycle

Lifecycle phases after successful registration and World preparation.

Enumerator
UMF_NativeLoadCompleted 

The native instance was registered successfully.

UMF_NativeWorldReady 

The World extension plan is ready.

◆ UMF_NativeObjectOperation

Operations on game-defined object aliases.

Enumerator
UMF_NativeFindObject 

Resolves the live object offered by an authorized alias.

UMF_NativeLoadClass 

Loads the approved class of an alias.

UMF_NativeCreateObject 

Constructs an object through an alias that grants creation.

UMF_NativeFindPlayerProvider 

Obtains the scope of an authorized local-player provider.

◆ UMF_NativeReferenceOperation

Validation and strong leases for game object handles.

Enumerator
UMF_NativeValidateReference 

Checks a view's caller, World scope and object lifetime.

UMF_NativeRetainReference 

Acquires a host-approved strong lease.

UMF_NativeReleaseReference 

Releases one previously acquired strong lease.

◆ UMF_NativeReflectionOperation

Operations on the native Mod's own objects and descriptors.

Enumerator
UMF_NativeListObjects 

Lists the session's live Mod object identities and types.

UMF_NativeDescribeType 

Describes the Mod type named or selected by the request.

UMF_NativeReadProperty 

Reads one declared property as a tagged value.

UMF_NativeWriteProperty 

Writes one declared property using a tagged value.

UMF_NativeInvokeFunction 

Invokes an explicitly reflected Mod function.

UMF_NativeSaveObject 

Encodes a versioned archive of Mod-owned property values.

UMF_NativeRestoreObject 

Validates and restores values from a Mod archive.