You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- removed dummy UClasses (no longer needed) - removed file header comments (not used) - removed duplicated function documentation in cpp files - documentation cleanup, punctuation, spelling etc. - pragma once include guards (now work on all platforms) - relative public includes (are auto-discovered by UBT) - fixed too many/too few line breaks - deleted empty files - missing override - NULL to nullptr [CL 2305058 by Max Preussner in Main branch]
85 lines
2.0 KiB
C++
85 lines
2.0 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "FriendsAndChatPrivatePCH.h"
|
|
|
|
|
|
/**
|
|
* Implements the FriendsAndChat module.
|
|
*/
|
|
class FFriendsAndChatModule
|
|
: public IFriendsAndChatModule
|
|
{
|
|
public:
|
|
|
|
// IFriendsAndChatModule interface
|
|
|
|
virtual void Init( bool bAllowJoinGame ) override
|
|
{
|
|
FFriendsAndChatManager::Get()->Init( FriendsListNotificationDelegate );
|
|
FFriendsMessageManager::Get()->Init( FriendsListNotificationDelegate, bAllowJoinGame );
|
|
}
|
|
|
|
virtual void SetUnhandledNotification( TSharedRef< FUniqueNetId > NetID ) override
|
|
{
|
|
FFriendsMessageManager::Get()->SetUnhandledNotification( NetID );
|
|
}
|
|
|
|
virtual FOnFriendsNotification& OnFriendsListNotification() override
|
|
{
|
|
return FriendsListNotificationDelegate;
|
|
}
|
|
|
|
virtual void CreateFriendsListWidget( TSharedPtr<const SWidget> ParentWidget, const FFriendsAndChatStyle* InStyle ) override
|
|
{
|
|
FFriendsAndChatManager::Get()->GenerateFriendsWindow( ParentWidget, InStyle );
|
|
}
|
|
|
|
virtual TSharedPtr< SWidget > GenerateFriendsListWidget( const struct FFriendsAndChatStyle* InStyle ) override
|
|
{
|
|
return FFriendsAndChatManager::Get()->GenerateFriendsListWidget( InStyle );
|
|
}
|
|
|
|
virtual void SetInSession( bool bInSession ) override
|
|
{
|
|
FFriendsAndChatManager::Get()->SetInSession( bInSession );
|
|
}
|
|
|
|
virtual void ClearGameInvites() override
|
|
{
|
|
FFriendsMessageManager::Get()->ClearGameInvites();
|
|
}
|
|
|
|
virtual int32 GetFriendCount() override
|
|
{
|
|
return FFriendsAndChatManager::Get()->GetFriendCount();
|
|
}
|
|
|
|
virtual void Logout() override
|
|
{
|
|
FFriendsAndChatManager::Get()->Logout();
|
|
FFriendsMessageManager::Get()->Logout();
|
|
}
|
|
|
|
public:
|
|
|
|
// IModuleInterface interface
|
|
|
|
virtual void StartupModule() override
|
|
{
|
|
FFriendsAndChatManager::Get();
|
|
}
|
|
|
|
virtual void ShutdownModule() override
|
|
{
|
|
FFriendsAndChatManager::Shutdown();
|
|
}
|
|
|
|
private:
|
|
|
|
/** Holds the Notification delegate. */
|
|
FOnFriendsNotification FriendsListNotificationDelegate;
|
|
};
|
|
|
|
|
|
IMPLEMENT_MODULE( FFriendsAndChatModule, FriendsAndChat );
|