Table of Contents

Class NamingTableUtility

Namespace
FishMMO.Shared.NameGeneration
Assembly
FishMMO.Shared.dll

Helpers that turn the serialized table rows into runtime lookups.

public static class NamingTableUtility
Inheritance
NamingTableUtility
Inherited Members

Methods

FromListDictionary(IReadOnlyDictionary<string, string[]>)

List rows from a lookup, in ordinal key order so a round trip writes the same asset every time.

public static List<StringListMapping> FromListDictionary(IReadOnlyDictionary<string, string[]> table)

Parameters

table IReadOnlyDictionary<string, string[]>

Returns

List<StringListMapping>

ToDictionary(List<StringMapping>, StringComparer)

Exact-match lookup; later rows with a repeated key win.

public static Dictionary<string, string> ToDictionary(List<StringMapping> rows, StringComparer comparer)

Parameters

rows List<StringMapping>
comparer StringComparer

Returns

Dictionary<string, string>

ToListDictionary(List<StringListMapping>, StringComparer)

Exact-match lookup for list-valued rows; later rows with a repeated key win.

public static Dictionary<string, string[]> ToListDictionary(List<StringListMapping> rows, StringComparer comparer)

Parameters

rows List<StringListMapping>
comparer StringComparer

Returns

Dictionary<string, string[]>

ToOrdered(List<StringMapping>)

Ordered copy with null and keyless rows removed, for prefix/suffix scans.

public static List<StringMapping> ToOrdered(List<StringMapping> rows)

Parameters

rows List<StringMapping>

Returns

List<StringMapping>