Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit ef4397a

Browse files
committed
Remove unnecessary delegates
1 parent f6af6c4 commit ef4397a

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Source/TrickyKeyringSystem/Public/KeyringComponent.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
#include "Components/ActorComponent.h"
88
#include "KeyringComponent.generated.h"
99

10-
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnKeyAddedSignature, UKeyType*, Key);
11-
12-
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnKeyUsedSignature, UKeyType*, Key);
13-
14-
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnKeyRemovedSignature, UKeyType*, Key);
10+
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnKeyActionPerformedSignature, UKeyType*, Key);
1511

1612
/**
1713
* A component which manages keys the player got.
@@ -28,19 +24,19 @@ class TRICKYKEYRINGSYSTEM_API UKeyringComponent : public UActorComponent
2824
* Called when the key was successfully added to the keyring.
2925
*/
3026
UPROPERTY(BlueprintAssignable, Category="KeyringSystem")
31-
FOnKeyAddedSignature OnKeyAdded;
27+
FOnKeyActionPerformedSignature OnKeyAdded;
3228

3329
/**
3430
* Called when the key was successfully removed from the keyring.
3531
*/
3632
UPROPERTY(BlueprintAssignable, Category="KeyringSystem")
37-
FOnKeyUsedSignature OnKeyUsed;
33+
FOnKeyActionPerformedSignature OnKeyUsed;
3834

3935
/**
4036
* Called when the key was successfully used.
4137
*/
4238
UPROPERTY(BlueprintAssignable, Category="KeyringSystem")
43-
FOnKeyRemovedSignature OnKeyRemoved;
39+
FOnKeyActionPerformedSignature OnKeyRemoved;
4440

4541
/**
4642
* Adds a key of a given class to the keyring.

0 commit comments

Comments
 (0)