#include <ArticyArchiveReader.h>
|
| bool | OpenArchive (const FString &InArchiveFileName) |
| bool | ReadFile (const FString &Filename, FString &OutResult) const |
| bool | FetchJson (const TSharedPtr< FJsonObject > &JsonRoot, const FString &FieldName, FString &Hash, TSharedPtr< FJsonObject > &OutJsonObject) const |
Class responsible for reading and processing Articy archives.
◆ ArchiveBytesToString()
| FString UArticyArchiveReader::ArchiveBytesToString |
( |
const uint8 * | In, |
|
|
int32 | Count ) |
|
static |
Converts an array of bytes to a string, assuming UTF-8 encoding.
- Parameters
-
| In | The byte array to convert. |
| Count | The number of bytes in the array. |
- Returns
- The resulting string.
◆ FetchJson()
| bool UArticyArchiveReader::FetchJson |
( |
const TSharedPtr< FJsonObject > & | JsonRoot, |
|
|
const FString & | FieldName, |
|
|
FString & | Hash, |
|
|
TSharedPtr< FJsonObject > & | OutJsonObject ) const |
Fetches a JSON object from the archive, verifying the hash for changes.
- Parameters
-
| JsonRoot | The root JSON object to search within. |
| FieldName | The field name containing the desired JSON object. |
| Hash | The hash value to check against. |
| OutJsonObject | The resulting JSON object, if found and changed. |
- Returns
- True if the JSON object was successfully fetched and changed; otherwise, false.
◆ OpenArchive()
| bool UArticyArchiveReader::OpenArchive |
( |
const FString & | InArchiveFileName | ) |
|
Opens an archive file for reading.
- Parameters
-
| InArchiveFileName | The name of the archive file to open. |
- Returns
- True if the archive was successfully opened and read; otherwise, false.
◆ ReadFile()
| bool UArticyArchiveReader::ReadFile |
( |
const FString & | Filename, |
|
|
FString & | OutResult ) const |
Reads a file from the archive.
- Parameters
-
| Filename | The name of the file to read from the archive. |
| OutResult | The string that will receive the file's content. |
- Returns
- True if the file was successfully read; otherwise, false.
◆ ReadFileData()
| bool UArticyArchiveReader::ReadFileData |
( |
| ) |
|
|
protected |
Reads file data from the archive, populating the file dictionary.
- Returns
- True if the file data was successfully read; otherwise, false.
◆ ReadHeader()
| bool UArticyArchiveReader::ReadHeader |
( |
| ) |
|
|
protected |
Reads the header from the archive file.
- Returns
- True if the header was successfully read; otherwise, false.
◆ ArchiveFileName
| FString UArticyArchiveReader::ArchiveFileName |
|
protected |
The name of the archive file.
◆ FileDictionary
The dictionary of files contained in the archive.
◆ Header
The header information of the archive.
The documentation for this class was generated from the following files: