DocFX + Singulink = ♥

Class FeatureTypes

Helper methods to construct Feature<T>s with simple parsing rules.

Inheritance
object
FeatureTypes
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SlugBase.Features
Assembly: SlugBase.dll
Syntax
public static class FeatureTypes

Methods

View Source

GameBool(string)

Create a game feature that takes one boolean.

Declaration
public static GameFeature<bool> GameBool(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<bool>
View Source

GameColor(string)

Create a game feature that takes a color.

Declaration
public static GameFeature<Color> GameColor(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<Color>
View Source

GameCustomColor(string)

Create a game feature that takes a palette-modified color.

Declaration
public static GameFeature<PlayerColor> GameCustomColor(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<PlayerColor>
View Source

GameDouble(string)

Create a game feature that takes one number.

Declaration
public static GameFeature<double> GameDouble(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<double>
View Source

GameDoubles(string, int, int)

Create a game feature that takes an array of numbers.

Declaration
public static GameFeature<double[]> GameDoubles(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<double[]>
View Source

GameEnum<T>(string)

Create a game feature that takes one enum value.

Declaration
public static GameFeature<T> GameEnum<T>(string id) where T : struct
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<T>
Type Parameters
Name Description
T
View Source

GameExtEnum<T>(string)

Create a game feature that takes one enum value.

Declaration
public static GameFeature<T> GameExtEnum<T>(string id) where T : ExtEnum<T>
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<T>
Type Parameters
Name Description
T
View Source

GameExtEnums<T>(string, int, int)

Create a game feature that takes an array of enum values.

Declaration
public static GameFeature<T[]> GameExtEnums<T>(string id, int minLength = 0, int maxLength = 2147483647) where T : ExtEnum<T>
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<T[]>
Type Parameters
Name Description
T
View Source

GameFloat(string)

Create a game feature that takes one number.

Declaration
public static GameFeature<float> GameFloat(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<float>
View Source

GameFloats(string, int, int)

Create a game feature that takes an array of numbers.

Declaration
public static GameFeature<float[]> GameFloats(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<float[]>
View Source

GameInt(string)

Create a game feature that takes one integer.

Declaration
public static GameFeature<int> GameInt(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<int>
View Source

GameInts(string, int, int)

Create a game feature that takes an array of integers.

Declaration
public static GameFeature<int[]> GameInts(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<int[]>
View Source

GameLong(string)

Create a game feature that takes one integer.

Declaration
public static GameFeature<long> GameLong(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<long>
View Source

GameLongs(string, int, int)

Create a game feature that takes an array of integers.

Declaration
public static GameFeature<long[]> GameLongs(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<long[]>
View Source

GameSlugcatName(string)

Create a game feature that takes a slugcat name.

Declaration
public static GameFeature<SlugcatStats.Name> GameSlugcatName(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<SlugcatStats.Name>
View Source

GameSlugcatNames(string, int, int)

Create a game feature that takes an array of slugcat names.

Declaration
public static GameFeature<SlugcatStats.Name[]> GameSlugcatNames(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<SlugcatStats.Name[]>
View Source

GameString(string)

Create a game feature that takes one string.

Declaration
public static GameFeature<string> GameString(string id)
Parameters
Type Name Description
string id
Returns
Type Description
GameFeature<string>
View Source

GameStrings(string, int, int)

Create a game feature that takes an array of strings.

Declaration
public static GameFeature<string[]> GameStrings(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
GameFeature<string[]>
View Source

PlayerBool(string)

Create a player feature that takes one boolean.

Declaration
public static PlayerFeature<bool> PlayerBool(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<bool>
View Source

PlayerColor(string)

Create a player feature that takes a color.

Declaration
public static PlayerFeature<Color> PlayerColor(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<Color>
View Source

PlayerCustomColor(string)

Create a player feature that takes a palette-modified color.

Declaration
public static PlayerFeature<PlayerColor> PlayerCustomColor(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<PlayerColor>
View Source

PlayerDouble(string)

Create a player feature that takes one number.

Declaration
public static PlayerFeature<double> PlayerDouble(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<double>
View Source

PlayerDoubles(string, int, int)

Create a player feature that takes an array of numbers.

Declaration
public static PlayerFeature<double[]> PlayerDoubles(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<double[]>
View Source

PlayerEnum<T>(string)

Create a player feature that takes one enum value.

Declaration
public static PlayerFeature<T> PlayerEnum<T>(string id) where T : struct
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<T>
Type Parameters
Name Description
T
View Source

PlayerExtEnum<T>(string)

Create a player feature that takes one enum value.

Declaration
public static PlayerFeature<T> PlayerExtEnum<T>(string id) where T : ExtEnum<T>
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<T>
Type Parameters
Name Description
T
View Source

PlayerExtEnums<T>(string, int, int)

Create a player feature that takes an array of enum values.

Declaration
public static PlayerFeature<T[]> PlayerExtEnums<T>(string id, int minLength = 0, int maxLength = 2147483647) where T : ExtEnum<T>
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<T[]>
Type Parameters
Name Description
T
View Source

PlayerFloat(string)

Create a player feature that takes one number.

Declaration
public static PlayerFeature<float> PlayerFloat(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<float>
View Source

PlayerFloats(string, int, int)

Create a player feature that takes an array of numbers.

Declaration
public static PlayerFeature<float[]> PlayerFloats(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<float[]>
View Source

PlayerInt(string)

Create a player feature that takes one integer.

Declaration
public static PlayerFeature<int> PlayerInt(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<int>
View Source

PlayerInts(string, int, int)

Create a player feature that takes an array of integers.

Declaration
public static PlayerFeature<int[]> PlayerInts(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<int[]>
View Source

PlayerLong(string)

Create a player feature that takes one integer.

Declaration
public static PlayerFeature<long> PlayerLong(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<long>
View Source

PlayerLongs(string, int, int)

Create a player feature that takes an array of integers.

Declaration
public static PlayerFeature<long[]> PlayerLongs(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<long[]>
View Source

PlayerSlugcatName(string)

Create a player feature that takes a slugcat name.

Declaration
public static PlayerFeature<SlugcatStats.Name> PlayerSlugcatName(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<SlugcatStats.Name>
View Source

PlayerSlugcatNames(string, int, int)

Create a player feature that takes an array of slugcat names.

Declaration
public static PlayerFeature<SlugcatStats.Name[]> PlayerSlugcatNames(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<SlugcatStats.Name[]>
View Source

PlayerString(string)

Create a player feature that takes one string.

Declaration
public static PlayerFeature<string> PlayerString(string id)
Parameters
Type Name Description
string id
Returns
Type Description
PlayerFeature<string>
View Source

PlayerStrings(string, int, int)

Create a player feature that takes an array of strings.

Declaration
public static PlayerFeature<string[]> PlayerStrings(string id, int minLength = 0, int maxLength = 2147483647)
Parameters
Type Name Description
string id
int minLength
int maxLength
Returns
Type Description
PlayerFeature<string[]>