Class WarfareVehicleInfo
- Namespace
- Uncreated.Warfare.Vehicles.WarfareVehicles
- Assembly
- Uncreated.Warfare.dll
[CannotApplyEqualityOperator]
public class WarfareVehicleInfo : IEquatable<WarfareVehicleInfo>, ITranslationArgument
- Inheritance
-
WarfareVehicleInfo
- Implements
- Inherited Members
- Extension Methods
Fields
FormatName
public static readonly SpecialFormat FormatName
Field Value
FormatNameColored
public static readonly SpecialFormat FormatNameColored
Field Value
Properties
Abandon
public required WarfareVehicleInfo.AbandonInfo Abandon { get; set; }
Property Value
Branch
public Branch Branch { get; set; }
Property Value
Class
public Class Class { get; set; }
Property Value
Configuration
public IConfigurationRoot Configuration { get; }
Property Value
Cooldown
public TimeSpan Cooldown { get; set; }
Property Value
CreditCost
public required int CreditCost { get; set; }
Property Value
Crew
public required WarfareVehicleInfo.CrewInfo Crew { get; set; }
Property Value
PaintColor
public Color32 PaintColor { get; set; }
Property Value
- Color32
Rearm
public required WarfareVehicleInfo.RearmInfo Rearm { get; set; }
Property Value
RespawnTime
public TimeSpan RespawnTime { get; set; }
Property Value
ShortName
public string? ShortName { get; set; }
Property Value
Remarks
Some vehicles like the F15-E have names that are too long and result in the final sign having too many characters.
StartingItems
public IReadOnlyList<IAssetLink<ItemAsset>> StartingItems { get; set; }
Property Value
- IReadOnlyList<IAssetLink<ItemAsset>>
TicketCost
public int TicketCost { get; set; }
Property Value
Trunk
public IReadOnlyList<WarfareVehicleInfo.TrunkItem> Trunk { get; set; }
Property Value
Type
public VehicleType Type { get; set; }
Property Value
UnlockRequirements
public IReadOnlyList<UnlockRequirement> UnlockRequirements { get; set; }
Property Value
VehicleAsset
public IAssetLink<VehicleAsset> VehicleAsset { get; set; }
Property Value
- IAssetLink<VehicleAsset>
WipeTrunkOnDestroyed
public required bool WipeTrunkOnDestroyed { get; set; }
Property Value
Methods
CreateDefault(VehicleAsset)
public static WarfareVehicleInfo CreateDefault(VehicleAsset vehicleAsset)
Parameters
vehicleAssetVehicleAsset
Returns
EnsureInitialized(WarfareVehicleInfo)
public static void EnsureInitialized(WarfareVehicleInfo v)
Parameters
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(WarfareVehicleInfo?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WarfareVehicleInfo? other)
Parameters
otherWarfareVehicleInfoAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Translate(ITranslationValueFormatter, in ValueFormatParameters)
Allows objects to define how they're translated in their own definition instead of creating a value converter.
public string Translate(ITranslationValueFormatter formatter, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormatterparametersValueFormatParameters