Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Entity.ParamIDUtils Class Reference
Collaboration diagram for Slasher.Entity.ParamIDUtils:
Collaboration graph

Static Public Member Functions

static float GetDefault (this ParamID id)
 
static string ToString (this ParamID id)
 
static bool TryParse (this string code, out ParamID conversion)
 Tries to match a string to a ParamID.
 
static bool TryPredict (this string incompleteCode, Func< string, bool > ignoredMatches, Func< string, string, int > fallbackMatcher, out ParamID result)
 Tries to predict a ParamID using an incomplete name input.
 
static string GetTooltip (this ParamID value)
 
static bool IsBool (this ParamID value)
 

Static Private Member Functions

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.
 

Member Function Documentation

◆ 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
idThe enum converted to a string using its name.
conversionThe 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.

Here is the call graph for this function:

The documentation for this class was generated from the following file: