LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Player Files

Detailed Description

Server-side management of CDN-backed files scoped to a player's profile.

Read, upload, update, and delete player files from the server. Ideal for cloud saves, screenshots, or profile pictures that benefit from CDN delivery. Each file upload requires a declared purpose; files can be marked private to restrict client visibility. Up to five revisions per file are retained.

See the LootLocker documentation.

Function Documentation

◆ DeleteFileForPlayerByID()

static FString ULootLockerServerForCpp::DeleteFileForPlayerByID ( int  PlayerID,
int  FileID,
const FLootLockerServerPlayerFileDeleteResponseDelegate OnCompletedRequest 
)
static

Delete the specified file currently associated with the specified player The response will be empty unless there's an error.

Parameters
PlayerIDID of the player for whom to delete the specified file
FileIDID of the file to delete
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ GetFileForPlayerByID()

static FString ULootLockerServerForCpp::GetFileForPlayerByID ( int  PlayerID,
int  FileID,
const FLootLockerServerSinglePlayerFileResponseDelegate OnCompletedRequest 
)
static

Get the specified file currently associated with the specified player.

Parameters
PlayerIDID of the player for whom to get the specified file
FileIDID of the file to get
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ ListFilesForPlayer()

static FString ULootLockerServerForCpp::ListFilesForPlayer ( int  PlayerID,
const FLootLockerServerPlayerFileListResponseDelegate OnCompletedRequest 
)
static

List files currently associated with the specified player.

Parameters
PlayerIDID of the player for whom to list files
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ UpdateFileForPlayer()

static FString ULootLockerServerForCpp::UpdateFileForPlayer ( int  PlayerID,
int  FileID,
FString  FilePath,
const FLootLockerServerSinglePlayerFileResponseDelegate OnCompletedRequest 
)
static

Update the specified file for the specified player with the supplied file content.

Parameters
PlayerIDID of the player for whom to update the specified file
FileIDID of the file to update
FilePathThe path on disk to the file you want to update the specified file with
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ UpdatePlayerFileWithRawData()

static FString ULootLockerServerForCpp::UpdatePlayerFileWithRawData ( int  PlayerID,
int  FileID,
TArray< uint8 >  RawData,
const FString &  FileName,
const FLootLockerServerSinglePlayerFileResponseDelegate OnCompletedRequest 
)
static

Update the specified file for the specified player with the supplied raw data.

Parameters
PlayerIDID of the player for whom to update the specified file
FileIDID of the file to update
RawDataThe raw data to update the specified file with
FileNameThe name to set for the file
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ UploadFileForPlayer()

static FString ULootLockerServerForCpp::UploadFileForPlayer ( int  PlayerID,
FString  FilePath,
FString  Purpose,
bool  IsPublic,
const FLootLockerServerSinglePlayerFileResponseDelegate OnCompletedRequest 
)
static

Upload the specified file to the specified player Each file can be a maximum of 5MB and each player can have a maximum of 50 files.

Parameters
PlayerIDID of the player for whom to upload the specified file
FilePathThe path on disk to the file you want to upload
PurposeA tag specifying the purpose of this file
IsPublicWhether this file is publically available (accessible for other players)
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ UploadRawDataToPlayerFile()

static FString ULootLockerServerForCpp::UploadRawDataToPlayerFile ( int  PlayerID,
TArray< uint8 >  RawData,
const FString &  FileName,
FString  Purpose,
bool  IsPublic,
const FLootLockerServerSinglePlayerFileResponseDelegate OnCompletedRequest 
)
static

Upload the supplied raw data as a file to the specified player Each file can be a maximum of 5MB and each player can have a maximum of 50 files.

Parameters
PlayerIDID of the player for whom to upload the specified file
RawDataThe raw data to upload to a player file
FileNameThe name to set for the file
PurposeA tag specifying the purpose of this file
IsPublicWhether this file is publically available (accessible for other players)
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

Functions

static FString ULootLockerServerForCpp::ListFilesForPlayer (int PlayerID, const FLootLockerServerPlayerFileListResponseDelegate &OnCompletedRequest)
 List files currently associated with the specified player.
 
static FString ULootLockerServerForCpp::GetFileForPlayerByID (int PlayerID, int FileID, const FLootLockerServerSinglePlayerFileResponseDelegate &OnCompletedRequest)
 Get the specified file currently associated with the specified player.
 
static FString ULootLockerServerForCpp::DeleteFileForPlayerByID (int PlayerID, int FileID, const FLootLockerServerPlayerFileDeleteResponseDelegate &OnCompletedRequest)
 Delete the specified file currently associated with the specified player The response will be empty unless there's an error.
 
static FString ULootLockerServerForCpp::UploadFileForPlayer (int PlayerID, FString FilePath, FString Purpose, bool IsPublic, const FLootLockerServerSinglePlayerFileResponseDelegate &OnCompletedRequest)
 Upload the specified file to the specified player Each file can be a maximum of 5MB and each player can have a maximum of 50 files.
 
static FString ULootLockerServerForCpp::UploadRawDataToPlayerFile (int PlayerID, TArray< uint8 > RawData, const FString &FileName, FString Purpose, bool IsPublic, const FLootLockerServerSinglePlayerFileResponseDelegate &OnCompletedRequest)
 Upload the supplied raw data as a file to the specified player Each file can be a maximum of 5MB and each player can have a maximum of 50 files.
 
static FString ULootLockerServerForCpp::UpdateFileForPlayer (int PlayerID, int FileID, FString FilePath, const FLootLockerServerSinglePlayerFileResponseDelegate &OnCompletedRequest)
 Update the specified file for the specified player with the supplied file content.
 
static FString ULootLockerServerForCpp::UpdatePlayerFileWithRawData (int PlayerID, int FileID, TArray< uint8 > RawData, const FString &FileName, const FLootLockerServerSinglePlayerFileResponseDelegate &OnCompletedRequest)
 Update the specified file for the specified player with the supplied raw data.