Class ParamExplanation
Lists params relevant to the player, optionally showing currently assigned values of passed in instances, along with descriptions of each.
Inheritance
System.Object
ParamExplanation
Assembly: Eco.Gameplay.dll
public static class ParamExplanation : Object
Methods
Declaration
public static LocString DescribeType(Type type, bool showHeaders, Func<MemberInfo, bool> filter, params object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Boolean |
showHeaders |
|
System.Func<System.Reflection.MemberInfo, System.Boolean> |
filter |
|
System.Object[] |
instances |
|
Returns
Declaration
public static LocString DescribeType(Type type, params object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Object[] |
instances |
|
Returns
Forms the list containing the display text of a row that describes a type's property.
Currently holds 'Icon + Name' on first index, and 'Description' (if any) on second index.
Declaration
public static List<LocString> GetDescriptionRowForProperty(Type baseType, PropertyInfo prop, object[] instances = null)
Parameters
Type |
Name |
Description |
System.Type |
baseType |
|
System.Reflection.PropertyInfo |
prop |
|
System.Object[] |
instances |
|
Returns
Type |
Description |
System.Collections.Generic.List<LocString> |
|
Declaration
public static string SimpleDescribeProperties(object instance)
Parameters
Type |
Name |
Description |
System.Object |
instance |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static IEnumerable<IEnumerable<LocString>> Table(Type type, bool showHeaders, Func<MemberInfo, bool> filter, object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Boolean |
showHeaders |
|
System.Func<System.Reflection.MemberInfo, System.Boolean> |
filter |
|
System.Object[] |
instances |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<LocString>> |
|
Declaration
public static LocString[, ] Table2d(Type type, object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Object[] |
instances |
|
Returns
Declaration
public static LocString[, ] Table2dStrippedTags(Type type, object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Object[] |
instances |
|
Returns
Declaration
public static string[, ] Table2dStrippedTagsAsString(Type type, object[] instances)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Object[] |
instances |
|
Returns
Type |
Description |
System.String[,] |
|