UnrealModFramework
Mod framework API
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"
8UCLASS(Blueprintable)
9class COMMON_API AModTestPatchActor : public AActor
10{
11 GENERATED_BODY()
12public:
15
17 virtual void PostActorCreated() override;
18
20 virtual void Destroyed() override;
21};
22
24UCLASS(BlueprintType)
25class COMMON_API UModTestPatchData : public UDataAsset
26{
27 GENERATED_BODY()
28public:
30 UPROPERTY(EditDefaultsOnly, Category = "Test") int32 Score = 37;
31};
virtual void PostActorCreated() override
Records the actor's path after creation.
AModTestPatchActor()
Creates the root scene component for the patch actor.
virtual void Destroyed() override
Records the actor's path when it is destroyed.
Data asset used to observe property changes made by a patch.
Definition ModTestPatchObjects.h:26
int32 Score
Score read by the test after the patch is applied or removed.
Definition ModTestPatchObjects.h:30