Class DescriptionLoc
Inheritance
System.Object
DescriptionLoc
Namespace: Eco.Shared.Localization
Assembly: Eco.Shared.dll
Syntax
public static class DescriptionLoc : Object
Methods
DescribeViews(IEnumerable<Object>, IEnumerable<Object>, HashSet<String>, String)
Tries to combine entries into groups. See SearchableListUI.UpdateSlots on the client side for a demo.
Declaration
public static LocString DescribeViews(IEnumerable<object> views, IEnumerable<object> selectedViews, HashSet<string> tagsOnEverySelection, string entryDescriptionPlural)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Object> | views | |
System.Collections.Generic.IEnumerable<System.Object> | selectedViews | |
System.Collections.Generic.HashSet<System.String> | tagsOnEverySelection | |
System.String | entryDescriptionPlural |
Returns
Type | Description |
---|---|
LocString |
MutualTag(IEnumerable<(String, IEnumerable<String>)>, IEnumerable<(String, IEnumerable<String>)>, HashSet<String>)
Searches for the rarest tag that is present in every selected element. Can also determine if all elements of this tag have been selected.
Declaration
public static (string, bool) MutualTag(IEnumerable<(string, IEnumerable<string>)> entries, IEnumerable<(string, IEnumerable<string>)> selectedEntries, HashSet<string> tagsOnEverySelection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Collections.Generic.IEnumerable<System.String>>> | entries | |
System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Collections.Generic.IEnumerable<System.String>>> | selectedEntries | |
System.Collections.Generic.HashSet<System.String> | tagsOnEverySelection |
Returns
Type | Description |
---|---|
System.ValueTuple<System.String, System.Boolean> |