Add new plugins, refactor exp, introduce stat forge to replace GAS
This commit is contained in:
39
Plugins/SUDS/Source/SUDSTest/Private/TestEventSub.h
Normal file
39
Plugins/SUDS/Source/SUDSTest/Private/TestEventSub.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "SUDSValue.h"
|
||||
#include "UObject/Object.h"
|
||||
#include "TestEventSub.generated.h"
|
||||
|
||||
class USUDSDialogue;
|
||||
UCLASS()
|
||||
class SUDSTEST_API UTestEventSub : public UObject
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
void Init(USUDSDialogue* Dlg);
|
||||
|
||||
struct FEventRecord
|
||||
{
|
||||
FName Name;
|
||||
TArray<FSUDSValue> Args;
|
||||
};
|
||||
struct FSetVarRecord
|
||||
{
|
||||
FName Name;
|
||||
FSUDSValue Value;
|
||||
bool bFromScript;
|
||||
};
|
||||
|
||||
TArray<FEventRecord> EventRecords;
|
||||
TArray<FSetVarRecord> SetVarRecords;
|
||||
|
||||
UFUNCTION()
|
||||
void OnEvent(USUDSDialogue* Dlg, FName EventName, const TArray<FSUDSValue>& Args);
|
||||
|
||||
UFUNCTION()
|
||||
void OnVariableChanged(USUDSDialogue* Dlg, FName VarName, const FSUDSValue& Value, bool bFromScript);
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user