Class FeatureTypes
Helper methods to construct Feature<T>s with simple parsing rules.
Inheritance
System.Object
FeatureTypes
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: SlugBase.dll
Syntax
public static class FeatureTypes
Methods
GameBool(String)
Create a game feature that takes one boolean.
Declaration
public static GameFeature<bool> GameBool(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameColor(String)
Create a game feature that takes a color.
Declaration
public static GameFeature<Color> GameColor(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameCustomColor(String)
Create a game feature that takes a palette-modified color.
Declaration
public static GameFeature<PlayerColor> GameCustomColor(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameDouble(String)
Create a game feature that takes one number.
Declaration
public static GameFeature<double> GameDouble(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameDoubles(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
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 |
System.String |
id |
|
Returns
Type Parameters
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 |
System.String |
id |
|
Returns
Type Parameters
GameFloat(String)
Create a game feature that takes one number.
Declaration
public static GameFeature<float> GameFloat(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameFloats(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
GameInt(String)
Create a game feature that takes one integer.
Declaration
public static GameFeature<int> GameInt(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameInts(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
GameLong(String)
Create a game feature that takes one integer.
Declaration
public static GameFeature<long> GameLong(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameLongs(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
GameSlugcatName(String)
Create a game feature that takes a slugcat name.
Declaration
public static GameFeature<SlugcatStats.Name> GameSlugcatName(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameSlugcatNames(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
GameString(String)
Create a game feature that takes one string.
Declaration
public static GameFeature<string> GameString(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
GameStrings(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
PlayerBool(String)
Create a player feature that takes one boolean.
Declaration
public static PlayerFeature<bool> PlayerBool(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerColor(String)
Create a player feature that takes a color.
Declaration
public static PlayerFeature<Color> PlayerColor(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerCustomColor(String)
Create a player feature that takes a palette-modified color.
Declaration
public static PlayerFeature<PlayerColor> PlayerCustomColor(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerDouble(String)
Create a player feature that takes one number.
Declaration
public static PlayerFeature<double> PlayerDouble(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerDoubles(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
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 |
System.String |
id |
|
Returns
Type Parameters
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 |
System.String |
id |
|
Returns
Type Parameters
PlayerFloat(String)
Create a player feature that takes one number.
Declaration
public static PlayerFeature<float> PlayerFloat(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerFloats(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
PlayerInt(String)
Create a player feature that takes one integer.
Declaration
public static PlayerFeature<int> PlayerInt(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerInts(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
PlayerLong(String)
Create a player feature that takes one integer.
Declaration
public static PlayerFeature<long> PlayerLong(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerLongs(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
PlayerSlugcatName(String)
Create a player feature that takes a slugcat name.
Declaration
public static PlayerFeature<SlugcatStats.Name> PlayerSlugcatName(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerSlugcatNames(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns
PlayerString(String)
Create a player feature that takes one string.
Declaration
public static PlayerFeature<string> PlayerString(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
PlayerStrings(String, Int32, Int32)
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 |
System.String |
id |
|
System.Int32 |
minLength |
|
System.Int32 |
maxLength |
|
Returns