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

Pairs a DataShardKey with a Blueprint delegate for change notifications.
Used by the DataShardSubsystem to track registered callbacks for data changes. More...

#include <DataShardKey.h>

Public Member Functions

 FDataShardKeyDelegatePair ()
 
 FDataShardKeyDelegatePair (const FOnShardDataChange &Delegate)
 
 FDataShardKeyDelegatePair (const FDataShardKey *Key, const FOnShardDataChange &Delegate)
 
bool Execute (const int32 &ID) const
 
bool EqualKey (const FDataShardKey &Other) const
 
bool IsBoundTo (const UObject *Object) const
 
bool operator== (const FDataShardKeyDelegatePair &Other) const
 
bool operator!= (const FDataShardKeyDelegatePair &Other) const
 
FDataShardKeyDelegatePairoperator= (const FDataShardKeyDelegatePair &Other)
 

Detailed Description

Pairs a DataShardKey with a Blueprint delegate for change notifications.
Used by the DataShardSubsystem to track registered callbacks for data changes.

Delegate type for Blueprint callbacks when shard data changes

Member Function Documentation

◆ EqualKey()

bool DataShardKeyDelegatePair::EqualKey ( const FDataShardKey & Other) const

Checks if the stored key matches another key

Parameters
Other- The key to compare against
Returns
true if the keys match, false otherwise

◆ Execute()

bool DataShardKeyDelegatePair::Execute ( const int32 & ID) const

Executes the stored delegate with the given shard ID

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

◆ FDataShardKeyDelegatePair() [1/3]

DataShardKeyDelegatePair::FDataShardKeyDelegatePair ( )
inline

◆ FDataShardKeyDelegatePair() [2/3]

DataShardKeyDelegatePair::FDataShardKeyDelegatePair ( const FDataShardKey * Key,
const FOnShardDataChange & Delegate )
inline

Creates a pair with the specified key and delegate

Parameters
Key- Pointer to the key to associate with the delegate
Delegate- The Blueprint delegate to call when data changes

◆ FDataShardKeyDelegatePair() [3/3]

DataShardKeyDelegatePair::FDataShardKeyDelegatePair ( const FOnShardDataChange & Delegate)
inline

Creates a pair with a new empty key and the specified delegate

Parameters
Delegate- The Blueprint delegate to call when data changes

◆ IsBoundTo()

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

◆ operator!=()

bool DataShardKeyDelegatePair::operator!= ( const FDataShardKeyDelegatePair & Other) const

Inequality operator

◆ operator=()

FDataShardKeyDelegatePair & DataShardKeyDelegatePair::operator= ( const FDataShardKeyDelegatePair & Other)

◆ operator==()

bool DataShardKeyDelegatePair::operator== ( const FDataShardKeyDelegatePair & Other) const

Equality operator