protocol fixes (still not working)

This commit is contained in:
Brandon Thomas
2021-02-19 06:04:13 -05:00
parent 9c5b8fe57f
commit 8c30b71bbc
2 changed files with 16 additions and 5 deletions
@@ -190,13 +190,19 @@ void AEventSourceActor::OnMessageSent(const FString& Message)
bool result = Message.Split(TEXT("|"), &channel, &payload);
if (!result) {
UE_LOG(EventSourceLog, Log, TEXT("Could not split"));
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Red, "Could not split");
return;
}
if (!delegateSubscriptions.Contains(channel)) {
UE_LOG(EventSourceLog, Log, TEXT("No delegate"));
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Red, "No delegate");
return;
}
UE_LOG(EventSourceLog, Log, TEXT("Executing delegate"));
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Red, "Executing delegate");
delegateSubscriptions[channel].Execute(channel, payload);
}