FDelegateHandle UEdGraph::AddPropertyChangedNotifier(const FOnPropertyChanged::FDelegate& InDelegate ) { #if WITH_EDITORONLY_DATA return PropertyChangedNotifiers.Add(InDelegate); #else return FDelegateHandle(); #endif }
FDelegateHandle FOnlineNotificationHandler::AddSystemNotificationBinding_Handle(FString NotificationType, const FOnlineNotificationBinding& NewBinding) { if (!NewBinding.NotificationDelegate.IsBound()) { UE_LOG(LogOnline, Error, TEXT("Adding empty notification binding for type %s"), *NotificationType); return FDelegateHandle(); } TArray<FOnlineNotificationBinding>& FoundBindings = SystemBindingMap.FindOrAdd(NotificationType); FoundBindings.Add(NewBinding); return FoundBindings.Last().NotificationDelegate.GetHandle(); }
FDelegateHandle FOnlineNotificationHandler::AddPlayerNotificationBinding_Handle(const FUniqueNetId& PlayerId, FString NotificationType, const FOnlineNotificationBinding& NewBinding) { if (!NewBinding.NotificationDelegate.IsBound()) { UE_LOG(LogOnline, Error, TEXT("Adding empty notification binding for type %s"), *NotificationType); return FDelegateHandle(); } NotificationTypeBindingsMap& FoundPlayerBindings = PlayerBindingMap.FindOrAdd(PlayerId.ToString()); TArray<FOnlineNotificationBinding>& FoundPlayerTypeBindings = FoundPlayerBindings.FindOrAdd(NotificationType); FoundPlayerTypeBindings.Add(NewBinding); return FoundPlayerTypeBindings.Last().NotificationDelegate.GetHandle(); }
FDelegateHandle FDefaultSourceControlProvider::RegisterSourceControlStateChanged_Handle( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged ) { return FDelegateHandle(); }