PDComm.GemConstantInfo
Struct
Represents the declared shape of one registered equipment constant.
public readonly record struct GemConstantInfoParameters
| Name | Description |
|---|---|
MinCount | The smallest element count a value may have. |
MaxCount | The largest element count a value may have. |
Format | The format of the current value, which every new value must use. |
DefaultPresent | Whether the constant has a default value (ECDEF). |
MinimumPresent | Whether the constant has a lower bound (ECMIN). |
MaximumPresent | Whether 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
| Name | Description |
|---|---|
MinCount | The smallest element count a value may have. |
MaxCount | The largest element count a value may have. |
Format | The format of the current value, which every new value must use. |
DefaultPresent | Whether the constant has a default value (ECDEF). |
MinimumPresent | Whether the constant has a lower bound (ECMIN). |
MaximumPresent | Whether 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; }