Struct VehicleLoadProgress
- Namespace
- LibreRally.Vehicle
- Assembly
- LibreRally.dll
Represents a vehicle loading progress update, carrying a stage name and 0–1 progress value.
public readonly struct VehicleLoadProgress
- Inherited Members
Constructors
VehicleLoadProgress(string, int, int)
Initializes a new instance of the VehicleLoadProgress struct from a completed/total count.
public VehicleLoadProgress(string stage, int completed, int total)
Parameters
stagestringThe human-readable stage name.
completedintThe number of completed items.
totalintThe total number of items.
VehicleLoadProgress(string, float)
Initializes a new instance of the VehicleLoadProgress struct with an explicit progress value.
public VehicleLoadProgress(string stage, float progress)
Parameters
Properties
Progress
Gets the loading progress as a fraction between 0 and 1.
public float Progress { get; }
Property Value
Stage
Gets the human-readable loading stage description.
public string Stage { get; }