mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-24 00:44:23 +00:00
added comparison operator for FBPUniqueNetID
added comparison operator for FBPUniqueNetID, so that STD functions will work with it.
This commit is contained in:
@@ -200,6 +200,17 @@ public:
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adding in a compare operator so that std functions will work with this struct
|
||||||
|
FORCEINLINE bool operator==(const FBPUniqueNetId& Other) const
|
||||||
|
{
|
||||||
|
return (IsValid() && Other.IsValid() && (*GetUniqueNetId() == *Other.GetUniqueNetId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
FORCEINLINE bool operator!=(const FBPUniqueNetId& Other) const
|
||||||
|
{
|
||||||
|
return !(IsValid() && Other.IsValid() && (*GetUniqueNetId() == *Other.GetUniqueNetId()));
|
||||||
|
}
|
||||||
|
|
||||||
FBPUniqueNetId()
|
FBPUniqueNetId()
|
||||||
{
|
{
|
||||||
bUseDirectPointer = false;
|
bUseDirectPointer = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user