|
CARLA
|
Parsed carla-pack.json. More...
#include <ContentPackManifest.h>
Public Member Functions | |
| TArray< FString > | GetMapNames () const |
Static Public Member Functions | |
| static bool | IsValidPackName (const FString &InName) |
| Name must be usable as a plugin name and mount point ("/<Name>/"). | |
| static bool | LoadFromFile (const FString &InManifestPath, FCarlaContentPackManifest &OutManifest, FString &OutError) |
| Read and parse <ManifestPath>. Fills ManifestPath/PackDir. | |
| static bool | Parse (const FString &JsonText, FCarlaContentPackManifest &OutManifest, FString &OutError) |
| Parse a manifest from a JSON string. OutError explains a false return. | |
Public Attributes | |
| FString | BaseRelease |
| FString | CarlaVersion |
| TArray< FString > | Catalogs |
| FString | EngineCommit |
| FString | EngineVersion |
| TMap< FString, FString > | Files |
| FString | ManifestPath |
| Absolute path of the manifest file this was parsed from. | |
| TArray< FCarlaContentPackMap > | Maps |
| FString | Name |
| FString | PackDir |
| Absolute path of the pack directory (parent of the manifest). | |
| FString | Platform |
| FString | Version |
Parsed carla-pack.json.
Authoritative for map discovery: nothing walks the pack directories looking for .umap files.
{ "name": "NewPack", "version": "1.0.0", "carla_version": "0.10.2", "base_release": "carla-0.10.2-Linux", "engine": { "version": "5.8.0", "commit": "abcdef0" }, "platform": "Linux", "maps": [ { "name", "package", "xodr", "world_partition" } ], "catalogs": [ "Config/Vehicles.json", ... ], "files": { "<relpath>": "sha256:..." } }
Definition at line 39 of file ContentPackManifest.h.
| TArray< FString > FCarlaContentPackManifest::GetMapNames | ( | ) | const |
Definition at line 167 of file ContentPackManifest.cpp.
References Maps.
Referenced by UCarlaContentPackManager::Mount().
|
static |
Name must be usable as a plugin name and mount point ("/<Name>/").
Definition at line 18 of file ContentPackManifest.cpp.
Referenced by Parse().
|
static |
Read and parse <ManifestPath>. Fills ManifestPath/PackDir.
Definition at line 145 of file ContentPackManifest.cpp.
References ManifestPath, PackDir, and Parse().
Referenced by UCarlaContentPackManager::Discover(), and UCarlaContentPackManager::Mount().
|
static |
Parse a manifest from a JSON string. OutError explains a false return.
Definition at line 34 of file ContentPackManifest.cpp.
References BaseRelease, FCarlaContentPackMap::bWorldPartition, CarlaVersion, Catalogs, EngineCommit, EngineVersion, Files, IsValidPackName(), Maps, FCarlaContentPackMap::Name, Name, FCarlaContentPackMap::Package, Platform, Version, and FCarlaContentPackMap::Xodr.
Referenced by LoadFromFile().
| FString FCarlaContentPackManifest::BaseRelease |
Definition at line 44 of file ContentPackManifest.h.
Referenced by UCarlaContentPackManager::CheckCompatibility(), MakeContentPackInfo(), and Parse().
| FString FCarlaContentPackManifest::CarlaVersion |
Definition at line 43 of file ContentPackManifest.h.
Referenced by Parse().
| TArray<FString> FCarlaContentPackManifest::Catalogs |
Definition at line 49 of file ContentPackManifest.h.
Referenced by Parse().
| FString FCarlaContentPackManifest::EngineCommit |
Definition at line 46 of file ContentPackManifest.h.
Referenced by Parse().
| FString FCarlaContentPackManifest::EngineVersion |
Definition at line 45 of file ContentPackManifest.h.
Referenced by UCarlaContentPackManager::CheckCompatibility(), and Parse().
| TMap<FString, FString> FCarlaContentPackManifest::Files |
Definition at line 50 of file ContentPackManifest.h.
Referenced by Parse().
| FString FCarlaContentPackManifest::ManifestPath |
Absolute path of the manifest file this was parsed from.
Definition at line 53 of file ContentPackManifest.h.
Referenced by LoadFromFile().
| TArray<FCarlaContentPackMap> FCarlaContentPackManifest::Maps |
Definition at line 48 of file ContentPackManifest.h.
Referenced by GetMapNames(), MakeContentPackInfo(), UCarlaContentPackManager::Mount(), Parse(), and UCarlaContentPackManager_PackagePrefixes().
| FString FCarlaContentPackManifest::Name |
Definition at line 41 of file ContentPackManifest.h.
Referenced by UCarlaContentPackManager::CheckCompatibility(), UCarlaContentPackManager::Discover(), FCarlaContentPack::GetName(), UCarlaContentPackManager::Mount(), and Parse().
| FString FCarlaContentPackManifest::PackDir |
Absolute path of the pack directory (parent of the manifest).
Definition at line 56 of file ContentPackManifest.h.
Referenced by LoadFromFile(), and UCarlaContentPackManager::Mount().
| FString FCarlaContentPackManifest::Platform |
Definition at line 47 of file ContentPackManifest.h.
Referenced by UCarlaContentPackManager::CheckCompatibility(), and Parse().
| FString FCarlaContentPackManifest::Version |
Definition at line 42 of file ContentPackManifest.h.
Referenced by MakeContentPackInfo(), UCarlaContentPackManager::Mount(), and Parse().