YOM Replicator SDK 0.8.0.0
A metaverse SDK created by YOM
Loading...
Searching...
No Matches
UYomCounterBPFunctions Class Reference

Detailed Description

A BlueprintFunctionLibrary for the counter system.

Inheritance diagram for UYomCounterBPFunctions:

Static Public Member Functions

Blueprint Functions
static void AddToCounter (AYomPlayer *pPlayer, UObject *pWorldContextObject, const int pValue, const FString &pName, const FFetchCounterDoneDelegate &pCallback)
 A BlueprintCallable function that increments or decrements a counter on blockchain. More...
 
static void GetCounter (UObject *pWorldContextObject, const FString &pName, const FFetchCounterDelegate &pCallback)
 A BlueprintCallable function that gets the value of the counter with the given name from given metaspace. More...
 
static void ReplicateCounter (UObject *pWorldContextObject, AYomPlayer *pPlayer, const FString &pName)
 A BlueprintCallable function that runs on the server. It gets the value of the counter and replicates the result to all clients. More...
 

Member Function Documentation

◆ AddToCounter()

void UYomCounterBPFunctions::AddToCounter ( AYomPlayer pPlayer,
UObject *  pWorldContextObject,
const int  pValue,
const FString &  pName,
const FFetchCounterDoneDelegate &  pCallback 
)
static

A BlueprintCallable function that increments or decrements a counter on blockchain.

Parameters
pPlayerThe player to get walletId from
pValueThe value which will be added to the counter
pNameThe name of the counter to change
pCallbackThe name of the callback to save the value

◆ GetCounter()

void UYomCounterBPFunctions::GetCounter ( UObject *  pWorldContextObject,
const FString &  pName,
const FFetchCounterDelegate &  pCallback 
)
static

A BlueprintCallable function that gets the value of the counter with the given name from given metaspace.

Parameters
pNameThe name of the counter to get
pCallbackThe name of the callback to save the value

◆ ReplicateCounter()

void UYomCounterBPFunctions::ReplicateCounter ( UObject *  pWorldContextObject,
AYomPlayer pPlayer,
const FString &  pName 
)
static

A BlueprintCallable function that runs on the server. It gets the value of the counter and replicates the result to all clients.

Parameters
pWorldContextObject
pPlayerPlayer object of which the component is on
pNameThe name of the counter to get