Table of Contents

Struct PluginControl

Namespace
rF2SharedMemoryNet.RF2Data.Structs
Assembly
rF2SharedMemoryNet.dll

Represents the control structure used for communication between the rFactor 2 plugin and the simulation.

public struct PluginControl
Inherited Members

Remarks

This structure is primarily used to manage versioning and control requests for various simulation inputs. It is designed to be updated sequentially, with the VersionUpdateBegin and VersionUpdateEnd fields ensuring consistency during buffer writes.

Fields

LayoutVersion

Represents the version number of the layout configuration.

public int LayoutVersion

Field Value

int

RequestEnableBuffersMask

Represents a bitmask used to enable specific request buffers.

public int RequestEnableBuffersMask

Field Value

int

RequestHWControlInput

Represents the hardware control input request as a byte value.

public byte RequestHWControlInput

Field Value

byte

Remarks

This field is used to store a hardware control input request in byte format. The specific meaning of the value depends on the context in which it is used.

RequestRulesControlInput

Represents the control input for request rules.

public byte RequestRulesControlInput

Field Value

byte

Remarks

This field is intended to store a byte value that influences the behavior of request rules. Ensure the value is within the expected range for the specific rules being applied.

RequestWeatherControlInput

Represents the input value for requesting weather control.

public byte RequestWeatherControlInput

Field Value

byte

Remarks

This field is used to specify the desired weather control input in a weather control system. The exact meaning of the value depends on the implementation of the system.

VersionUpdateBegin

Represents the version number of the buffer at the point when an update begins.

public uint VersionUpdateBegin

Field Value

uint

Remarks

This value is incremented immediately before the buffer is written to, indicating the start of an update. It can be used to track changes or ensure consistency during buffer operations.

VersionUpdateEnd

Represents the version update counter, which is incremented after a buffer write operation is completed.

public uint VersionUpdateEnd

Field Value

uint

Remarks

This field is used to track the completion of buffer write operations. It is incremented automatically after each write to indicate the end of the update process.