Class VehicleColorCatalog
Provides read-only access to the base game's vehicle color metadata.
public static class VehicleColorCatalog
- Inheritance
-
VehicleColorCatalog
- Inherited Members
Properties
Colors
Gets a read-only snapshot of the available vehicle color metadata in native library order. Returns an empty list before the base game's vehicle color library is ready.
public static IReadOnlyList<VehicleColorMetadata> Colors { get; }
Property Value
Methods
GetColor(VehicleColor)
Gets metadata for a vehicle color.
public static VehicleColorMetadata? GetColor(VehicleColor color)
Parameters
colorVehicleColorThe vehicle color to look up.
Returns
- VehicleColorMetadata
The color metadata, or null when the color is unavailable or the base game's vehicle color library is not ready.
TryGetColor(VehicleColor, out VehicleColorMetadata?)
Tries to get metadata for a vehicle color.
public static bool TryGetColor(VehicleColor color, out VehicleColorMetadata? metadata)
Parameters
colorVehicleColorThe vehicle color to look up.
metadataVehicleColorMetadataThe resolved metadata when available.