Class VehicleSetupEntry
- Namespace
- LibreRally.Vehicle
- Assembly
- LibreRally.dll
Describes a single editable setup field exposed to the garage UI.
public sealed record VehicleSetupEntry : IEquatable<VehicleSetupEntry>
- Inheritance
-
VehicleSetupEntry
- Implements
- Inherited Members
Constructors
VehicleSetupEntry(string, string, string, string, string, string?, float, float, float, float, float, string, float?, float?, VehicleSetupApplyMode, VehicleSetupEntryKind, VehicleSetupAxle)
Describes a single editable setup field exposed to the garage UI.
public VehicleSetupEntry(string Id, string ResolvedKey, string Label, string Description, string Category, string? SubCategory, float Value, float DefaultValue, float MinimumValue, float MaximumValue, float Step, string Unit, float? MinDisplayValue, float? MaxDisplayValue, VehicleSetupApplyMode ApplyMode, VehicleSetupEntryKind Kind, VehicleSetupAxle Axle)
Parameters
IdstringStable identifier for the entry.
ResolvedKeystringResolved variable or override key used at apply time.
LabelstringDisplay label shown in the UI.
DescriptionstringLong-form field description.
CategorystringTop-level setup category name.
SubCategorystringOptional subcategory used for sorting or grouping.
ValuefloatCurrent setting presented to the player.
DefaultValuefloatOriginal default setting from the vehicle definition.
MinimumValuefloatLowest allowed numeric setting.
MaximumValuefloatHighest allowed numeric setting.
StepfloatRecommended edit step size.
UnitstringDisplay unit text.
MinDisplayValuefloat?Optional alternate minimum shown in the UI.
MaxDisplayValuefloat?Optional alternate maximum shown in the UI.
ApplyModeVehicleSetupApplyModeHow the entry is applied to the vehicle.
KindVehicleSetupEntryKindUnderlying entry type.
AxleVehicleSetupAxleAssociated axle when the entry is axle-specific.
Properties
ApplyMode
How the entry is applied to the vehicle.
public VehicleSetupApplyMode ApplyMode { get; init; }
Property Value
Axle
Associated axle when the entry is axle-specific.
public VehicleSetupAxle Axle { get; init; }
Property Value
Category
Top-level setup category name.
public string Category { get; init; }
Property Value
DefaultValue
Original default setting from the vehicle definition.
public float DefaultValue { get; init; }
Property Value
Description
Long-form field description.
public string Description { get; init; }
Property Value
Id
Stable identifier for the entry.
public string Id { get; init; }
Property Value
Kind
Underlying entry type.
public VehicleSetupEntryKind Kind { get; init; }
Property Value
Label
Display label shown in the UI.
public string Label { get; init; }
Property Value
MaxDisplayValue
Optional alternate maximum shown in the UI.
public float? MaxDisplayValue { get; init; }
Property Value
MaximumValue
Highest allowed numeric setting.
public float MaximumValue { get; init; }
Property Value
MinDisplayValue
Optional alternate minimum shown in the UI.
public float? MinDisplayValue { get; init; }
Property Value
MinimumValue
Lowest allowed numeric setting.
public float MinimumValue { get; init; }
Property Value
ResolvedKey
Resolved variable or override key used at apply time.
public string ResolvedKey { get; init; }
Property Value
Step
Recommended edit step size.
public float Step { get; init; }
Property Value
SubCategory
Optional subcategory used for sorting or grouping.
public string? SubCategory { get; init; }
Property Value
Unit
Display unit text.
public string Unit { get; init; }
Property Value
Value
Current setting presented to the player.
public float Value { get; init; }