17#include "CoreMinimal.h"
18#include "UObject/NoExportTypes.h"
19#include "PPF_Platform.h"
20#include "OnlineSubsystemPico.h"
21#include "Pico_Networking.generated.h"
24DECLARE_LOG_CATEGORY_EXTERN(PicoNetworking, Log, All);
44 FOnlineSubsystemPico& PicoSubsystem;
62 bool SendPacket(
const FString& UserId, TArray<uint8> BinaryArray);
76 bool SendPacket(
const FString& UserId, TArray<uint8> BinaryArray,
bool bReliable);
110 bool ReadPacket(TArray<uint8>& OutBinaries, FString& OutSendId);
150 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|Networking")
151 static
bool SendPacket(UObject* WorldContextObject, const FString& UserId, TArray<uint8> BinaryArray,
bool bReliable);
165 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|Networking")
166 static
bool SendPacketToCurrentRoom(UObject* WorldContextObject, TArray<uint8> BinaryArray,
bool bReliable);
178 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|Networking")
179 static
bool ReadPacket(UObject* WorldContextObject, TArray<uint8>& OutBinaries, FString& SendUserID);
PicoNetworkingInterface class.
Definition: Pico_Networking.h:41
bool SendPacketToCurrentRoom(TArray< uint8 > BinaryArray, bool bReliable)
Sends messages to other users in the room. The maximum messaging frequency is 1000/s.
bool SendPacketToCurrentRoom(TArray< uint8 > BinaryArray)
Sends messages to other users in the room. The maximum messaging frequency is 1000/s.
bool ReadPacket(TArray< uint8 > &OutBinaries, FString &OutSendId)
Reads the messages from other users in the room.
bool SendPacket(const FString &UserId, TArray< uint8 > BinaryArray)
Sends messages to a specified user. The maximum messaging frequency is 1000/s.
bool SendPacket(const FString &UserId, TArray< uint8 > BinaryArray, bool bReliable)
Sends messages to a specified user. The maximum messaging frequency is 1000/s.
OnlinePicoNetworking Blueprint Function class.
Definition: Pico_Networking.h:131