UCefView
Loading...
Searching...
No Matches
FArchiveFileResourceMapping

Represents a mapping from an archive file (zip) to a URL for resource loading in the CEF browser. More...

#include <CefViewTypes.h>

Public Member Functions

bool operator== (const FArchiveFileResourceMapping &Other)
 Equality operator for comparing two FArchiveFileResourceMapping objects.
 
bool operator!= (const FArchiveFileResourceMapping &Other)
 Inequality operator for comparing two FArchiveFileResourceMapping objects.
 

Public Attributes

FString Url
 The target URL to be mapped to.
 
FFilePath Path
 The zip format file containing the resources to be mapped.
 
FString Password
 The password for accessing the archive file, if required.
 
int32 Priority = 0
 The priority of the mapping.
 

Detailed Description

Represents a mapping from an archive file (zip) to a URL for resource loading in the CEF browser.

This struct allows you to serve web assets from a compressed archive file, making distribution and packaging easier. The browser can access files inside the archive as if they were hosted at the specified Url.

Mapping.Url = TEXT("http://archive.local/");
Mapping.Path.FilePath = TEXT("WebAssets.zip");
Mapping.Password = TEXT("secret");
Mapping.Priority = 2;
Represents a mapping from an archive file (zip) to a URL for resource loading in the CEF browser.
Definition CefViewTypes.h:293
int32 Priority
The priority of the mapping.
Definition CefViewTypes.h:345
FFilePath Path
The zip format file containing the resources to be mapped.
Definition CefViewTypes.h:321
FString Password
The password for accessing the archive file, if required.
Definition CefViewTypes.h:333
FString Url
The target URL to be mapped to.
Definition CefViewTypes.h:307

Member Function Documentation

◆ operator!=()

bool FArchiveFileResourceMapping::operator!= ( const FArchiveFileResourceMapping & Other)
inline

Inequality operator for comparing two FArchiveFileResourceMapping objects.

Parameters
OtherThe other mapping to compare with.
Returns
True if the mappings are not equal, false otherwise.

Returns true if any of the Url, Path, Password, or Priority fields differ.

◆ operator==()

bool FArchiveFileResourceMapping::operator== ( const FArchiveFileResourceMapping & Other)
inline

Equality operator for comparing two FArchiveFileResourceMapping objects.

Parameters
OtherThe other mapping to compare with.
Returns
True if the mappings are equal, false otherwise.

Two mappings are considered equal if their Url, Path, Password, and Priority are all identical.

Member Data Documentation

◆ Password

FString FArchiveFileResourceMapping::Password

The password for accessing the archive file, if required.

Leave empty if the archive is not password-protected.

◆ Path

FFilePath FArchiveFileResourceMapping::Path

The zip format file containing the resources to be mapped.

The path value must be relative to the game directory (e.g., "WebAssets.zip"). Only zip archives are supported.

◆ Priority

int32 FArchiveFileResourceMapping::Priority = 0

The priority of the mapping.

Higher priority mappings take precedence when multiple mappings overlap.

◆ Url

FString FArchiveFileResourceMapping::Url

The target URL to be mapped to.

This is the virtual URL that the browser will use to access resources from the specified archive file. Example: "http://archive.local/"