Table of Contents

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

stage string

The human-readable stage name.

completed int

The number of completed items.

total int

The 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

stage string

The human-readable stage name.

progress float

Progress fraction between 0 and 1.

Properties

Progress

Gets the loading progress as a fraction between 0 and 1.

public float Progress { get; }

Property Value

float

Stage

Gets the human-readable loading stage description.

public string Stage { get; }

Property Value

string