Data Shard Plugin
Loading...
Searching...
No Matches
DataShardIDDelegatePair Struct Reference

Pairs a shard ID with a C++ delegate for change notifications.
Used by the DataShardSubsystem to track registered callbacks for data changes. More...

#include <DataShardKey.h>

Public Member Functions

 FDataShardIDDelegatePair ()
 
 FDataShardIDDelegatePair (const FOnShardDataChange_internal &Delegate)
 
 FDataShardIDDelegatePair (const int32 &ID, const FOnShardDataChange_internal &Delegate)
 
bool Execute (const int32 &InID) const
 
bool EqualID (const int32 &InID) const
 
bool IsBoundTo (const UObject *Object) const
 
bool operator== (const FDataShardIDDelegatePair &Other) const
 
bool operator!= (const FDataShardIDDelegatePair &Other) const
 
FDataShardIDDelegatePairoperator= (const FDataShardIDDelegatePair &Other)
 

Detailed Description

Pairs a shard ID with a C++ delegate for change notifications.
Used by the DataShardSubsystem to track registered callbacks for data changes.

Member Function Documentation

◆ EqualID()

bool DataShardIDDelegatePair::EqualID ( const int32 & InID) const

Checks if the stored ID matches another ID

Parameters
InID- The ID to compare against
Returns
true if the IDs match, false otherwise

◆ Execute()

bool DataShardIDDelegatePair::Execute ( const int32 & InID) const

Executes the stored delegate with the given shard ID

Parameters
InID- The ID of the shard that changed
Returns
false if the delegate is not bound, true if it was successfully executed

◆ FDataShardIDDelegatePair() [1/3]

DataShardIDDelegatePair::FDataShardIDDelegatePair ( )
inline

◆ FDataShardIDDelegatePair() [2/3]

DataShardIDDelegatePair::FDataShardIDDelegatePair ( const FOnShardDataChange_internal & Delegate)
inline

Creates a pair with a default ID and the specified delegate

Parameters
Delegate- The C++ delegate to call when data changes

◆ FDataShardIDDelegatePair() [3/3]

DataShardIDDelegatePair::FDataShardIDDelegatePair ( const int32 & ID,
const FOnShardDataChange_internal & Delegate )
inline

Creates a pair with the specified ID and delegate

Parameters
ID- The ID of the shard to monitor for changes
Delegate- The C++ delegate to call when data changes

◆ IsBoundTo()

bool DataShardIDDelegatePair::IsBoundTo ( const UObject * Object) const

◆ operator!=()

bool DataShardIDDelegatePair::operator!= ( const FDataShardIDDelegatePair & Other) const

Inequality operator

◆ operator=()

FDataShardIDDelegatePair & DataShardIDDelegatePair::operator= ( const FDataShardIDDelegatePair & Other)

◆ operator==()

bool DataShardIDDelegatePair::operator== ( const FDataShardIDDelegatePair & Other) const

Equality operator