UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
ModExtension.h File Reference
#include "ModAPIBlueprint.h"
#include "ModExtensionPayload.h"
#include "Templates/Function.h"
#include "UObject/ObjectKey.h"
#include "UObject/SoftObjectPath.h"
#include "UObject/StrongObjectPtr.h"
#include <type_traits>

Go to the source code of this file.

Classes

struct  Mod::Extension::FDefinition
 Stable definition and policy emitted by the export generator. More...
struct  Mod::Extension::FOrder
 How to order this registration relative to other participating Mods. More...
struct  Mod::Extension::THookResult< T >
 Status and complete result of a generated Hook call. More...
struct  Mod::Extension::TCoreResult< T >
 Result of the host's original operation. More...
struct  Mod::Extension::THookDecision< T >
 A handler's decision. Writes and cancellation require the declared grant. More...
struct  Mod::Extension::THandlerCalls< T, TContext >
 Typed callbacks stored by a resolved scalar handler. More...
struct  Mod::Extension::FHandler
 One resolved handler bound to its original owner and exact signature. More...
struct  Mod::Extension::FSubscription
 Revocation identity, valid only for the issuing World generation. More...
class  Mod::Extension::FChannel
 Owns the staged and published handlers for one generated extension. More...
struct  Mod::Extension::FEndpoint
 A cached link from a host call site to the current World's channel. More...
class  Mod::Extension::FGeneratedRegistration
 Installs generated definitions in a World before it can become ready. More...

Typedefs

using Mod::Extension::FHookResult = THookResult<float>
 Float Hook result used by the original extension contract.
using Mod::Extension::FCoreResult = TCoreResult<float>
 Float Core result used by the original extension contract.
using Mod::Extension::FHookDecision = THookDecision<float>
 Float handler decision used by the original extension contract.
template<class T>
using Mod::Extension::TNext = TFunction<TCoreResult<T>(T)>
 A copyable continuation, valid only during its wrapping callback.

Enumerations

enum class  Mod::Extension::EScalar : uint8 {
  Float , Double , Int32 , Int64 ,
  Bool , Byte , Projected
}
 By-value scalar formats shared by generated World contracts. More...
enum class  Mod::Extension::EKind : uint8 { Hook , Event }
 Declaration kinds used by generated World extensions. More...
enum class  Mod::Extension::EStage : uint8 { Pre , Post , Event , On }
 The synchronous stages at which Mods can participate. More...
enum class  Mod::Extension::EOperation : uint8 {
  None = 0 , ModifyInputs = 1 << 0 , Cancel = 1 << 1 , ModifyResult = 1 << 2 ,
  Wrap = 1 << 3 , Replace = 1 << 4
}
 Operations the host can grant for an individual Hook. More...

Functions

template<class T>
constexpr EScalar Mod::Extension::ScalarType ()
 Gets the fixed format supported for the given UE scalar type.

Enumeration Type Documentation

◆ EKind

enum class Mod::Extension::EKind : uint8
strong

Declaration kinds used by generated World extensions.

Enumerator
Hook 

Surrounds a host operation.

Event 

Publishes a gameplay fact.

◆ EOperation

enum class Mod::Extension::EOperation : uint8
strong

Operations the host can grant for an individual Hook.

Enumerator
None 

Observation only.

ModifyInputs 

Replaces the next input.

Cancel 

Returns a cancellation result.

ModifyResult 

Replaces the returned value.

Wrap 

Wraps the original operation using a synchronous continuation.

Replace 

Supplies the sole Core replacement.

◆ EScalar

enum class Mod::Extension::EScalar : uint8
strong

By-value scalar formats shared by generated World contracts.

Enumerator
Float 

IEEE single precision.

Double 

IEEE double precision.

Int32 

Signed 32-bit integer.

Int64 

Signed 64-bit integer.

Bool 

Boolean.

Byte 

Unsigned byte.

Projected 

Reflected value or read-only object projection.

◆ EStage

enum class Mod::Extension::EStage : uint8
strong

The synchronous stages at which Mods can participate.

Enumerator
Pre 

Before original execution.

Post 

After successful execution.

Event 

A read-only notification.

On 

Wraps or replaces the host operation.