|
| static string | GetClosestMatchingID (string input, Func< string, bool > ignoredMatches, Func< string, string, int > fallbackMatcher) |
| | Predict the closest matching word given a list and user input.
|
| |
◆ GetClosestMatchingID()
| static string Slasher.Entity.ParamIDUtils.GetClosestMatchingID |
( |
string | input, |
|
|
Func< string, bool > | ignoredMatches, |
|
|
Func< string, string, int > | fallbackMatcher ) |
|
staticprivate |
Predict the closest matching word given a list and user input.
The fallback matcher is used if no exact match for the beginning was found.
◆ GetDefault()
| static float Slasher.Entity.ParamIDUtils.GetDefault |
( |
this ParamID | id | ) |
|
|
static |
◆ GetTooltip()
| static string Slasher.Entity.ParamIDUtils.GetTooltip |
( |
this ParamID | value | ) |
|
|
static |
◆ IsBool()
| static bool Slasher.Entity.ParamIDUtils.IsBool |
( |
this ParamID | value | ) |
|
|
static |
◆ ToString()
| static string Slasher.Entity.ParamIDUtils.ToString |
( |
this ParamID | id | ) |
|
|
static |
◆ TryParse()
| static bool Slasher.Entity.ParamIDUtils.TryParse |
( |
this string | code, |
|
|
out ParamID | conversion ) |
|
static |
Tries to match a string to a ParamID.
Return false if failed, true if a match was found.
- Parameters
-
| id | The enum converted to a string using its name. |
| conversion | The correct ParamID if found, otherwise the ParamID with the underlying integer value of 0. |
- Returns
- If a matching ParamID was found.
◆ TryPredict()
| static bool Slasher.Entity.ParamIDUtils.TryPredict |
( |
this string | incompleteCode, |
|
|
Func< string, bool > | ignoredMatches, |
|
|
Func< string, string, int > | fallbackMatcher, |
|
|
out ParamID | result ) |
|
static |
Tries to predict a ParamID using an incomplete name input.
The documentation for this class was generated from the following file:
- StyleSlasherUnityProject/Assets/Scripts/Entity/Parameters/ParamID.cs