![]() |
UCefView
|
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. | |
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.
|
inline |
Inequality operator for comparing two FArchiveFileResourceMapping objects.
Other | The other mapping to compare with. |
Returns true if any of the Url, Path, Password, or Priority fields differ.
|
inline |
Equality operator for comparing two FArchiveFileResourceMapping objects.
Other | The other mapping to compare with. |
Two mappings are considered equal if their Url, Path, Password, and Priority are all identical.
FString FArchiveFileResourceMapping::Password |
The password for accessing the archive file, if required.
Leave empty if the archive is not password-protected.
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.
int32 FArchiveFileResourceMapping::Priority = 0 |
The priority of the mapping.
Higher priority mappings take precedence when multiple mappings overlap.
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/"