Table of Contents

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

SpecialFormat

FormatNameColored

public static readonly SpecialFormat FormatNameColored

Field Value

SpecialFormat

Properties

Abandon

public required WarfareVehicleInfo.AbandonInfo Abandon { get; set; }

Property Value

WarfareVehicleInfo.AbandonInfo

Branch

public Branch Branch { get; set; }

Property Value

Branch

Class

public Class Class { get; set; }

Property Value

Class

Configuration

public IConfigurationRoot Configuration { get; }

Property Value

IConfigurationRoot

Cooldown

public TimeSpan Cooldown { get; set; }

Property Value

TimeSpan

CreditCost

public required int CreditCost { get; set; }

Property Value

int

Crew

public required WarfareVehicleInfo.CrewInfo Crew { get; set; }

Property Value

WarfareVehicleInfo.CrewInfo

PaintColor

public Color32 PaintColor { get; set; }

Property Value

Color32

Rearm

public required WarfareVehicleInfo.RearmInfo Rearm { get; set; }

Property Value

WarfareVehicleInfo.RearmInfo

RespawnTime

public TimeSpan RespawnTime { get; set; }

Property Value

TimeSpan

ShortName

public string? ShortName { get; set; }

Property Value

string

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

int

Trunk

public IReadOnlyList<WarfareVehicleInfo.TrunkItem> Trunk { get; set; }

Property Value

IReadOnlyList<WarfareVehicleInfo.TrunkItem>

Type

public VehicleType Type { get; set; }

Property Value

VehicleType

UnlockRequirements

public IReadOnlyList<UnlockRequirement> UnlockRequirements { get; set; }

Property Value

IReadOnlyList<UnlockRequirement>

VehicleAsset

public IAssetLink<VehicleAsset> VehicleAsset { get; set; }

Property Value

IAssetLink<VehicleAsset>

WipeTrunkOnDestroyed

public required bool WipeTrunkOnDestroyed { get; set; }

Property Value

bool

Methods

CreateDefault(VehicleAsset)

public static WarfareVehicleInfo CreateDefault(VehicleAsset vehicleAsset)

Parameters

vehicleAsset VehicleAsset

Returns

WarfareVehicleInfo

EnsureInitialized(WarfareVehicleInfo)

public static void EnsureInitialized(WarfareVehicleInfo v)

Parameters

v WarfareVehicleInfo

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(WarfareVehicleInfo?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(WarfareVehicleInfo? other)

Parameters

other WarfareVehicleInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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

formatter ITranslationValueFormatter
parameters ValueFormatParameters

Returns

string