Class DispatchCenterCustomEquipment
- Namespace
- XENBIT.ResQueServe.Core.Models
- Assembly
- RQS.Core.dll
public record DispatchCenterCustomEquipment : IDispatchCenterCustomEquipment, IEquatable<DispatchCenterCustomEquipment>
- Inheritance
-
DispatchCenterCustomEquipment
- Implements
- Inherited Members
Properties
Id
public long Id { get; set; }
Property Value
Number
The slot number used for this equipment, ranging from 1 to 20. Each number is unique within the command center.
public int Number { get; set; }
Property Value
Text
The display name of the equipment.
public string Text { get; set; }
Property Value
Methods
GetCustomUnitEquipment()
Calculates the corresponding UnitEquipment enum index based on the custom number assigned.
public UnitEquipment? GetCustomUnitEquipment()
Returns
- UnitEquipment?
A nullable UnitEquipment representing the custom equipment or null if the number is outside the valid range.
Exceptions
- InvalidOperationException
Thrown when the
.Number is >= 1 and <= 20