mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-23 16:34:07 +00:00
4.20 update, working
Former-commit-id: b4d3b7358c168e4e34576b001d18c0cc3b5d8c59
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"FileVersion" : 3,
|
"FileVersion" : 3,
|
||||||
|
|
||||||
"FriendlyName" : "Advanced Sessions",
|
"FriendlyName" : "Advanced Sessions",
|
||||||
"Version" : 4.17,
|
"Version" : 4.20,
|
||||||
"VersionName": "4.17",
|
"VersionName": "4.20",
|
||||||
"Description" : "Adds new blueprint functions to handle more advanced session operations.",
|
"Description" : "Adds new blueprint functions to handle more advanced session operations.",
|
||||||
"Category" : "Advanced Sessions Plugin",
|
"Category" : "Advanced Sessions Plugin",
|
||||||
"CreatedBy" : "Joshua Statzer",
|
"CreatedBy" : "Joshua Statzer",
|
||||||
|
@@ -10,8 +10,8 @@ public class AdvancedSessions : ModuleRules
|
|||||||
|
|
||||||
PublicDefinitions.Add("WITH_ADVANCED_SESSIONS=1");
|
PublicDefinitions.Add("WITH_ADVANCED_SESSIONS=1");
|
||||||
|
|
||||||
PrivateIncludePaths.AddRange(new string[] { "AdvancedSessions/Private"/*, "OnlineSubsystemSteam/Private"*/ });
|
// PrivateIncludePaths.AddRange(new string[] { "AdvancedSessions/Private"/*, "OnlineSubsystemSteam/Private"*/ });
|
||||||
PublicIncludePaths.AddRange(new string[] { "AdvancedSessions/Public" });
|
// PublicIncludePaths.AddRange(new string[] { "AdvancedSessions/Public" });
|
||||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "CoreUObject", "OnlineSubsystemUtils", "Networking", "Sockets"/*"Voice", "OnlineSubsystemSteam"*/ });
|
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "CoreUObject", "OnlineSubsystemUtils", "Networking", "Sockets"/*"Voice", "OnlineSubsystemSteam"*/ });
|
||||||
PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem", "Sockets", "Networking", "OnlineSubsystemUtils" /*"Voice", "Steamworks","OnlineSubsystemSteam"*/});
|
PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem", "Sockets", "Networking", "OnlineSubsystemUtils" /*"Voice", "Steamworks","OnlineSubsystemSteam"*/});
|
||||||
}
|
}
|
||||||
|
@@ -2,8 +2,8 @@
|
|||||||
"FileVersion" : 3,
|
"FileVersion" : 3,
|
||||||
|
|
||||||
"FriendlyName" : "Advanced Steam Sessions",
|
"FriendlyName" : "Advanced Steam Sessions",
|
||||||
"Version" : 4.17,
|
"Version" : 4.20,
|
||||||
"VersionName": "4.17",
|
"VersionName": "4.20",
|
||||||
"Description" : "Adds new blueprint functions to handle more advanced session operations in Steam. REQUIRES ADVANCED SESSIONS",
|
"Description" : "Adds new blueprint functions to handle more advanced session operations in Steam. REQUIRES ADVANCED SESSIONS",
|
||||||
"Category" : "Advanced Sessions Plugin",
|
"Category" : "Advanced Sessions Plugin",
|
||||||
"CreatedBy" : "Joshua Statzer",
|
"CreatedBy" : "Joshua Statzer",
|
||||||
|
@@ -12,9 +12,225 @@
|
|||||||
#include "OnlinePresenceInterface.h"
|
#include "OnlinePresenceInterface.h"
|
||||||
#include "Engine/GameInstance.h"
|
#include "Engine/GameInstance.h"
|
||||||
#include "OnlineSessionInterface.h"
|
#include "OnlineSessionInterface.h"
|
||||||
|
|
||||||
#include "UObjectIterator.h"
|
#include "UObjectIterator.h"
|
||||||
|
|
||||||
|
// This is taken directly from UE4 - OnlineSubsystemSteamPrivatePCH.h as a fix for the array_count macro
|
||||||
|
// @todo Steam: Steam headers trigger secure-C-runtime warnings in Visual C++. Rather than mess with _CRT_SECURE_NO_WARNINGS, we'll just
|
||||||
|
// disable the warnings locally. Remove when this is fixed in the SDK
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4996)
|
||||||
|
// #TODO check back on this at some point
|
||||||
|
#pragma warning(disable:4265) // SteamAPI CCallback< specifically, this warning is off by default but 4.17 turned it on....
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX
|
||||||
|
|
||||||
|
#pragma push_macro("ARRAY_COUNT")
|
||||||
|
#undef ARRAY_COUNT
|
||||||
|
|
||||||
|
#if USING_CODE_ANALYSIS
|
||||||
|
MSVC_PRAGMA(warning(push))
|
||||||
|
MSVC_PRAGMA(warning(disable : ALL_CODE_ANALYSIS_WARNINGS))
|
||||||
|
#endif // USING_CODE_ANALYSIS
|
||||||
|
|
||||||
|
#include <steam/steam_api.h>
|
||||||
|
|
||||||
|
#if USING_CODE_ANALYSIS
|
||||||
|
MSVC_PRAGMA(warning(pop))
|
||||||
|
#endif // USING_CODE_ANALYSIS
|
||||||
|
|
||||||
|
#include <steam/isteamapps.h>
|
||||||
|
#include <steam/isteamapplist.h>
|
||||||
|
//#include <OnlineSubsystemSteamTypes.h>
|
||||||
|
#pragma pop_macro("ARRAY_COUNT")
|
||||||
|
|
||||||
|
// @todo Steam: See above
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Making a copy of this here since the original is still in a private folder and is screwing with things
|
||||||
|
/**
|
||||||
|
* Steam specific implementation of the unique net id
|
||||||
|
*/
|
||||||
|
class FUniqueNetIdSteam2 :
|
||||||
|
public FUniqueNetId
|
||||||
|
{
|
||||||
|
PACKAGE_SCOPE:
|
||||||
|
/** Holds the net id for a player */
|
||||||
|
uint64 UniqueNetId;
|
||||||
|
|
||||||
|
/** Hidden on purpose */
|
||||||
|
FUniqueNetIdSteam2() :
|
||||||
|
UniqueNetId(0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy Constructor
|
||||||
|
*
|
||||||
|
* @param Src the id to copy
|
||||||
|
*/
|
||||||
|
explicit FUniqueNetIdSteam2(const FUniqueNetIdSteam2& Src) :
|
||||||
|
UniqueNetId(Src.UniqueNetId)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* Constructs this object with the specified net id
|
||||||
|
*
|
||||||
|
* @param InUniqueNetId the id to set ours to
|
||||||
|
*/
|
||||||
|
explicit FUniqueNetIdSteam2(uint64 InUniqueNetId) :
|
||||||
|
UniqueNetId(InUniqueNetId)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs this object with the steam id
|
||||||
|
*
|
||||||
|
* @param InUniqueNetId the id to set ours to
|
||||||
|
*/
|
||||||
|
explicit FUniqueNetIdSteam2(CSteamID InSteamId) :
|
||||||
|
UniqueNetId(InSteamId.ConvertToUint64())
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs this object with the specified net id
|
||||||
|
*
|
||||||
|
* @param String textual representation of an id
|
||||||
|
*/
|
||||||
|
explicit FUniqueNetIdSteam2(const FString& Str) :
|
||||||
|
UniqueNetId(FCString::Atoi64(*Str))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs this object with the specified net id
|
||||||
|
*
|
||||||
|
* @param InUniqueNetId the id to set ours to (assumed to be FUniqueNetIdSteam in fact)
|
||||||
|
*/
|
||||||
|
explicit FUniqueNetIdSteam2(const FUniqueNetId& InUniqueNetId) :
|
||||||
|
UniqueNetId(*(uint64*)InUniqueNetId.GetBytes())
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual FName GetType() const override
|
||||||
|
{
|
||||||
|
return STEAM_SUBSYSTEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the raw byte representation of this net id
|
||||||
|
* This data is platform dependent and shouldn't be manipulated directly
|
||||||
|
*
|
||||||
|
* @return byte array of size GetSize()
|
||||||
|
*/
|
||||||
|
virtual const uint8* GetBytes() const override
|
||||||
|
{
|
||||||
|
return (uint8*)&UniqueNetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the size of the id
|
||||||
|
*
|
||||||
|
* @return size in bytes of the id representation
|
||||||
|
*/
|
||||||
|
virtual int32 GetSize() const override
|
||||||
|
{
|
||||||
|
return sizeof(uint64);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check the validity of the id
|
||||||
|
*
|
||||||
|
* @return true if this is a well formed ID, false otherwise
|
||||||
|
*/
|
||||||
|
virtual bool IsValid() const override
|
||||||
|
{
|
||||||
|
return UniqueNetId != 0 && CSteamID(UniqueNetId).IsValid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Platform specific conversion to string representation of data
|
||||||
|
*
|
||||||
|
* @return data in string form
|
||||||
|
*/
|
||||||
|
virtual FString ToString() const override
|
||||||
|
{
|
||||||
|
return FString::Printf(TEXT("%llu"), UniqueNetId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a human readable representation of the net id
|
||||||
|
* Shouldn't be used for anything other than logging/debugging
|
||||||
|
*
|
||||||
|
* @return id in string form
|
||||||
|
*/
|
||||||
|
virtual FString ToDebugString() const override
|
||||||
|
{
|
||||||
|
CSteamID SteamID(UniqueNetId);
|
||||||
|
if (SteamID.IsLobby())
|
||||||
|
{
|
||||||
|
return FString::Printf(TEXT("Lobby [0x%llX]"), UniqueNetId);
|
||||||
|
}
|
||||||
|
else if (SteamID.BAnonGameServerAccount())
|
||||||
|
{
|
||||||
|
return FString::Printf(TEXT("Server [0x%llX]"), UniqueNetId);
|
||||||
|
}
|
||||||
|
else if (SteamID.IsValid())
|
||||||
|
{
|
||||||
|
const FString NickName(SteamFriends() ? UTF8_TO_TCHAR(SteamFriends()->GetFriendPersonaName(UniqueNetId)) : TEXT("UNKNOWN"));
|
||||||
|
return FString::Printf(TEXT("%s [0x%llX]"), *NickName, UniqueNetId);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return FString::Printf(TEXT("INVALID [0x%llX]"), UniqueNetId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Needed for TMap::GetTypeHash() */
|
||||||
|
friend uint32 GetTypeHash(const FUniqueNetIdSteam2& A)
|
||||||
|
{
|
||||||
|
return (uint32)(A.UniqueNetId) + ((uint32)((A.UniqueNetId) >> 32) * 23);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Convenience cast to CSteamID */
|
||||||
|
operator CSteamID()
|
||||||
|
{
|
||||||
|
return UniqueNetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Convenience cast to CSteamID */
|
||||||
|
operator const CSteamID() const
|
||||||
|
{
|
||||||
|
return UniqueNetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Convenience cast to CSteamID pointer */
|
||||||
|
operator CSteamID*()
|
||||||
|
{
|
||||||
|
return (CSteamID*)&UniqueNetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Convenience cast to CSteamID pointer */
|
||||||
|
operator const CSteamID*() const
|
||||||
|
{
|
||||||
|
return (const CSteamID*)&UniqueNetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
friend FArchive& operator<<(FArchive& Ar, FUniqueNetIdSteam2& UserId)
|
||||||
|
{
|
||||||
|
return Ar << UserId.UniqueNetId;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "AdvancedSteamFriendsLibrary.generated.h"
|
#include "AdvancedSteamFriendsLibrary.generated.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -37,22 +253,20 @@ struct FBPSteamGroupInfo
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
FBPUniqueNetId GroupID; // Uint64 representation
|
FBPUniqueNetId GroupID; // Uint64 representation
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
FString GroupName;
|
FString GroupName;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
FString GroupTag;
|
FString GroupTag;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
int32 numOnline;
|
int32 numOnline;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
int32 numInGame;
|
int32 numInGame;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Online|SteamAPI|SteamGroups")
|
||||||
int32 numChatting;
|
int32 numChatting;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UCLASS()
|
UCLASS()
|
||||||
class UAdvancedSteamFriendsLibrary : public UBlueprintFunctionLibrary
|
class UAdvancedSteamFriendsLibrary : public UBlueprintFunctionLibrary
|
||||||
{
|
{
|
||||||
|
@@ -2,45 +2,6 @@
|
|||||||
#include "AdvancedSteamFriendsLibrary.h"
|
#include "AdvancedSteamFriendsLibrary.h"
|
||||||
#include "OnlineSubSystemHeader.h"
|
#include "OnlineSubSystemHeader.h"
|
||||||
|
|
||||||
// This is taken directly from UE4 - OnlineSubsystemSteamPrivatePCH.h as a fix for the array_count macro
|
|
||||||
|
|
||||||
// @todo Steam: Steam headers trigger secure-C-runtime warnings in Visual C++. Rather than mess with _CRT_SECURE_NO_WARNINGS, we'll just
|
|
||||||
// disable the warnings locally. Remove when this is fixed in the SDK
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable:4996)
|
|
||||||
// #TODO check back on this at some point
|
|
||||||
#pragma warning(disable:4265) // SteamAPI CCallback< specifically, this warning is off by default but 4.17 turned it on....
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX
|
|
||||||
|
|
||||||
#pragma push_macro("ARRAY_COUNT")
|
|
||||||
#undef ARRAY_COUNT
|
|
||||||
|
|
||||||
#if USING_CODE_ANALYSIS
|
|
||||||
MSVC_PRAGMA(warning(push))
|
|
||||||
MSVC_PRAGMA(warning(disable : ALL_CODE_ANALYSIS_WARNINGS))
|
|
||||||
#endif // USING_CODE_ANALYSIS
|
|
||||||
|
|
||||||
#include <steam/steam_api.h>
|
|
||||||
|
|
||||||
#if USING_CODE_ANALYSIS
|
|
||||||
MSVC_PRAGMA(warning(pop))
|
|
||||||
#endif // USING_CODE_ANALYSIS
|
|
||||||
|
|
||||||
#include <steam/isteamapps.h>
|
|
||||||
#include <steam/isteamapplist.h>
|
|
||||||
#include <OnlineSubsystemSteamTypes.h>
|
|
||||||
#pragma pop_macro("ARRAY_COUNT")
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// @todo Steam: See above
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//General Log
|
//General Log
|
||||||
DEFINE_LOG_CATEGORY(AdvancedSteamFriendsLog);
|
DEFINE_LOG_CATEGORY(AdvancedSteamFriendsLog);
|
||||||
|
|
||||||
@@ -97,6 +58,7 @@ DEFINE_LOG_CATEGORY(AdvancedSteamFriendsLog);
|
|||||||
|
|
||||||
void UAdvancedSteamFriendsLibrary::GetSteamGroups(TArray<FBPSteamGroupInfo> & SteamGroups)
|
void UAdvancedSteamFriendsLibrary::GetSteamGroups(TArray<FBPSteamGroupInfo> & SteamGroups)
|
||||||
{
|
{
|
||||||
|
|
||||||
#if PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX
|
#if PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX
|
||||||
|
|
||||||
if (SteamAPI_Init())
|
if (SteamAPI_Init())
|
||||||
@@ -112,7 +74,7 @@ void UAdvancedSteamFriendsLibrary::GetSteamGroups(TArray<FBPSteamGroupInfo> & St
|
|||||||
|
|
||||||
FBPSteamGroupInfo GroupInfo;
|
FBPSteamGroupInfo GroupInfo;
|
||||||
|
|
||||||
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam(SteamGroupID));
|
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam2(SteamGroupID));
|
||||||
GroupInfo.GroupID.SetUniqueNetId(ValueID);
|
GroupInfo.GroupID.SetUniqueNetId(ValueID);
|
||||||
SteamFriends()->GetClanActivityCounts(SteamGroupID, &GroupInfo.numOnline, &GroupInfo.numInGame, &GroupInfo.numChatting);
|
SteamFriends()->GetClanActivityCounts(SteamGroupID, &GroupInfo.numOnline, &GroupInfo.numInGame, &GroupInfo.numChatting);
|
||||||
GroupInfo.GroupName = FString(UTF8_TO_TCHAR(SteamFriends()->GetClanName(SteamGroupID)));
|
GroupInfo.GroupName = FString(UTF8_TO_TCHAR(SteamFriends()->GetClanName(SteamGroupID)));
|
||||||
@@ -122,6 +84,7 @@ void UAdvancedSteamFriendsLibrary::GetSteamGroups(TArray<FBPSteamGroupInfo> & St
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UAdvancedSteamFriendsLibrary::GetSteamFriendGamePlayed(const FBPUniqueNetId UniqueNetId, EBlueprintResultSwitch &Result, FString & GameName, int32 & AppID)
|
void UAdvancedSteamFriendsLibrary::GetSteamFriendGamePlayed(const FBPUniqueNetId UniqueNetId, EBlueprintResultSwitch &Result, FString & GameName, int32 & AppID)
|
||||||
@@ -220,7 +183,7 @@ FBPUniqueNetId UAdvancedSteamFriendsLibrary::CreateSteamIDFromString(const FStri
|
|||||||
if (SteamAPI_Init())
|
if (SteamAPI_Init())
|
||||||
{
|
{
|
||||||
// Already does the conversion
|
// Already does the conversion
|
||||||
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam(SteamID64));
|
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam2(SteamID64));
|
||||||
//FCString::Atoi64(*SteamID64));
|
//FCString::Atoi64(*SteamID64));
|
||||||
|
|
||||||
netId.SetUniqueNetId(ValueID);
|
netId.SetUniqueNetId(ValueID);
|
||||||
|
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
#include "SteamRequestGroupOfficersCallbackProxy.h"
|
#include "SteamRequestGroupOfficersCallbackProxy.h"
|
||||||
#include "CoreOnline.h"
|
#include "CoreOnline.h"
|
||||||
|
#include "AdvancedSteamFriendsLibrary.h"
|
||||||
#include "OnlineSubSystemHeader.h"
|
#include "OnlineSubSystemHeader.h"
|
||||||
#include "OnlineSubsystemSteamTypes.h"
|
//#include "OnlineSubsystemSteamTypes.h"
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// UEndSessionCallbackProxy
|
// UEndSessionCallbackProxy
|
||||||
@@ -62,7 +63,7 @@ void USteamRequestGroupOfficersCallbackProxy::OnRequestGroupOfficerDetails(ClanO
|
|||||||
|
|
||||||
Officer.bIsOwner = true;
|
Officer.bIsOwner = true;
|
||||||
|
|
||||||
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam(ClanOwner));
|
TSharedPtr<const FUniqueNetId> ValueID(new const FUniqueNetIdSteam2(ClanOwner));
|
||||||
Officer.OfficerUniqueNetID.SetUniqueNetId(ValueID);
|
Officer.OfficerUniqueNetID.SetUniqueNetId(ValueID);
|
||||||
OfficerArray.Add(Officer);
|
OfficerArray.Add(Officer);
|
||||||
|
|
||||||
@@ -72,7 +73,7 @@ void USteamRequestGroupOfficersCallbackProxy::OnRequestGroupOfficerDetails(ClanO
|
|||||||
|
|
||||||
Officer.bIsOwner = false;
|
Officer.bIsOwner = false;
|
||||||
|
|
||||||
TSharedPtr<const FUniqueNetId> newValueID(new const FUniqueNetIdSteam(OfficerSteamID));
|
TSharedPtr<const FUniqueNetId> newValueID(new const FUniqueNetIdSteam2(OfficerSteamID));
|
||||||
Officer.OfficerUniqueNetID.SetUniqueNetId(newValueID);
|
Officer.OfficerUniqueNetID.SetUniqueNetId(newValueID);
|
||||||
|
|
||||||
OfficerArray.Add(Officer);
|
OfficerArray.Add(Officer);
|
||||||
|
Reference in New Issue
Block a user