Skip to content

Timers and Delegates#1

Open
norab7 wants to merge 4 commits into
BenVlodgi:mainfrom
norab7:main
Open

Timers and Delegates#1
norab7 wants to merge 4 commits into
BenVlodgi:mainfrom
norab7:main

Conversation

@norab7

@norab7 norab7 commented Jan 23, 2024

Copy link
Copy Markdown
  • Timers & Delays
  • Blueprint Dispatchers
  • Basic Actions
  • Improved End Logic flow
  • ActionUID

- Timers & Delays
- Blueprint Dispatchers
- Basic Actions
- Improved Logic flow
- ActionUID
- JustAction actor
Comment thread Source/SimpleActions/Private/SimpleAction.cpp Outdated
Comment thread Source/SimpleActions/Public/SimpleAction.h
Comment thread Source/SimpleActions/Public/SimpleAction.h
Comment thread Source/SimpleActions/Public/SimpleAction.h
Comment thread Source/SimpleActions/Public/Structs/SimpleActionList.h
}
}

void USimpleAction::StartAction_Bound(AActor* NewActionActor, AActor* NewInstigator, FOnActionStartedDelegate Started, FOnActionInterruptedDelegate Interrupted, FOnActionEndedDelegate Ended, FOnActionCompleteDelegate Complete, FOnActionFailedDelegate Failed) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm iffy about this pattern being in here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can figure out another method I'm all ears.

Comment thread Source/SimpleActions/Private/SimpleAction.cpp Outdated
Comment thread Source/SimpleActions/Private/SimpleAction.cpp Outdated
Comment thread Source/SimpleActions/Private/SimpleAction.cpp Outdated
Comment thread SimpleActions.uplugin Outdated
@BenVlodgi

Copy link
Copy Markdown
Owner

Can you show the difference between how the properties for an action show up if their categories are collapsed or not?

Comment thread Source/SimpleActions/Public/SimpleAction.h Outdated

@BenVlodgi BenVlodgi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for the change to finishing dispatcher to use enum/tags instead of splitting it.

I also see some egyptian brackets in there.

return nullptr;
}

FString USimpleAction::GetActionUID()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Store as FGuid

Comment thread Source/SimpleActions/Public/SimpleAction.h
TArray<TObjectPtr<USimpleAction>> Actions;

FSimpleActionList() : FSimpleActionList(TArray<USimpleAction*>()) {}
FSimpleActionList(TArray<USimpleAction*> Actions) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the constructor is only called for making a new object. the new was to avoid name conflicting, might not be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants