Table of Contents

Class UnitStrings

Namespace
RisingV.GameData.Strings
Assembly
RisingV.Core.dll

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

Dictionary<Unit, (string Long, string Short)>

Methods

GetName(Unit)

Gets the name for a given unit.

public static string? GetName(Unit unit)

Parameters

unit Unit

The 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 PrefabGUID

The 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 long

The 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 Unit

The 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 PrefabGUID

The 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 long

The prefab GUID to look up.

Returns

string

The short name associated with the prefab GUID, or null if not found.