Class FeatureTypes
Helper methods to construct Feature<T>s with simple parsing rules.
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
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
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
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
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
Returns
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 Parameters
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 Parameters
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
Returns
Type Parameters
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
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
Returns
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
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
Returns
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
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
Returns
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
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
Returns
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
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
Returns
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
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
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
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
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
Returns
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 Parameters
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 Parameters
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
Returns
Type Parameters
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
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
Returns
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
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
Returns
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
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
Returns
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
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
Returns
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
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
Returns