You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix client and server module definition typo. [FYI] Marc.Audy [CL 24085601 by eric knapik in ue5-main branch]
35 lines
889 B
C++
35 lines
889 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "IConcertServerModule.h"
|
|
#include "IConcertTransportModule.h"
|
|
|
|
#include "ConcertServer.h"
|
|
|
|
/**
|
|
* Implements the Concert Client module
|
|
*/
|
|
class FConcertServerModule : public IConcertServerModule
|
|
{
|
|
public:
|
|
|
|
virtual void StartupModule() override
|
|
{
|
|
EndpointProvider = IConcertTransportModule::Get().CreateEndpointProvider();
|
|
}
|
|
|
|
virtual void ShutdownModule() override
|
|
{
|
|
EndpointProvider.Reset();
|
|
}
|
|
|
|
virtual IConcertServerRef CreateServer(const FString& InRole, const FConcertSessionFilter& InAutoArchiveSessionFilter, IConcertServerEventSink* InEventSink) override
|
|
{
|
|
return MakeShared<FConcertServer, ESPMode::ThreadSafe>(InRole, InAutoArchiveSessionFilter, InEventSink, EndpointProvider);
|
|
}
|
|
|
|
private:
|
|
TSharedPtr<IConcertEndpointProvider> EndpointProvider;
|
|
};
|
|
|
|
IMPLEMENT_MODULE(FConcertServerModule, ConcertServer)
|