Skip to content
Start free evaluation

PDComm.GemConstantInfo

Struct

Represents the declared shape of one registered equipment constant.

public readonly record struct GemConstantInfo

Parameters

NameDescription
MinCountThe smallest element count a value may have.
MaxCountThe largest element count a value may have.
FormatThe format of the current value, which every new value must use.
DefaultPresentWhether the constant has a default value (ECDEF).
MinimumPresentWhether the constant has a lower bound (ECMIN).
MaximumPresentWhether the constant has an upper bound (ECMAX).

Members

GemConstantInfo

Constructor

Represents the declared shape of one registered equipment constant.

public GemConstantInfo(nuint MinCount, nuint MaxCount, SecsFormat Format, bool DefaultPresent, bool MinimumPresent, bool MaximumPresent)

Parameters

NameDescription
MinCountThe smallest element count a value may have.
MaxCountThe largest element count a value may have.
FormatThe format of the current value, which every new value must use.
DefaultPresentWhether the constant has a default value (ECDEF).
MinimumPresentWhether the constant has a lower bound (ECMIN).
MaximumPresentWhether the constant has an upper bound (ECMAX).

DefaultPresent

Property

Whether the constant has a default value (ECDEF).

public bool DefaultPresent { get; init; }

Format

Property

The format of the current value, which every new value must use.

public SecsFormat Format { get; init; }

MaxCount

Property

The largest element count a value may have.

public nuint MaxCount { get; init; }

MaximumPresent

Property

Whether the constant has an upper bound (ECMAX).

public bool MaximumPresent { get; init; }

MinCount

Property

The smallest element count a value may have.

public nuint MinCount { get; init; }

MinimumPresent

Property

Whether the constant has a lower bound (ECMIN).

public bool MinimumPresent { get; init; }