Game.UI.InGame.VehicleLocaleKey
Assembly: Assembly-CSharp.dll
Namespace: Game.UI.InGame
Type: public enum
Base: System.Enum
Summary:
Enumeration of vehicle localization keys used by the game's UI to identify vehicle types for display names, tooltips and other localized strings. Each enum member represents a vehicle category or specific service vehicle used by UI/localization systems to look up the appropriate localized text or icon. Underlying integer values start at 0 and increment by 1 in declaration order.
Fields
-
None
Default / unspecified value. Use when no vehicle localization key applies. -
Vehicle
Generic vehicle label (non-specific). -
Ambulance
Medical ground vehicle. -
Hearse
Vehicle used for corpse removal / funerary service. -
PoliceIntelligenceCar
Specialized police intelligence unit vehicle. -
PolicePatrolCar
Standard police patrol vehicle. -
PrisonVan
Vehicle used for prisoner transport. -
FireEngine
Standard firefighting ground vehicle. -
PostVan
Postal service van. -
PostTruck
Larger postal delivery truck. -
GarbageTruck
Standard garbage collection vehicle. -
IndustrialWasteTruck
Truck for industrial waste collection. -
EvacuationBus
Bus used for evacuation procedures. -
FireHelicopter
Helicopter used for firefighting tasks. -
PoliceHelicopter
Police aviation unit. -
MedicalHelicopter
Air ambulance / medical helicopter. -
Taxi
Taxi vehicle. -
MaintenanceVehicle
General maintenance/utility vehicle. -
DeliveryTruck
Commercial delivery truck. -
HouseholdVehicle
Private household car. -
PublicTransportVehicle
Generic public transport vehicle (bus/tram/metro etc. where appropriate). -
FishingVehicle
Vehicle used in fishing operations. -
FarmVehicle
Agricultural/farming vehicle. -
ForestryVehicle
Vehicle used in forestry operations. -
DrillingVehicle
Drilling/mining exploration vehicle. -
MiningVehicle
Mining-specific vehicle. -
ExtractingVehicle
Resource-extraction vehicle (e.g., oil/gas extraction support).
Properties
- This enum does not declare custom properties. As with all enums, standard System.Enum methods and behaviors apply (ToString, HasFlag, Parse, TryParse, etc.).
Constructors
public VehicleLocaleKey()
Enums have an implicit value-type constructor and no accessible parameterless constructor for direct instantiation. Values are assigned by name (e.g., VehicleLocaleKey.Taxi) or by casting from an integral value.
Methods
- No custom methods are declared on this enum. Use System.Enum and language-provided operations to work with values:
- ToString() — get the name of the enum member ("Taxi", "FireEngine", etc.).
- static Parse/T ryParse — convert string to enum value.
- Casting from/to int — obtain numeric underlying value or construct enum from integral value.
Usage Example
// Build a locale key string from the enum member name and use your game's localization API.
// The exact localization API call depends on the game's utilities; below is a safe, generic pattern.
VehicleLocaleKey key = VehicleLocaleKey.Taxi;
// Create a locale identifier (example format). Adjust to the project's localization key schema.
string localeKey = $"Vehicle.{key}"; // -> "Vehicle.Taxi"
// Fetch localized text with your game's localization manager (pseudocode).
// string localizedName = LocalizationManager.Get(localeKey);
// Example fallback:
string localizedName = localeKey; // replace with actual localization call in real code