++
This commit is contained in:
@ -104,6 +104,7 @@ bEnabled=true
|
||||
SteamDevAppId=480
|
||||
bInitServerOnClient=true
|
||||
bUseSteamNetworking=true
|
||||
bEnableOverlayNotifications=false
|
||||
|
||||
[/Script/OnlineSubsystemSteam.SteamNetDriver]
|
||||
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -81,7 +81,6 @@ void UChineseFriendsGameInstance::Init()
|
||||
// 遍历本地玩家TArray只有在为其分配了玩家时才有效,大多数在线接口也不支持
|
||||
// 多次登录(例如:Steam)
|
||||
SessionInviteAcceptedDelegateHandle = SessionInterface->AddOnSessionUserInviteAcceptedDelegate_Handle(SessionInviteAcceptedDelegate);
|
||||
|
||||
SessionInviteReceivedDelegateHandle = SessionInterface->AddOnSessionInviteReceivedDelegate_Handle(SessionInviteReceivedDelegate);
|
||||
}
|
||||
else
|
||||
@ -156,7 +155,6 @@ void UChineseFriendsGameInstance::OnPlayerLoginStatusChangedMaster(int32 PlayerN
|
||||
|
||||
void UChineseFriendsGameInstance::OnPlayerLoginChangedMaster(int32 PlayerNum)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, TEXT("登录变更11111111111111"));
|
||||
OnPlayerLoginChanged(PlayerNum);
|
||||
|
||||
if (bCallIdentityInterfaceEventsOnPlayerControllers)
|
||||
@ -180,7 +178,6 @@ void UChineseFriendsGameInstance::OnPlayerLoginChangedMaster(int32 PlayerNum)
|
||||
|
||||
void UChineseFriendsGameInstance::OnPlayerTalkingStateChangedMaster(TSharedRef<const FUniqueNetId> PlayerId, bool bIsTalking)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, TEXT("玩家登录状态改变11111111111111"));
|
||||
FBPUniqueNetId PlayerTalking;
|
||||
PlayerTalking.SetUniqueNetId(PlayerId);
|
||||
OnPlayerTalkingStateChanged(PlayerTalking, bIsTalking);
|
||||
@ -211,7 +208,6 @@ void UChineseFriendsGameInstance::OnPlayerTalkingStateChangedMaster(TSharedRef<c
|
||||
|
||||
void UChineseFriendsGameInstance::OnSessionInviteReceivedMaster(const FUniqueNetId & PersonInvited, const FUniqueNetId & PersonInviting, const FString& AppId, const FOnlineSessionSearchResult& SessionToJoin)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, TEXT("收到邀请11111111111111"));
|
||||
if (SessionToJoin.IsValid())
|
||||
{
|
||||
FBlueprintSessionResult BluePrintResult;
|
||||
@ -249,7 +245,6 @@ void UChineseFriendsGameInstance::OnSessionInviteReceivedMaster(const FUniqueNet
|
||||
//Run the Event specific to the actor, if the actor has the interface, otherwise ignore
|
||||
if (Player->GetClass()->ImplementsInterface(UChineseFriendsInterface::StaticClass()))
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, TEXT("收到邀请·············"));
|
||||
IChineseFriendsInterface::Execute_OnSessionInviteReceived(Player, PInviting, BluePrintResult);
|
||||
}
|
||||
}
|
||||
@ -266,7 +261,6 @@ void UChineseFriendsGameInstance::OnSessionInviteReceivedMaster(const FUniqueNet
|
||||
|
||||
void UChineseFriendsGameInstance::OnSessionInviteAcceptedMaster(const bool bWasSuccessful, int32 LocalPlayer, TSharedPtr<const FUniqueNetId> PersonInvited, const FOnlineSessionSearchResult& SessionToJoin)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Red, TEXT("同意邀请11111111111111"));
|
||||
if (bWasSuccessful)
|
||||
{
|
||||
if (SessionToJoin.IsValid())
|
||||
|
||||
Reference in New Issue
Block a user