public static Either <TLeft, float> ParseToFloat <TLeft>(
     this Either <TLeft, string> source,
     IFormatProvider provider,
     TLeft left)
 {
     return(source.FlatMap(x => FloatParser.Parse <TLeft>(x, provider, left)));
 }
 public static Either <TLeft, float> ParseToFloat <TLeft>(
     this Either <TLeft, string> source,
     NumberStyles style,
     TLeft left)
 {
     return(source.FlatMap(x => FloatParser.Parse <TLeft>(x, style, left)));
 }
 public static Either <TLeft, float> ParseToFloat <TLeft>(
     this string source,
     NumberStyles style,
     IFormatProvider provider,
     TLeft left)
 {
     return(FloatParser.Parse <TLeft>(source, style, provider, left));
 }
Exemplo n.º 4
0
 public void Activate(string settingsID = null, string populationID = null, string delay = null, string triggerAlarm = null)
 {
     Activate(DataBlockIDParser <SurvivalWaveSettingsDataBlock> .Parse(settingsID), DataBlockIDParser <SurvivalWaveSettingsDataBlock> .Parse(populationID), FloatParser.Parse(delay), BooleanParser.Parse(triggerAlarm));
 }
 public static Either <TLeft, float> ParseToFloat <TLeft>(this string source, TLeft left)
 {
     return(FloatParser.Parse(source, left));
 }
 public void Activate(string text = null, string displayDuration = null, string isObjectiveText = null)
 {
     Activate(text == null ? "" : text, FloatParser.Parse(displayDuration), BooleanParser.Parse(isObjectiveText));
 }
Exemplo n.º 7
0
 public static Maybe <float> ParseToFloat(this string source)
 {
     return(FloatParser.Parse(source));
 }
Exemplo n.º 8
0
 public static Maybe <float> ParseToFloat(this Maybe <string> source, NumberStyles style, IFormatProvider provider)
 {
     return(source.FlatMap(x => FloatParser.Parse(x, style, provider)));
 }
Exemplo n.º 9
0
 public static Maybe <float> ParseToFloat(this string source, NumberStyles style, IFormatProvider provider)
 {
     return(FloatParser.Parse(source, style, provider));
 }
Exemplo n.º 10
0
 public static Maybe <float> ParseToFloat(this string source, NumberStyles style)
 {
     return(FloatParser.Parse(source, style));
 }
Exemplo n.º 11
0
 public void Activate(string fogID = null, string transitionDelay = null, string transitionDuration = null)
 {
     Activate(DataBlockIDParser <FogSettingsDataBlock> .Parse(fogID), FloatParser.Parse(transitionDelay), FloatParser.Parse(transitionDuration));
 }