Class UnitStrings
Provides a mapping of unit prefab GUIDs to their long and short names.
public static class UnitStrings
- Inheritance
-
UnitStrings
- Inherited Members
Fields
PrefabToNames
A dictionary mapping unit prefab GUIDs to their long and short names.
public static readonly Dictionary<Unit, (string Long, string Short)> PrefabToNames
Field Value
Methods
GetName(Unit)
Gets the name for a given unit.
public static string? GetName(Unit unit)
Parameters
unit
UnitThe unit to look up.
Returns
- string
The long name associated with the unit, or null if not found.
GetName(PrefabGUID)
Gets the name for a given prefab GUID.
public static string? GetName(PrefabGUID prefabGuid)
Parameters
prefabGuid
PrefabGUIDThe prefab GUID to look up.
Returns
- string
The long name associated with the prefab GUID, or null if not found.
GetName(long)
Gets the name for a given prefab GUID.
public static string? GetName(long prefabGuid)
Parameters
prefabGuid
longThe prefab GUID to look up.
Returns
- string
The long name associated with the prefab GUID, or null if not found.
GetShortName(Unit)
Gets the short name for a given unit.
public static string? GetShortName(Unit unit)
Parameters
unit
UnitThe unit to look up.
Returns
- string
The short name associated with the unit, or null if not found.
GetShortName(PrefabGUID)
Gets the short name for a given prefab GUID.
public static string? GetShortName(PrefabGUID prefabGuid)
Parameters
prefabGuid
PrefabGUIDThe prefab GUID to look up.
Returns
- string
The short name associated with the prefab GUID, or null if not found.
GetShortName(long)
Gets the short name for a given prefab GUID.
public static string? GetShortName(long prefabGuid)
Parameters
prefabGuid
longThe prefab GUID to look up.
Returns
- string
The short name associated with the prefab GUID, or null if not found.