mirror of
https://github.com/storytold/EventCenterPlugin.git
synced 2026-10-11 21:39:57 +00:00
protocol fixes (still not working)
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user