Class BeamNgVehicleVariantDescriptor
- Namespace
- LibreRally.Vehicle.Content
- Assembly
- LibreRally.dll
Describes one selectable BeamNG Vehicle variant backed by an optional .pc configuration.
public sealed record BeamNgVehicleVariantDescriptor : IEquatable<BeamNgVehicleVariantDescriptor>
- Inheritance
-
BeamNgVehicleVariantDescriptor
- Implements
- Inherited Members
Constructors
BeamNgVehicleVariantDescriptor(BeamNgVehicleDescriptor, string?, string, string, string, string, string?, string?, bool)
Describes one selectable BeamNG Vehicle variant backed by an optional .pc configuration.
public BeamNgVehicleVariantDescriptor(BeamNgVehicleDescriptor Vehicle, string? ConfigFileName, string VariantId, string VehicleDisplayName, string VariantDisplayName, string Description, string? ThumbnailPath, string? ConfigType, bool IsDefaultVariant)
Parameters
VehicleBeamNgVehicleDescriptorThe parent discovered BeamNG vehicle package.
ConfigFileNamestringThe configuration file name to load, or null for JBeam defaults.
VariantIdstringStable identifier for the variant within the package.
VehicleDisplayNamestringThe user-facing parent package name shown in menus.
VariantDisplayNamestringUser-facing variant/configuration name shown in menus.
DescriptionstringOptional descriptive copy for the variant.
ThumbnailPathstringAbsolute path to the preview thumbnail image when available.
ConfigTypestringOptional classification such as Factory or Rally.
IsDefaultVariantboolIndicates whether the variant matches the package default configuration.
Properties
ConfigFileName
The configuration file name to load, or null for JBeam defaults.
public string? ConfigFileName { get; init; }
Property Value
ConfigType
Optional classification such as Factory or Rally.
public string? ConfigType { get; init; }
Property Value
Description
Optional descriptive copy for the variant.
public string Description { get; init; }
Property Value
DisplayName
Gets a combined user-facing label for the vehicle and variant.
public string DisplayName { get; }
Property Value
IsDefaultVariant
Indicates whether the variant matches the package default configuration.
public bool IsDefaultVariant { get; init; }
Property Value
SourceKind
Gets the origin of the parent package.
public BeamNgVehicleSourceKind SourceKind { get; }
Property Value
SourceLabel
Gets the source label for the parent package.
public string SourceLabel { get; }
Property Value
SourcePath
Gets the directory or archive path that contains the parent package.
public string SourcePath { get; }
Property Value
ThumbnailPath
Absolute path to the preview thumbnail image when available.
public string? ThumbnailPath { get; init; }
Property Value
VariantDisplayName
User-facing variant/configuration name shown in menus.
public string VariantDisplayName { get; init; }
Property Value
VariantId
Stable identifier for the variant within the package.
public string VariantId { get; init; }
Property Value
Vehicle
The parent discovered BeamNG vehicle package.
public BeamNgVehicleDescriptor Vehicle { get; init; }
Property Value
VehicleDisplayName
The user-facing parent package name shown in menus.
public string VehicleDisplayName { get; init; }
Property Value
VehicleId
Gets the BeamNG identifier for the parent package.
public string VehicleId { get; }