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

Commit 6519c35

Browse files
committed
Remove unnecessary delegate signatures
1 parent 9f2d0c4 commit 6519c35

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

Source/TrickyKeyringSystem/Public/LockComponent.h

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@
88

99
class UKeyType;
1010

11-
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnLockedSignature);
12-
13-
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnUnlockedSignature);
14-
15-
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnCantLockSignature);
16-
17-
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnCantUnlockSignature);
11+
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnLockChangedStateSignature);
1812

1913
/**
2014
* Controls locking/unlocking by a given key.
2115
*/
22-
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
16+
UCLASS(ClassGroup=(TrickyKeyring), meta=(BlueprintSpawnableComponent))
2317
class TRICKYKEYRINGSYSTEM_API ULockComponent : public UActorComponent
2418
{
2519
GENERATED_BODY()
@@ -29,19 +23,19 @@ class TRICKYKEYRINGSYSTEM_API ULockComponent : public UActorComponent
2923

3024
/** Called then the component was locked. */
3125
UPROPERTY(BlueprintAssignable)
32-
FOnLockedSignature OnLocked;
26+
FOnLockChangedStateSignature OnLocked;
3327

3428
/** Called then the component was unlocked. */
3529
UPROPERTY(BlueprintAssignable)
36-
FOnUnlockedSignature OnUnlocked;
30+
FOnLockChangedStateSignature OnUnlocked;
3731

3832
/** Called then the component can't be locked. */
3933
UPROPERTY(BlueprintAssignable)
40-
FOnCantLockSignature OnCantLocked;
34+
FOnLockChangedStateSignature OnCantLocked;
4135

4236
/** Called then the component can't be unlocked. */
4337
UPROPERTY(BlueprintAssignable)
44-
FOnCantUnlockSignature OnCantUnlocked;
38+
FOnLockChangedStateSignature OnCantUnlocked;
4539

4640
/** Toggles if the component is locked on begin play. */
4741
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="LockComponent")

0 commit comments

Comments
 (0)