UnrealModFramework
Mod framework API
Toggle main menu visibility
Loading...
Searching...
No Matches
ModTestPatchObjects.h
Go to the documentation of this file.
1
// Copyright (c) 2026 Nelaric Contributors
3
#pragma once
4
#include "Engine/DataAsset.h"
5
#include "GameFramework/Actor.h"
6
#include "ModTestPatchObjects.generated.h"
8
UCLASS(Blueprintable)
9
class COMMON_API
AModTestPatchActor
: public AActor
10
{
11
GENERATED_BODY()
12
public
:
14
AModTestPatchActor
();
15
17
virtual
void
PostActorCreated
()
override
;
18
20
virtual
void
Destroyed
()
override
;
21
};
22
24
UCLASS(BlueprintType)
25
class COMMON_API
UModTestPatchData
: public UDataAsset
26
{
27
GENERATED_BODY()
28
public
:
30
UPROPERTY(EditDefaultsOnly, Category =
"Test"
) int32
Score
= 37;
31
};
AModTestPatchActor::PostActorCreated
virtual void PostActorCreated() override
Records the actor's path after creation.
AModTestPatchActor::AModTestPatchActor
AModTestPatchActor()
Creates the root scene component for the patch actor.
AModTestPatchActor::Destroyed
virtual void Destroyed() override
Records the actor's path when it is destroyed.
UModTestPatchData
Data asset used to observe property changes made by a patch.
Definition
ModTestPatchObjects.h:26
UModTestPatchData::Score
int32 Score
Score read by the test after the patch is applied or removed.
Definition
ModTestPatchObjects.h:30
TestSuite
Source
Common
Public
ModTestPatchObjects.h
Generated by
1.18.0