-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge pull request #5 from TheCreators/4-add-basic-multiplayer
✨ Add basic multiplayer
- Loading branch information
Showing
83 changed files
with
7,975 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"FileVersion": 3, | ||
"FriendlyName": "Advanced Sessions", | ||
"Version": 5.1, | ||
"VersionName": "5.1", | ||
"Description": "Adds new blueprint functions to handle more advanced session operations.", | ||
"Category": "Advanced Sessions Plugin", | ||
"CreatedBy": "Joshua Statzer", | ||
"CreatedByURL": "N/A", | ||
"Modules": [ | ||
{ | ||
"Name": "AdvancedSessions", | ||
"Type": "Runtime", | ||
"LoadingPhase": "PreDefault" | ||
} | ||
], | ||
"Plugins": [ | ||
{ | ||
"Name": "OnlineSubsystem", | ||
"Enabled": true | ||
}, | ||
{ | ||
"Name": "OnlineSubsystemUtils", | ||
"Enabled": true | ||
} | ||
], | ||
"DocsURL": "", | ||
"MarketplaceURL": "", | ||
"SupportURL": "", | ||
"CanContainContent": false, | ||
"IsBetaVersion": false, | ||
"IsExperimentalVersion": false, | ||
"Installed": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[FilterPlugin] | ||
; This section lists additional files which will be packaged along with your plugin. Paths should be listed relative to the root plugin directory, and | ||
; may include "...", "*", and "?" wildcards to match directories, files, and individual characters respectively. | ||
; | ||
; Examples: | ||
; /README.txt | ||
; /Extras/... | ||
; /Binaries/ThirdParty/*.dll |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
Plugins/AdvancedSessions/Source/AdvancedSessions/AdvancedSessions.Build.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using UnrealBuildTool; | ||
using System.IO; | ||
|
||
public class AdvancedSessions : ModuleRules | ||
{ | ||
public AdvancedSessions(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; | ||
//bEnforceIWYU = true; | ||
|
||
PublicDefinitions.Add("WITH_ADVANCED_SESSIONS=1"); | ||
|
||
// PrivateIncludePaths.AddRange(new string[] { "AdvancedSessions/Private"/*, "OnlineSubsystemSteam/Private"*/ }); | ||
// PublicIncludePaths.AddRange(new string[] { "AdvancedSessions/Public" }); | ||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "CoreUObject", "OnlineSubsystemUtils", "Networking", "Sockets"/*"Voice", "OnlineSubsystemSteam"*/ }); | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
Plugins/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedExternalUILibrary.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
#include "CoreMinimal.h" | ||
#include "BlueprintDataDefinitions.h" | ||
#include "Kismet/BlueprintFunctionLibrary.h" | ||
#include "Online.h" | ||
#include "Engine/LocalPlayer.h" | ||
#include "OnlineSubsystem.h" | ||
#include "BlueprintDataDefinitions.h" | ||
//#include "OnlineFriendsInterface.h" | ||
//#include "OnlineUserInterface.h" | ||
//#include "OnlineMessageInterface.h" | ||
//#include "OnlinePresenceInterface.h" | ||
//#include "Engine/GameInstance.h" | ||
#include "Interfaces/OnlineSessionInterface.h" | ||
|
||
//#include "UObjectIterator.h" | ||
|
||
#include "AdvancedExternalUILibrary.generated.h" | ||
|
||
|
||
//General Advanced Sessions Log | ||
DECLARE_LOG_CATEGORY_EXTERN(AdvancedExternalUILog, Log, All); | ||
|
||
UCLASS() | ||
class UAdvancedExternalUILibrary : public UBlueprintFunctionLibrary | ||
{ | ||
GENERATED_BODY() | ||
public: | ||
|
||
//********* External UI Functions *************// | ||
|
||
// Show the UI that handles the Friends list | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", WorldContext = "WorldContextObject")) | ||
static void ShowFriendsUI(UObject* WorldContextObject, APlayerController *PlayerController, EBlueprintResultSwitch &Result); | ||
|
||
// Show the UI that handles inviting people to your game | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", WorldContext = "WorldContextObject")) | ||
static void ShowInviteUI(UObject* WorldContextObject, APlayerController *PlayerController, EBlueprintResultSwitch &Result); | ||
|
||
// Show the UI that shows the leaderboard (doesn't work with steam) | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", WorldContext = "WorldContextObject")) | ||
static void ShowLeaderBoardUI(UObject* WorldContextObject, FString LeaderboardName, EBlueprintResultSwitch &Result); | ||
|
||
// Show the UI that shows a web URL | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", AutoCreateRefTerm = "AllowedDomains", WorldContext = "WorldContextObject")) | ||
static void ShowWebURLUI(UObject* WorldContextObject, FString URLToShow, EBlueprintResultSwitch &Result, TArray<FString>& AllowedDomains, bool bEmbedded = false , bool bShowBackground = false, bool bShowCloseButton = false, int32 OffsetX = 0, int32 OffsetY = 0, int32 SizeX = 0, int32 SizeY = 0); | ||
|
||
// Show the UI that shows a web URL | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (WorldContext = "WorldContextObject")) | ||
static void CloseWebURLUI(UObject* WorldContextObject); | ||
|
||
|
||
// Show the UI that shows the profile of a uniquenetid | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", WorldContext = "WorldContextObject")) | ||
static void ShowProfileUI(UObject* WorldContextObject, const FBPUniqueNetId PlayerViewingProfile, const FBPUniqueNetId PlayerToViewProfileOf, EBlueprintResultSwitch &Result); | ||
|
||
// Show the UI that shows the account upgrade UI (doesn't work with steam) | ||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedExternalUI", meta = (ExpandEnumAsExecs = "Result", WorldContext = "WorldContextObject")) | ||
static void ShowAccountUpgradeUI(UObject* WorldContextObject, const FBPUniqueNetId PlayerRequestingAccountUpgradeUI, EBlueprintResultSwitch &Result); | ||
|
||
}; |
Oops, something went wrong.