UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
ModPackageExtensions.h
Go to the documentation of this file.
1// Copyright (c) 2026 Nelaric Contributors
3#pragma once
4
5#include "Containers/Array.h"
6#include "Containers/Set.h"
7#include "Containers/UnrealString.h"
8#include "UObject/SoftObjectPath.h"
9
10namespace Mod::Loader
11{
14{
15 FString Minimum;
16 FString Before;
17
18 MODLOADER_API bool Contains(const FString& Version) const;
19};
20
23{
24 FString ModId;
25 FVersionRange Versions;
26 bool bRequired = true;
27};
28
31{
32 FName Id;
33 FString Provider;
34 FName TypeId;
35 FString Signature;
36 FVersionRange Versions;
37 bool bRequired = true;
38};
39
42{
43 FName Id;
44 FName TypeId;
45 FString Signature;
46 FString Version;
47 FName Permission;
48 FName Patch;
49};
50
52enum class EContentAction : uint8
53{
57 Replace,
60};
61
64{
65 FName Slot;
66 FName Id;
68 FSoftObjectPath Asset;
69 int32 Priority = 0;
70};
71
82
85{
86 FName Id;
87 FName Anchor;
88 FName ConflictKey;
92 FSoftClassPath ActorClass;
94 FSoftClassPath ComponentClass;
96 FName DataId;
98 FSoftObjectPath DataAsset;
99 TArray<FName> After;
101 TArray<FName> RequiresServices;
103 float WaitSeconds = 0;
104 bool bRequired = true;
105};
106
109{
110 FName Id;
111 FString Signature;
112};
113
116{
117 TArray<FModDependency> Mods;
118 TArray<FServiceDependency> Services;
119 TArray<FServiceOffer> Provides;
120 TArray<FString> IncompatibleMods;
121 TSet<FName> RequiredGrants;
122 TArray<FExtensionDependency> Contracts;
123 TArray<FContentCandidate> Content;
124 TArray<FWorldPatch> Patches;
125 int32 SchemaVersion = 0;
126 bool bDeclared = false;
127};
128} // namespace Mod::Loader
EWorldPatchOperation
The effects supported at a game-defined World anchor.
Definition ModPackageExtensions.h:74
@ RegisterData
Registers a cooked data asset with the host.
Definition ModPackageExtensions.h:80
@ SpawnActor
Creates an Actor owned by the Patch.
Definition ModPackageExtensions.h:76
@ AttachComponent
Creates a scene component on the anchor's approved attachment.
Definition ModPackageExtensions.h:78
EContentAction
The operations supported by a game-defined content slot.
Definition ModPackageExtensions.h:53
@ Provide
Adds a logical content ID.
Definition ModPackageExtensions.h:55
@ Disable
Explicitly disables the ID.
Definition ModPackageExtensions.h:59
A candidate for one logical content ID.
Definition ModPackageExtensions.h:64
Pins a required Hook or Event to its generated signature.
Definition ModPackageExtensions.h:109
A package dependency resolved before extension registration.
Definition ModPackageExtensions.h:23
Verified declarations from the versioned package extension section.
Definition ModPackageExtensions.h:116
An exported service a mod declares that it will consume.
Definition ModPackageExtensions.h:31
A service advertised before the package contributes any executable code.
Definition ModPackageExtensions.h:42
Inclusive minimum and exclusive maximum version, when specified.
Definition ModPackageExtensions.h:14
One cooked effect and its dependencies at a game-owned anchor.
Definition ModPackageExtensions.h:85
TArray< FName > RequiresServices
Named, declared services that must be available before this Patch.
Definition ModPackageExtensions.h:101
FName DataId
Stable data key within this anchor.
Definition ModPackageExtensions.h:96
FSoftObjectPath DataAsset
Cooked data asset for a registration.
Definition ModPackageExtensions.h:98
float WaitSeconds
Seconds an optional Patch may wait for its first anchor.
Definition ModPackageExtensions.h:103
FSoftClassPath ComponentClass
Cooked scene component class for an attachment.
Definition ModPackageExtensions.h:94
FSoftClassPath ActorClass
Cooked Actor class for a spawn.
Definition ModPackageExtensions.h:92
EWorldPatchOperation Operation
Type of effect requested.
Definition ModPackageExtensions.h:90